Move the job of creating userActivity to AtomApplication

This commit is contained in:
Cheng Zhao 2016-05-05 16:38:47 +09:00
parent 60bd60e1ed
commit 2f9fee0c8a
3 changed files with 12 additions and 12 deletions

View file

@ -28,8 +28,12 @@
handlingSendEvent_ = handlingSendEvent;
}
- (void)setCurrentActivity:(NSUserActivity*)userActivity {
currentActivity_ = base::scoped_nsobject<NSUserActivity>(userActivity);
- (void)setCurrentActivity:(NSString*)type
withUserInfo:(NSDictionary*)userInfo {
currentActivity_ = base::scoped_nsobject<NSUserActivity>(
[[NSUserActivity alloc] initWithActivityType:type]);
[currentActivity_ setUserInfo:userInfo];
[currentActivity_ becomeCurrent];
}
- (NSUserActivity*)getCurrentActivity {