OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 CONTENT_COMMON_CHROME_APPLICATION_MAC_H_ | 5 #ifndef CONTENT_COMMON_CHROME_APPLICATION_MAC_H_ |
6 #define CONTENT_COMMON_CHROME_APPLICATION_MAC_H_ | 6 #define CONTENT_COMMON_CHROME_APPLICATION_MAC_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #if defined(__OBJC__) | 9 #if defined(__OBJC__) |
10 | 10 |
11 #import <AppKit/AppKit.h> | 11 #import <AppKit/AppKit.h> |
12 | 12 |
13 #include "base/basictypes.h" | 13 #include "base/basictypes.h" |
14 #include "base/memory/scoped_nsobject.h" | 14 #include "base/memory/scoped_nsobject.h" |
15 #include "base/message_pump_mac.h" | 15 #include "base/message_pump_mac.h" |
16 | 16 |
| 17 //extern const AEEventClass cloud_print_class; |
| 18 |
17 // Event hooks must implement this protocol. | 19 // Event hooks must implement this protocol. |
18 @protocol CrApplicationEventHookProtocol | 20 @protocol CrApplicationEventHookProtocol |
19 - (void)hookForEvent:(NSEvent*)theEvent; | 21 - (void)hookForEvent:(NSEvent*)theEvent; |
20 @end | 22 @end |
21 | 23 |
22 | 24 |
23 @interface CrApplication : NSApplication<CrAppProtocol> { | 25 @interface CrApplication : NSApplication<CrAppProtocol> { |
24 @private | 26 @private |
25 BOOL handlingSendEvent_; | 27 BOOL handlingSendEvent_; |
26 // Array of objects implementing the CrApplicationEventHookProtocol | 28 // Array of objects implementing the CrApplicationEventHookProtocol |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
62 }; | 64 }; |
63 | 65 |
64 } // namespace chrome_application_mac | 66 } // namespace chrome_application_mac |
65 | 67 |
66 #endif // defined(__OBJC__) | 68 #endif // defined(__OBJC__) |
67 | 69 |
68 namespace chrome_application_mac { | 70 namespace chrome_application_mac { |
69 | 71 |
70 // To be used to instantiate CrApplication from C++ code. | 72 // To be used to instantiate CrApplication from C++ code. |
71 void RegisterCrApp(); | 73 void RegisterCrApp(); |
| 74 void setHandler(); |
72 | 75 |
73 } // namespace chrome_application_mac | 76 } // namespace chrome_application_mac |
74 | 77 |
| 78 |
| 79 //Identifier for Cloud Print IPC Call |
75 #endif // CONTENT_COMMON_CHROME_APPLICATION_MAC_H_ | 80 #endif // CONTENT_COMMON_CHROME_APPLICATION_MAC_H_ |
OLD | NEW |