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 #import "content/common/chrome_application_mac.h" | 5 #import "content/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 19 matching lines...) Expand all Loading... |
30 | 30 |
31 - (void)setHandlingSendEvent:(BOOL)handlingSendEvent { | 31 - (void)setHandlingSendEvent:(BOOL)handlingSendEvent { |
32 handlingSendEvent_ = handlingSendEvent; | 32 handlingSendEvent_ = handlingSendEvent; |
33 } | 33 } |
34 | 34 |
35 - (void)clearIsHandlingSendEvent { | 35 - (void)clearIsHandlingSendEvent { |
36 [self setHandlingSendEvent:NO]; | 36 [self setHandlingSendEvent:NO]; |
37 } | 37 } |
38 | 38 |
39 - (void)sendEvent:(NSEvent*)event { | 39 - (void)sendEvent:(NSEvent*)event { |
40 content::mac::ScopedSendingEvent sendingEventScoper; | 40 base::mac::ScopedSendingEvent sendingEventScoper; |
41 [super sendEvent:event]; | 41 [super sendEvent:event]; |
42 } | 42 } |
43 | 43 |
44 @end | 44 @end |
45 | 45 |
46 namespace chrome_application_mac { | 46 namespace chrome_application_mac { |
47 | 47 |
48 void RegisterCrApp() { | 48 void RegisterCrApp() { |
49 [CrApplication sharedApplication]; | 49 [CrApplication sharedApplication]; |
50 } | 50 } |
51 | 51 |
52 } // namespace chrome_application_mac | 52 } // namespace chrome_application_mac |
OLD | NEW |