| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef UI_VIEWS_FOCUS_FOCUS_MANAGER_DELEGATE_H_ | 5 #ifndef UI_VIEWS_FOCUS_FOCUS_MANAGER_DELEGATE_H_ |
| 6 #define UI_VIEWS_FOCUS_FOCUS_MANAGER_DELEGATE_H_ | 6 #define UI_VIEWS_FOCUS_FOCUS_MANAGER_DELEGATE_H_ |
| 7 | 7 |
| 8 #include "ui/views/views_export.h" | 8 #include "ui/views/views_export.h" |
| 9 | 9 |
| 10 namespace ui { | 10 namespace ui { |
| (...skipping 14 matching lines...) Expand all Loading... |
| 25 // this method immediately returns. If not, we do the same thing on the next | 25 // this method immediately returns. If not, we do the same thing on the next |
| 26 // target, and so on. | 26 // target, and so on. |
| 27 // Returns true if an accelerator was activated. | 27 // Returns true if an accelerator was activated. |
| 28 virtual bool ProcessAccelerator(const ui::Accelerator& accelerator) = 0; | 28 virtual bool ProcessAccelerator(const ui::Accelerator& accelerator) = 0; |
| 29 | 29 |
| 30 // Returns the AcceleratorTarget that should be activated for the specified | 30 // Returns the AcceleratorTarget that should be activated for the specified |
| 31 // keyboard accelerator, or NULL if no view is registered for that keyboard | 31 // keyboard accelerator, or NULL if no view is registered for that keyboard |
| 32 // accelerator. | 32 // accelerator. |
| 33 virtual ui::AcceleratorTarget* GetCurrentTargetForAccelerator( | 33 virtual ui::AcceleratorTarget* GetCurrentTargetForAccelerator( |
| 34 const ui::Accelerator& accelerator) const = 0; | 34 const ui::Accelerator& accelerator) const = 0; |
| 35 |
| 36 // Returns true if the |accelerator| has been deprecated. |
| 37 virtual bool IsAcceleratorDeprecated( |
| 38 const ui::Accelerator& accelerator) const = 0; |
| 35 }; | 39 }; |
| 36 | 40 |
| 37 } // namespace views | 41 } // namespace views |
| 38 | 42 |
| 39 #endif // UI_VIEWS_FOCUS_FOCUS_MANAGER_DELEGATE_H_ | 43 #endif // UI_VIEWS_FOCUS_FOCUS_MANAGER_DELEGATE_H_ |
| OLD | NEW |