summaryrefslogtreecommitdiffstats
path: root/ui/wm/public/dispatcher_client.h
diff options
context:
space:
mode:
Diffstat (limited to 'ui/wm/public/dispatcher_client.h')
-rw-r--r--ui/wm/public/dispatcher_client.h30
1 files changed, 30 insertions, 0 deletions
diff --git a/ui/wm/public/dispatcher_client.h b/ui/wm/public/dispatcher_client.h
new file mode 100644
index 0000000..9fd9c94
--- /dev/null
+++ b/ui/wm/public/dispatcher_client.h
@@ -0,0 +1,30 @@
+// 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.
+
+#ifndef UI_WM_PUBLIC_DISPATCHER_CLIENT_H_
+#define UI_WM_PUBLIC_DISPATCHER_CLIENT_H_
+
+#include "base/message_loop/message_pump_dispatcher.h"
+#include "ui/aura/aura_export.h"
+
+namespace aura {
+class Window;
+namespace client {
+
+// An interface implemented by an object which handles nested dispatchers.
+class AURA_EXPORT DispatcherClient {
+ public:
+ virtual void RunWithDispatcher(base::MessagePumpDispatcher* dispatcher) = 0;
+
+ virtual void QuitNestedMessageLoop() = 0;
+};
+
+AURA_EXPORT void SetDispatcherClient(Window* root_window,
+ DispatcherClient* client);
+AURA_EXPORT DispatcherClient* GetDispatcherClient(Window* root_window);
+
+} // namespace client
+} // namespace aura
+
+#endif // UI_WM_PUBLIC_DISPATCHER_CLIENT_H_