OLD | NEW |
---|---|
(Empty) | |
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 | |
3 // found in the LICENSE file. | |
4 | |
5 #ifndef ASH_ACCELERATORS_NESTED_DISPATCHER_CONTROLLER_H_ | |
6 #define ASH_ACCELERATORS_NESTED_DISPATCHER_CONTROLLER_H_ | |
7 #pragma once | |
8 | |
9 #include "ash/ash_export.h" | |
10 #include "base/message_loop.h" | |
11 #include "ui/aura/client/dispatcher_client.h" | |
12 | |
13 namespace ash { | |
14 | |
15 // Creates a dispatcher which wraps another dispatcher. | |
16 // The outer dispatcher runs first and performs ash specific handling. | |
17 // If it does not consume the event it forwards the event to the nested | |
18 // dispatcher. | |
19 class ASH_EXPORT NestedDispatcherController | |
20 : public aura::client::DispatcherClient { | |
21 | |
oshima
2012/01/31 20:42:00
remove empty line.
| |
22 public: | |
23 NestedDispatcherController(); | |
24 | |
25 void RunWithDispatcher(MessageLoop::Dispatcher* dispatcher, | |
26 bool nestable_tasks_allowed); | |
27 | |
28 DISALLOW_COPY_AND_ASSIGN(NestedDispatcherController); | |
29 }; | |
30 | |
31 } // namespace ash | |
32 | |
33 #endif // ASH_ACCELERATORS_NESTED_DISPATCHER_CONTROLLER_H_ | |
OLD | NEW |