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

Unified Diff: ash/common/accelerators/ash_focus_manager_factory.cc

Issue 2736573002: chromeos: Move files in //ash/common to //ash, part 2 (Closed)
Patch Set: Created 3 years, 9 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ash/common/accelerators/ash_focus_manager_factory.h ('k') | ash/common/accelerators/debug_commands.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/common/accelerators/ash_focus_manager_factory.cc
diff --git a/ash/common/accelerators/ash_focus_manager_factory.cc b/ash/common/accelerators/ash_focus_manager_factory.cc
deleted file mode 100644
index 058e05756e542f40105be7105a7e4667f40a0110..0000000000000000000000000000000000000000
--- a/ash/common/accelerators/ash_focus_manager_factory.cc
+++ /dev/null
@@ -1,33 +0,0 @@
-// Copyright (c) 2012 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.
-
-#include "ash/common/accelerators/ash_focus_manager_factory.h"
-
-#include "ash/common/accelerators/accelerator_controller.h"
-#include "ash/common/wm_shell.h"
-#include "base/memory/ptr_util.h"
-#include "ui/views/focus/focus_manager.h"
-
-namespace ash {
-
-AshFocusManagerFactory::AshFocusManagerFactory() {}
-AshFocusManagerFactory::~AshFocusManagerFactory() {}
-
-views::FocusManager* AshFocusManagerFactory::CreateFocusManager(
- views::Widget* widget,
- bool desktop_widget) {
- return new views::FocusManager(
- widget,
- desktop_widget ? nullptr : base::WrapUnique<Delegate>(new Delegate));
-}
-
-bool AshFocusManagerFactory::Delegate::ProcessAccelerator(
- const ui::Accelerator& accelerator) {
- AcceleratorController* controller = WmShell::Get()->accelerator_controller();
- if (controller)
- return controller->Process(accelerator);
- return false;
-}
-
-} // namespace ash
« no previous file with comments | « ash/common/accelerators/ash_focus_manager_factory.h ('k') | ash/common/accelerators/debug_commands.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698