OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef UI_AURA_CLIENT_DISPATCHER_CLIENT_H_ | 5 #ifndef UI_AURA_CLIENT_DISPATCHER_CLIENT_H_ |
6 #define UI_AURA_CLIENT_DISPATCHER_CLIENT_H_ | 6 #define UI_AURA_CLIENT_DISPATCHER_CLIENT_H_ |
7 | 7 |
8 #include "base/message_loop/message_pump_dispatcher.h" | 8 #include "base/message_loop/message_pump_dispatcher.h" |
9 #include "ui/aura/aura_export.h" | 9 #include "ui/aura/aura_export.h" |
10 #include "ui/aura/window.h" | 10 #include "ui/aura/window.h" |
11 | 11 |
12 namespace aura { | 12 namespace aura { |
13 class Window; | 13 class Window; |
14 namespace client { | 14 namespace client { |
15 | 15 |
16 // An interface implemented by an object which handles nested dispatchers. | 16 // An interface implemented by an object which handles nested dispatchers. |
17 class AURA_EXPORT DispatcherClient { | 17 class AURA_EXPORT DispatcherClient { |
18 public: | 18 public: |
19 virtual void RunWithDispatcher(base::MessagePumpDispatcher* dispatcher, | 19 virtual void RunWithDispatcher(base::MessagePumpDispatcher* dispatcher, |
20 aura::Window* associated_window) = 0; | 20 aura::Window* associated_window) = 0; |
21 | |
22 virtual void QuitNestedMessageLoop() = 0; | |
23 }; | 21 }; |
24 | 22 |
25 AURA_EXPORT void SetDispatcherClient(Window* root_window, | 23 AURA_EXPORT void SetDispatcherClient(Window* root_window, |
26 DispatcherClient* client); | 24 DispatcherClient* client); |
27 AURA_EXPORT DispatcherClient* GetDispatcherClient(Window* root_window); | 25 AURA_EXPORT DispatcherClient* GetDispatcherClient(Window* root_window); |
28 | 26 |
29 } // namespace client | 27 } // namespace client |
30 } // namespace aura | 28 } // namespace aura |
31 | 29 |
32 #endif // UI_AURA_CLIENT_DISPATCHER_CLIENT_H_ | 30 #endif // UI_AURA_CLIENT_DISPATCHER_CLIENT_H_ |
OLD | NEW |