OLD | NEW |
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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 #import "chrome_application_mac.h" | 5 #import "chrome/common/chrome_application_mac.h" |
6 | 6 |
7 #include "base/logging.h" | 7 #include "base/logging.h" |
8 | 8 |
9 @interface CrApplication () | 9 @interface CrApplication () |
10 @property(readwrite, | 10 @property(readwrite, |
11 getter=isHandlingSendEvent, | 11 getter=isHandlingSendEvent, |
12 nonatomic) BOOL handlingSendEvent; | 12 nonatomic) BOOL handlingSendEvent; |
13 @end | 13 @end |
14 | 14 |
15 @implementation CrApplication | 15 @implementation CrApplication |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
59 : app_(static_cast<CrApplication*>([CrApplication sharedApplication])), | 59 : app_(static_cast<CrApplication*>([CrApplication sharedApplication])), |
60 handling_([app_ isHandlingSendEvent]) { | 60 handling_([app_ isHandlingSendEvent]) { |
61 [app_ setHandlingSendEvent:YES]; | 61 [app_ setHandlingSendEvent:YES]; |
62 } | 62 } |
63 | 63 |
64 ScopedSendingEvent::~ScopedSendingEvent() { | 64 ScopedSendingEvent::~ScopedSendingEvent() { |
65 [app_ setHandlingSendEvent:handling_]; | 65 [app_ setHandlingSendEvent:handling_]; |
66 } | 66 } |
67 | 67 |
68 } // namespace chrome_application_mac | 68 } // namespace chrome_application_mac |
OLD | NEW |