#ifndef UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_DISPATCHER_CLIENT_H_
#define UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_DISPATCHER_CLIENT_H_
#include "base/basictypes.h"
#include "base/callback.h"
#include "base/memory/weak_ptr.h"
#include "ui/views/views_export.h"
#include "ui/wm/public/dispatcher_client.h"
namespace views {
class VIEWS_EXPORT DesktopDispatcherClient
: public aura::client::DispatcherClient {
public:
DesktopDispatcherClient();
virtual ~DesktopDispatcherClient();
virtual void RunWithDispatcher(
base::MessagePumpDispatcher* dispatcher) OVERRIDE;
virtual void QuitNestedMessageLoop() OVERRIDE;
private:
base::Closure quit_closure_;
base::WeakPtrFactory<DesktopDispatcherClient> weak_ptr_factory_;
DISALLOW_COPY_AND_ASSIGN(DesktopDispatcherClient);
};
}
#endif