| Index: ui/wm/core/accelerator_delegate.h
|
| diff --git a/ui/wm/core/accelerator_delegate.h b/ui/wm/core/accelerator_delegate.h
|
| index dccabda2e7bebaa142536bb04236c47120f3d6c7..966f1679e213432eb3cff3aa78de671617e5fd3a 100644
|
| --- a/ui/wm/core/accelerator_delegate.h
|
| +++ b/ui/wm/core/accelerator_delegate.h
|
| @@ -16,20 +16,19 @@ class AcceleratorDelegate {
|
| public:
|
| virtual ~AcceleratorDelegate() {}
|
|
|
| + // Type of keys that triggers accelerators.
|
| + enum KeyType {
|
| + KEY_TYPE_SYSTEM,
|
| + KEY_TYPE_OTHER,
|
| + };
|
| +
|
| // TODO(oshima): Move the repeat detection to AcceleratorFilter.
|
| virtual void PreProcessAccelerator(const ui::Accelerator& accelerator) = 0;
|
|
|
| - // Returns true if the window should be allowed a chance to handle
|
| - // system keys.
|
| - virtual bool CanConsumeSystemKeys(const ui::KeyEvent& event) = 0;
|
| -
|
| - // Returns true if the |accelerator| should be processed.
|
| - virtual bool ShouldProcessAcceleratorNow(
|
| - const ui::KeyEvent& key_event,
|
| - const ui::Accelerator& accelerator) = 0;
|
| -
|
| // Return true if the |accelerator| has been processed.
|
| - virtual bool ProcessAccelerator(const ui::Accelerator& accelerator) = 0;
|
| + virtual bool ProcessAccelerator(const ui::KeyEvent& event,
|
| + const ui::Accelerator& accelerator,
|
| + KeyType key_type) = 0;
|
| };
|
|
|
| } // namespace wm
|
|
|