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

Unified Diff: headless/lib/browser/headless_shell_application_mac.mm

Issue 2745323003: Add CrAppProtocol for headless on Mac (Closed)
Patch Set: updated upstream, small nit Created 3 years, 9 months 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « headless/lib/browser/headless_shell_application_mac.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..fa8e87a9328109c83a1b8d945049af34c5a2bd61
--- /dev/null
+++ b/headless/lib/browser/headless_shell_application_mac.mm
@@ -0,0 +1,17 @@
+// 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 {
+ // The CrAppProtocol must return true if [NSApplication sendEvent:] is
+ // currently on the stack. seee |CrAppProtocol| in |MessagePumpMac|.
+ return true;
+}
+
+@end
« no previous file with comments | « headless/lib/browser/headless_shell_application_mac.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698