Chromium Code Reviews| Index: content/shell/shell_application_mac.mm |
| diff --git a/content/shell/shell_application_mac.mm b/content/shell/shell_application_mac.mm |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..8e816aa95217915382c76409ad8c7cb3e82e75ff |
| --- /dev/null |
| +++ b/content/shell/shell_application_mac.mm |
| @@ -0,0 +1,24 @@ |
| +// Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +#include "content/shell/shell_application_mac.h" |
| + |
| +@implementation ShellCrApplication |
| + |
| +- (BOOL)isHandlingSendEvent { |
| + return handlingSendEvent_; |
| +} |
| + |
| +- (void)sendEvent:(NSEvent*)event { |
| + BOOL wasHandlingSendEvent = handlingSendEvent_; |
|
Robert Sesek
2012/03/26 16:34:26
Use base/auto_reset.h
|
| + handlingSendEvent_ = YES; |
| + [super sendEvent:event]; |
| + handlingSendEvent_ = wasHandlingSendEvent; |
| +} |
| + |
| +- (void)setHandlingSendEvent:(BOOL)handlingSendEvent { |
| + handlingSendEvent_ = handlingSendEvent; |
| +} |
| + |
| +@end |