#define UI_AURA_ENV_H_
#include "base/memory/scoped_ptr.h"
-#include "base/message_loop/message_pump_dispatcher.h"
#include "base/observer_list.h"
#include "ui/aura/aura_export.h"
#include "ui/events/event_handler.h"
class RootWindow;
class Window;
-// Creates a platform-specific native event dispatcher.
-base::MessagePumpDispatcher* CreateDispatcher();
-
// A singleton object that tracks general state within Aura.
// TODO(beng): manage RootWindows.
class AURA_EXPORT Env : public ui::EventTarget {
bool is_touch_down() const { return is_touch_down_; }
void set_touch_down(bool value) { is_touch_down_ = value; }
- // Returns the native event dispatcher. The result should only be passed to
- // base::RunLoop(dispatcher), or used to dispatch an event by
- // |Dispatch(const NativeEvent&)| on it. It must never be stored.
- base::MessagePumpDispatcher* GetDispatcher();
-
// Invoked by RootWindow when its host is activated.
void RootWindowActivated(RootWindow* root_window);
virtual ui::EventTargeter* GetEventTargeter() OVERRIDE;
ObserverList<EnvObserver> observers_;
- scoped_ptr<base::MessagePumpDispatcher> dispatcher_;
static Env* instance_;
int mouse_button_flags_;