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

Side by Side Diff: webkit/support/drt_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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 #include "webkit/support/drt_application_mac.h" 5 #include "webkit/support/drt_application_mac.h"
6 6
7 @implementation CrDrtApplication 7 @implementation CrDrtApplication
8 - (BOOL)isHandlingSendEvent { 8 - (BOOL)isHandlingSendEvent {
9 return handlingSendEvent_; 9 return handlingSendEvent_;
10 } 10 }
11 11
12 - (void)sendEvent:(NSEvent*)event { 12 - (void)sendEvent:(NSEvent*)event {
13 BOOL wasHandlingSendEvent = handlingSendEvent_; 13 BOOL wasHandlingSendEvent = handlingSendEvent_;
14 handlingSendEvent_ = YES; 14 handlingSendEvent_ = YES;
15 [super sendEvent:event]; 15 [super sendEvent:event];
16 handlingSendEvent_ = wasHandlingSendEvent; 16 handlingSendEvent_ = wasHandlingSendEvent;
17 } 17 }
18
19 - (void)setHandlingSendEvent:(BOOL)handlingSendEvent {
20 handlingSendEvent_ = handlingSendEvent;
21 }
22
18 @end 23 @end
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698