| OLD | NEW |
| (Empty) |
| 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 | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef CONTENT_COMMON_CHROME_APPLICATION_MAC_H_ | |
| 6 #define CONTENT_COMMON_CHROME_APPLICATION_MAC_H_ | |
| 7 #pragma once | |
| 8 | |
| 9 #if defined(__OBJC__) | |
| 10 | |
| 11 #import <AppKit/AppKit.h> | |
| 12 | |
| 13 #include "base/basictypes.h" | |
| 14 #import "base/mac/scoped_sending_event.h" | |
| 15 | |
| 16 @interface CrApplication : NSApplication<CrAppControlProtocol> { | |
| 17 @private | |
| 18 BOOL handlingSendEvent_; | |
| 19 } | |
| 20 - (BOOL)isHandlingSendEvent; | |
| 21 | |
| 22 // Unconditionally clears |handlingSendEvent_|. This should not be | |
| 23 // used except in recovering from some sort of exceptional condition. | |
| 24 - (void)clearIsHandlingSendEvent; | |
| 25 | |
| 26 + (NSApplication*)sharedApplication; | |
| 27 @end | |
| 28 | |
| 29 #endif // defined(__OBJC__) | |
| 30 | |
| 31 namespace chrome_application_mac { | |
| 32 | |
| 33 // To be used to instantiate CrApplication from C++ code. | |
| 34 void RegisterCrApp(); | |
| 35 | |
| 36 } // namespace chrome_application_mac | |
| 37 | |
| 38 #endif // CONTENT_COMMON_CHROME_APPLICATION_MAC_H_ | |
| OLD | NEW |