| Index: headless/lib/browser/headless_shell_application_mac.mm
|
| diff --git a/headless/lib/browser/headless_shell_application_mac.mm b/headless/lib/browser/headless_shell_application_mac.mm
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..dc9f9b7978313f40c1e9c3c7e347f06652484b6d
|
| --- /dev/null
|
| +++ b/headless/lib/browser/headless_shell_application_mac.mm
|
| @@ -0,0 +1,24 @@
|
| +// Copyright 2017 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 "headless/lib/browser/headless_shell_application_mac.h"
|
| +
|
| +#include "base/auto_reset.h"
|
| +
|
| +@implementation HeadlessShellCrApplication
|
| +
|
| +- (BOOL)isHandlingSendEvent {
|
| + return handlingSendEvent_;
|
| +}
|
| +
|
| +- (void)sendEvent:(NSEvent*)event {
|
| + base::AutoReset<BOOL> scoper(&handlingSendEvent_, YES);
|
| + [super sendEvent:event];
|
| +}
|
| +
|
| +- (void)setHandlingSendEvent:(BOOL)handlingSendEvent {
|
| + handlingSendEvent_ = handlingSendEvent;
|
| +}
|
| +
|
| +@end
|
|
|