OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef CHROME_BROWSER_CHROME_BROWSER_APPLICATION_MAC_H_ | 5 #ifndef CHROME_BROWSER_CHROME_BROWSER_APPLICATION_MAC_H_ |
6 #define CHROME_BROWSER_CHROME_BROWSER_APPLICATION_MAC_H_ | 6 #define CHROME_BROWSER_CHROME_BROWSER_APPLICATION_MAC_H_ |
7 | 7 |
8 #ifdef __OBJC__ | 8 #ifdef __OBJC__ |
9 | 9 |
10 #import <AppKit/AppKit.h> | 10 #import <AppKit/AppKit.h> |
11 | 11 |
12 #include <vector> | 12 #include <vector> |
13 | 13 |
14 #import "base/mac/scoped_nsobject.h" | |
15 #import "base/mac/scoped_sending_event.h" | 14 #import "base/mac/scoped_sending_event.h" |
16 #import "base/message_loop/message_pump_mac.h" | 15 #import "base/message_loop/message_pump_mac.h" |
17 #include "base/synchronization/lock.h" | 16 #include "base/synchronization/lock.h" |
18 | 17 |
19 @interface BrowserCrApplication : NSApplication<CrAppProtocol, | 18 @interface BrowserCrApplication : NSApplication<CrAppProtocol, |
20 CrAppControlProtocol> { | 19 CrAppControlProtocol> { |
21 @private | 20 @private |
22 BOOL handlingSendEvent_; | 21 BOOL handlingSendEvent_; |
23 BOOL cyclingWindows_; | 22 BOOL cyclingWindows_; |
24 | 23 |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
67 | 66 |
68 // Calls -[NSApp terminate:]. | 67 // Calls -[NSApp terminate:]. |
69 void Terminate(); | 68 void Terminate(); |
70 | 69 |
71 // Cancels a termination started by |Terminate()|. | 70 // Cancels a termination started by |Terminate()|. |
72 void CancelTerminate(); | 71 void CancelTerminate(); |
73 | 72 |
74 } // namespace chrome_browser_application_mac | 73 } // namespace chrome_browser_application_mac |
75 | 74 |
76 #endif // CHROME_BROWSER_CHROME_BROWSER_APPLICATION_MAC_H_ | 75 #endif // CHROME_BROWSER_CHROME_BROWSER_APPLICATION_MAC_H_ |
OLD | NEW |