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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 // Copyright (c) 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "content/public/browser/keybinding_handler_factory_aurax11.h"
6
7 namespace content {
8 namespace {
9
10 // Optional keybinding handler factory. Weak pointer; this system is usually
11 // deleted as the LinuxUI object.
12 content::KeybindingHandlerFactoryAuraX11* keybinding_handler_factory_ = 0;
13
14 } // namespace
15
16 // static
17 void KeybindingHandlerFactoryAuraX11::SetFactory(
18 KeybindingHandlerFactoryAuraX11* factory) {
19 keybinding_handler_factory_ = factory;
20 }
21
22 // static
23 KeybindingHandlerAuraX11* KeybindingHandlerFactoryAuraX11::Build() {
24 if (keybinding_handler_factory_)
25 return keybinding_handler_factory_->Create();
26
27 return 0;
28 }
29
30 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698