| 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
|
|
|