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

Unified Diff: content/public/browser/keybinding_handler_factory_aurax11.cc

Issue 213283004: linux_aura: Port GtkKeybindingsHandler to Aura. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Manually sort gyp file. Created 6 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
Index: content/public/browser/keybinding_handler_factory_aurax11.cc
diff --git a/content/public/browser/keybinding_handler_factory_aurax11.cc b/content/public/browser/keybinding_handler_factory_aurax11.cc
new file mode 100644
index 0000000000000000000000000000000000000000..8b0ea079134701fa24bd5be1b755fc06a35ffdac
--- /dev/null
+++ b/content/public/browser/keybinding_handler_factory_aurax11.cc
@@ -0,0 +1,30 @@
+// Copyright (c) 2014 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/public/browser/keybinding_handler_factory_aurax11.h"
+
+namespace content {
+namespace {
+
+// Optional keybinding handler factory. Weak pointer; this system is usually
+// deleted as the LinuxUI object.
+content::KeybindingHandlerFactoryAuraX11* keybinding_handler_factory_ = 0;
+
+} // namespace
+
+// static
+void KeybindingHandlerFactoryAuraX11::SetFactory(
+ KeybindingHandlerFactoryAuraX11* factory) {
+ keybinding_handler_factory_ = factory;
+}
+
+// static
+KeybindingHandlerAuraX11* KeybindingHandlerFactoryAuraX11::Build() {
+ if (keybinding_handler_factory_)
+ return keybinding_handler_factory_->Create();
+
+ return 0;
+}
+
+} // namespace content

Powered by Google App Engine
This is Rietveld 408576698