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/common/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 - (void)setHandlingSendEvent:(BOOL)handlingSendEvent; | 10 - (void)setHandlingSendEvent:(BOOL)handlingSendEvent; |
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
62 ScopedSendingEvent::ScopedSendingEvent() | 62 ScopedSendingEvent::ScopedSendingEvent() |
63 : app_(static_cast<CrApplication*>([CrApplication sharedApplication])), | 63 : app_(static_cast<CrApplication*>([CrApplication sharedApplication])), |
64 handling_([app_ isHandlingSendEvent]) { | 64 handling_([app_ isHandlingSendEvent]) { |
65 [app_ setHandlingSendEvent:YES]; | 65 [app_ setHandlingSendEvent:YES]; |
66 } | 66 } |
67 | 67 |
68 ScopedSendingEvent::~ScopedSendingEvent() { | 68 ScopedSendingEvent::~ScopedSendingEvent() { |
69 [app_ setHandlingSendEvent:handling_]; | 69 [app_ setHandlingSendEvent:handling_]; |
70 } | 70 } |
71 | 71 |
| 72 void RegisterCrApp() { |
| 73 [CrApplication sharedApplication]; |
| 74 } |
| 75 |
72 } // namespace chrome_application_mac | 76 } // namespace chrome_application_mac |
OLD | NEW |