Revert 268405 "Make sure that ScratchBuffer::Allocate() always r..."
[chromium-blink-merge.git] / ui / wm / public / dispatcher_client.h
blob9fd9c94326d8152841904020e682bde44200c3b2
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.
5 #ifndef UI_WM_PUBLIC_DISPATCHER_CLIENT_H_
6 #define UI_WM_PUBLIC_DISPATCHER_CLIENT_H_
8 #include "base/message_loop/message_pump_dispatcher.h"
9 #include "ui/aura/aura_export.h"
11 namespace aura {
12 class Window;
13 namespace client {
15 // An interface implemented by an object which handles nested dispatchers.
16 class AURA_EXPORT DispatcherClient {
17 public:
18 virtual void RunWithDispatcher(base::MessagePumpDispatcher* dispatcher) = 0;
20 virtual void QuitNestedMessageLoop() = 0;
23 AURA_EXPORT void SetDispatcherClient(Window* root_window,
24 DispatcherClient* client);
25 AURA_EXPORT DispatcherClient* GetDispatcherClient(Window* root_window);
27 } // namespace client
28 } // namespace aura
30 #endif // UI_WM_PUBLIC_DISPATCHER_CLIENT_H_