| Index: ash/accelerators/accelerator_delegate.h
|
| diff --git a/ash/accelerators/accelerator_delegate.h b/ash/accelerators/accelerator_delegate.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..4947e97ce34fe2063b321de14021cb59f4fe42cc
|
| --- /dev/null
|
| +++ b/ash/accelerators/accelerator_delegate.h
|
| @@ -0,0 +1,35 @@
|
| +// Copyright 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.
|
| +
|
| +#ifndef ASH_ACCELERATORS_ACCELERATOR_DELEGATE_H_
|
| +#define ASH_ACCELERATORS_ACCELERATOR_DELEGATE_H_
|
| +
|
| +#include "ash/ash_export.h"
|
| +#include "base/macros.h"
|
| +#include "ui/wm/core/accelerator_delegate.h"
|
| +
|
| +namespace ash {
|
| +
|
| +class ASH_EXPORT AcceleratorDelegate
|
| + : NON_EXPORTED_BASE(public wm::AcceleratorDelegate) {
|
| + public:
|
| + AcceleratorDelegate();
|
| + virtual ~AcceleratorDelegate();
|
| +
|
| + // wm::AcceleratorDelegate:
|
| + virtual void PreProcessAccelerator(
|
| + const ui::Accelerator& accelerator) OVERRIDE;
|
| + virtual bool CanConsumeSystemKeys(const ui::KeyEvent& event) OVERRIDE;
|
| + virtual bool ShouldProcessAcceleratorNow(
|
| + const ui::KeyEvent& key_event,
|
| + const ui::Accelerator& accelerator) OVERRIDE;
|
| + virtual bool ProcessAccelerator(const ui::Accelerator& accelerator) OVERRIDE;
|
| +
|
| + private:
|
| + DISALLOW_COPY_AND_ASSIGN(AcceleratorDelegate);
|
| +};
|
| +
|
| +} // namespace ash
|
| +
|
| +#endif // ASH_ACCELERATORS_ACCELERATOR_DELEGATE_H_
|
|
|