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

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

Issue 1622433002: views: Remove unused GetCurrentTargetForAccelerator from FocusManager. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: tot-merge Created 4 years, 8 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
« no previous file with comments | « ui/views/focus/focus_manager.cc ('k') | ui/views/focus/focus_manager_unittest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 {
11 class Accelerator; 11 class Accelerator;
12 class AcceleratorTarget; 12 class AcceleratorTarget;
13 } 13 }
14 14
15 namespace views { 15 namespace views {
16 16
17 // Delegate interface for views::FocusManager. 17 // Delegate interface for views::FocusManager.
18 class VIEWS_EXPORT FocusManagerDelegate { 18 class VIEWS_EXPORT FocusManagerDelegate {
19 public: 19 public:
20 virtual ~FocusManagerDelegate() {} 20 virtual ~FocusManagerDelegate() {}
21 21
22 // Activate the target associated with the specified accelerator. 22 // Activate the target associated with the specified accelerator.
23 // First, AcceleratorPressed handler of the most recently registered target 23 // First, AcceleratorPressed handler of the most recently registered target
24 // is called, and if that handler processes the event (i.e. returns true), 24 // is called, and if that handler processes the event (i.e. returns true),
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
30 // Returns the AcceleratorTarget that should be activated for the specified
31 // keyboard accelerator, or NULL if no view is registered for that keyboard
32 // accelerator.
33 virtual ui::AcceleratorTarget* GetCurrentTargetForAccelerator(
34 const ui::Accelerator& accelerator) const = 0;
35 }; 29 };
36 30
37 } // namespace views 31 } // namespace views
38 32
39 #endif // UI_VIEWS_FOCUS_FOCUS_MANAGER_DELEGATE_H_ 33 #endif // UI_VIEWS_FOCUS_FOCUS_MANAGER_DELEGATE_H_
OLDNEW
« no previous file with comments | « ui/views/focus/focus_manager.cc ('k') | ui/views/focus/focus_manager_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698