OLD | NEW |
(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 |
OLD | NEW |