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

Side by Side Diff: ash/accelerators/focus_manager_factory.cc

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
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 #include "ash/accelerators/focus_manager_factory.h" 5 #include "ash/accelerators/focus_manager_factory.h"
6 6
7 #include "ash/accelerators/accelerator_controller.h" 7 #include "ash/accelerators/accelerator_controller.h"
8 #include "ash/shell.h" 8 #include "ash/shell.h"
9 #include "ui/views/focus/focus_manager.h" 9 #include "ui/views/focus/focus_manager.h"
10 10
(...skipping 10 matching lines...) Expand all
21 21
22 bool AshFocusManagerFactory::Delegate::ProcessAccelerator( 22 bool AshFocusManagerFactory::Delegate::ProcessAccelerator(
23 const ui::Accelerator& accelerator) { 23 const ui::Accelerator& accelerator) {
24 AcceleratorController* controller = 24 AcceleratorController* controller =
25 Shell::GetInstance()->accelerator_controller(); 25 Shell::GetInstance()->accelerator_controller();
26 if (controller) 26 if (controller)
27 return controller->Process(accelerator); 27 return controller->Process(accelerator);
28 return false; 28 return false;
29 } 29 }
30 30
31 ui::AcceleratorTarget*
32 AshFocusManagerFactory::Delegate::GetCurrentTargetForAccelerator(
33 const ui::Accelerator& accelerator) const {
34 AcceleratorController* controller =
35 Shell::GetInstance()->accelerator_controller();
36 if (controller && controller->IsRegistered(accelerator))
37 return controller;
38 return NULL;
39 }
40
41 } // namespace ash 31 } // namespace ash
OLDNEW
« no previous file with comments | « ash/accelerators/focus_manager_factory.h ('k') | chrome/browser/ui/views/find_bar_controller_interactive_uitest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698