diff options
Diffstat (limited to 'ui/views/events/accelerator.h')
-rw-r--r-- | ui/views/events/accelerator.h | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/ui/views/events/accelerator.h b/ui/views/events/accelerator.h deleted file mode 100644 index 965c447..0000000 --- a/ui/views/events/accelerator.h +++ /dev/null @@ -1,28 +0,0 @@ -// Copyright (c) 2011 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 UI_VIEWS_EVENTS_ACCELERATOR_H_ -#define UI_VIEWS_EVENTS_ACCELERATOR_H_ -#pragma once - -#include "ui/base/models/accelerator.h" - -namespace ui { - -string16 GetShortcutTextForAccelerator(const Accelerator& accelerator); - -// An interface that classes that want to register for keyboard accelerators -// should implement. -class AcceleratorTarget { - public: - // This method should return true if the accelerator was processed. - virtual bool AcceleratorPressed(const Accelerator& accelerator) = 0; - - protected: - virtual ~AcceleratorTarget() {} -}; - -} // namespace ui - -#endif // UI_VIEWS_EVENTS_ACCELERATOR_H_ |