atom_application.h 793 B

12345678910111213141516171819202122232425262728
  1. // Copyright (c) 2013 GitHub, Inc.
  2. // Use of this source code is governed by the MIT license that can be
  3. // found in the LICENSE file.
  4. #import "base/mac/scoped_sending_event.h"
  5. #import "base/mac/scoped_nsobject.h"
  6. @interface AtomApplication : NSApplication<CrAppProtocol,
  7. CrAppControlProtocol> {
  8. @private
  9. BOOL handlingSendEvent_;
  10. base::scoped_nsobject<NSUserActivity> currentActivity_;
  11. }
  12. + (AtomApplication*)sharedApplication;
  13. // CrAppProtocol:
  14. - (BOOL)isHandlingSendEvent;
  15. // CrAppControlProtocol:
  16. - (void)setHandlingSendEvent:(BOOL)handlingSendEvent;
  17. - (NSUserActivity*)getCurrentActivity;
  18. - (void)setCurrentActivity:(NSString*)type
  19. withUserInfo:(NSDictionary*)userInfo
  20. withWebpageURL:(NSURL*)webpageURL;
  21. @end