Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(131)

Side by Side Diff: ui/views/focus/focus_manager_delegate.h

Issue 1177773002: Deprecating high-conflict accelerators (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Simplified the design, modified tests accordingly, made accelerators consumable by webcontents if n… Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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_
OLDNEW
« ui/views/focus/focus_manager.h ('K') | « ui/views/focus/focus_manager.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698