summaryrefslogtreecommitdiffstats
path: root/ash/accelerators/nested_dispatcher_controller.cc
diff options
context:
space:
mode:
authorpkotwicz@chromium.org <pkotwicz@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-02-06 15:29:50 +0000
committerpkotwicz@chromium.org <pkotwicz@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-02-06 15:29:50 +0000
commiteaef2a3f543f50bdd913d0a3fbe45f270639b9cf (patch)
treecef812ee43113dc874aaaf0e1d24074da9c6649e /ash/accelerators/nested_dispatcher_controller.cc
parent0f5c8c8def9e8d1af6e76dee819df4be8d30f4e6 (diff)
downloadchromium_src-eaef2a3f543f50bdd913d0a3fbe45f270639b9cf.zip
chromium_src-eaef2a3f543f50bdd913d0a3fbe45f270639b9cf.tar.gz
chromium_src-eaef2a3f543f50bdd913d0a3fbe45f270639b9cf.tar.bz2
Revert 120566 - Implements accelerator handling for menus on aura.
BUG=105964 TEST=Manual Depends on http://codereview.chromium.org/9124021 Review URL: https://chromiumcodereview.appspot.com/9224001 TBR=pkotwicz@chromium.org Review URL: https://chromiumcodereview.appspot.com/9310124 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@120569 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ash/accelerators/nested_dispatcher_controller.cc')
-rw-r--r--ash/accelerators/nested_dispatcher_controller.cc28
1 files changed, 0 insertions, 28 deletions
diff --git a/ash/accelerators/nested_dispatcher_controller.cc b/ash/accelerators/nested_dispatcher_controller.cc
deleted file mode 100644
index 747a2ce..0000000
--- a/ash/accelerators/nested_dispatcher_controller.cc
+++ /dev/null
@@ -1,28 +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/accelerators/nested_dispatcher_controller.h"
-
-#include "ash/accelerators/accelerator_dispatcher.h"
-
-namespace ash {
-
-NestedDispatcherController::NestedDispatcherController() {
- aura::client::SetDispatcherClient(this);
-}
-
-void NestedDispatcherController::RunWithDispatcher(
- MessageLoop::Dispatcher* nested_dispatcher,
- bool nestable_tasks_allowed) {
- MessageLoopForUI* loop = MessageLoopForUI::current();
- bool did_allow_task_nesting = loop->NestableTasksAllowed();
- loop->SetNestableTasksAllowed(nestable_tasks_allowed);
-
- AcceleratorDispatcher dispatcher(nested_dispatcher);
-
- loop->RunWithDispatcher(&dispatcher);
- loop->SetNestableTasksAllowed(did_allow_task_nesting);
-}
-
-} // namespace ash