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

Unified Diff: ui/wm/core/nested_accelerator_controller.cc

Issue 1647933002: ash/wm: Remove dead code. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 4 years, 11 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 | « ui/wm/core/nested_accelerator_controller.h ('k') | ui/wm/core/nested_accelerator_controller_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/wm/core/nested_accelerator_controller.cc
diff --git a/ui/wm/core/nested_accelerator_controller.cc b/ui/wm/core/nested_accelerator_controller.cc
deleted file mode 100644
index 42ace4e9617d997eb3faf8af6e2d80a6de88622c..0000000000000000000000000000000000000000
--- a/ui/wm/core/nested_accelerator_controller.cc
+++ /dev/null
@@ -1,59 +0,0 @@
-// Copyright 2014 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 "ui/wm/core/nested_accelerator_controller.h"
-
-#include <utility>
-
-#include "base/auto_reset.h"
-#include "base/bind.h"
-#include "base/run_loop.h"
-#include "ui/wm/core/nested_accelerator_delegate.h"
-#include "ui/wm/core/nested_accelerator_dispatcher.h"
-
-namespace wm {
-
-NestedAcceleratorController::NestedAcceleratorController(
- NestedAcceleratorDelegate* delegate)
- : dispatcher_delegate_(delegate) {
- DCHECK(delegate);
-}
-
-NestedAcceleratorController::~NestedAcceleratorController() {
-}
-
-void NestedAcceleratorController::PrepareNestedLoopClosures(
- base::MessagePumpDispatcher* nested_dispatcher,
- base::Closure* run_closure,
- base::Closure* quit_closure) {
- scoped_ptr<NestedAcceleratorDispatcher> old_accelerator_dispatcher =
- std::move(accelerator_dispatcher_);
- accelerator_dispatcher_ = NestedAcceleratorDispatcher::Create(
- dispatcher_delegate_.get(), nested_dispatcher);
-
- scoped_ptr<base::RunLoop> run_loop = accelerator_dispatcher_->CreateRunLoop();
- *quit_closure =
- base::Bind(&NestedAcceleratorController::QuitNestedMessageLoop,
- base::Unretained(this),
- run_loop->QuitClosure());
- *run_closure = base::Bind(&NestedAcceleratorController::RunNestedMessageLoop,
- base::Unretained(this),
- base::Passed(&run_loop),
- base::Passed(&old_accelerator_dispatcher));
-}
-
-void NestedAcceleratorController::RunNestedMessageLoop(
- scoped_ptr<base::RunLoop> run_loop,
- scoped_ptr<NestedAcceleratorDispatcher> old_accelerator_dispatcher) {
- run_loop->Run();
- accelerator_dispatcher_ = std::move(old_accelerator_dispatcher);
-}
-
-void NestedAcceleratorController::QuitNestedMessageLoop(
- const base::Closure& quit_runloop) {
- quit_runloop.Run();
- accelerator_dispatcher_.reset();
-}
-
-} // namespace wm
« no previous file with comments | « ui/wm/core/nested_accelerator_controller.h ('k') | ui/wm/core/nested_accelerator_controller_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698