Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(247)

Side by Side Diff: content/common/chrome_application_mac.mm

Issue 8724004: [Mac] Move ScopedSendingEvent from content/common/mac to base/mac. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add CrAppControlProtocol support to CrDrtApplication Created 9 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698