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 UI_AURA_CLIENT_DISPATCHER_CLIENT_H_ |
| 6 #define UI_AURA_CLIENT_DISPATCHER_CLIENT_H_ |
| 7 #pragma once |
| 8 |
| 9 #include "ui/aura/aura_export.h" |
| 10 #include "base/message_loop.h" |
| 11 |
| 12 namespace aura { |
| 13 |
| 14 namespace client { |
| 15 |
| 16 // An interface implemented by an object which handles nested dispatchers. |
| 17 class AURA_EXPORT DispatcherClient { |
| 18 public: |
| 19 virtual void RunWithDispatcher(MessageLoop::Dispatcher* dispatcher, |
| 20 bool nestable_tasks_allowed) = 0; |
| 21 }; |
| 22 |
| 23 AURA_EXPORT void SetDispatcherClient(DispatcherClient* client); |
| 24 AURA_EXPORT DispatcherClient* GetDispatcherClient(); |
| 25 |
| 26 } // namespace client |
| 27 } // namespace aura |
| 28 |
| 29 #endif // UI_AURA_CLIENT_DISPATCHER_CLIENT_H_ |
OLD | NEW |