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

Side by Side Diff: ui/wm/core/nested_accelerator_controller.h

Issue 1647933002: ash/wm: Remove dead code. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 4 years, 10 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/wm/BUILD.gn ('k') | ui/wm/core/nested_accelerator_controller.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef UI_WM_CORE_NESTED_ACCELERATOR_CONTROLLER_H_
6 #define UI_WM_CORE_NESTED_ACCELERATOR_CONTROLLER_H_
7
8 #include "base/callback.h"
9 #include "base/macros.h"
10 #include "base/message_loop/message_loop.h"
11 #include "ui/wm/public/dispatcher_client.h"
12 #include "ui/wm/wm_export.h"
13
14 namespace wm {
15
16 class NestedAcceleratorDelegate;
17 class NestedAcceleratorDispatcher;
18
19 // Creates a dispatcher which wraps another dispatcher.
20 // The outer dispatcher runs first and performs ash specific handling.
21 // If it does not consume the event it forwards the event to the nested
22 // dispatcher.
23 class WM_EXPORT NestedAcceleratorController
24 : public aura::client::DispatcherClient {
25 public:
26 explicit NestedAcceleratorController(NestedAcceleratorDelegate* delegate);
27 ~NestedAcceleratorController() override;
28
29 // aura::client::DispatcherClient:
30 void PrepareNestedLoopClosures(base::MessagePumpDispatcher* dispatcher,
31 base::Closure* run_closure,
32 base::Closure* quit_closure) override;
33
34 private:
35 void RunNestedMessageLoop(scoped_ptr<base::RunLoop> run_loop,
36 scoped_ptr<NestedAcceleratorDispatcher> dispatcher);
37 void QuitNestedMessageLoop(const base::Closure& quit_runloop);
38
39 scoped_ptr<NestedAcceleratorDispatcher> accelerator_dispatcher_;
40 scoped_ptr<NestedAcceleratorDelegate> dispatcher_delegate_;
41
42 DISALLOW_COPY_AND_ASSIGN(NestedAcceleratorController);
43 };
44
45 } // namespace wm
46
47 #endif // UI_WM_CORE_NESTED_ACCELERATOR_CONTROLLER_H_
OLDNEW
« no previous file with comments | « ui/wm/BUILD.gn ('k') | ui/wm/core/nested_accelerator_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698