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_sending_event.h" | 14 #import "base/mac/scoped_sending_event.h" |
15 #import "base/memory/scoped_nsobject.h" | 15 #import "base/memory/scoped_nsobject.h" |
16 #import "base/message_loop/message_pump_mac.h" | 16 #import "base/message_pump_mac.h" |
17 #include "base/synchronization/lock.h" | 17 #include "base/synchronization/lock.h" |
18 | 18 |
19 @interface BrowserCrApplication : NSApplication<CrAppProtocol, | 19 @interface BrowserCrApplication : NSApplication<CrAppProtocol, |
20 CrAppControlProtocol> { | 20 CrAppControlProtocol> { |
21 @private | 21 @private |
22 BOOL handlingSendEvent_; | 22 BOOL handlingSendEvent_; |
23 BOOL cyclingWindows_; | 23 BOOL cyclingWindows_; |
24 | 24 |
25 // App's previous key windows. Most recent key window is last. | 25 // App's previous key windows. Most recent key window is last. |
26 // Does not include current key window. Elements of this vector are weak | 26 // Does not include current key window. Elements of this vector are weak |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
67 | 67 |
68 // Calls -[NSApp terminate:]. | 68 // Calls -[NSApp terminate:]. |
69 void Terminate(); | 69 void Terminate(); |
70 | 70 |
71 // Cancels a termination started by |Terminate()|. | 71 // Cancels a termination started by |Terminate()|. |
72 void CancelTerminate(); | 72 void CancelTerminate(); |
73 | 73 |
74 } // namespace chrome_browser_application_mac | 74 } // namespace chrome_browser_application_mac |
75 | 75 |
76 #endif // CHROME_BROWSER_CHROME_BROWSER_APPLICATION_MAC_H_ | 76 #endif // CHROME_BROWSER_CHROME_BROWSER_APPLICATION_MAC_H_ |
OLD | NEW |