Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(531)

Unified Diff: ui/aura/test/event_generator.h

Issue 191153004: Provide access to the WindowEventDispatcher as a ui::EventProcessor. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 6 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/aura/test/aura_test_helper.cc ('k') | ui/aura/test/event_generator.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/aura/test/event_generator.h
diff --git a/ui/aura/test/event_generator.h b/ui/aura/test/event_generator.h
index 97358c4b8fbf6b5e31a7e0310e72d9bcb4c3c2ba..fe71f2eb82712dcf730abc811851177268bd2aa8 100644
--- a/ui/aura/test/event_generator.h
+++ b/ui/aura/test/event_generator.h
@@ -21,6 +21,7 @@ class TimeDelta;
namespace ui {
class Event;
+class EventProcessor;
class KeyEvent;
class MouseEvent;
class ScrollEvent;
@@ -29,7 +30,7 @@ class TouchEvent;
namespace aura {
class Window;
-class WindowEventDispatcher;
+class WindowTreeHost;
namespace client {
class ScreenPositionClient;
@@ -46,9 +47,8 @@ class EventGeneratorDelegate {
public:
virtual ~EventGeneratorDelegate() {}
- // Returns a root window for given point.
- virtual WindowEventDispatcher* GetDispatcherAt(
- const gfx::Point& point) const = 0;
+ // Returns the host for given point.
+ virtual WindowTreeHost* GetHostAt(const gfx::Point& point) const = 0;
// Returns the screen position client that determines the
// coordinates used in EventGenerator. EventGenerator uses
@@ -310,8 +310,8 @@ class EventGenerator {
// Dispatch the event to the WindowEventDispatcher.
void Dispatch(ui::Event* event);
- void set_current_dispatcher(WindowEventDispatcher* dispatcher) {
- current_dispatcher_ = dispatcher;
+ void set_current_host(WindowTreeHost* host) {
+ current_host_ = host;
}
private:
@@ -337,7 +337,7 @@ class EventGenerator {
scoped_ptr<EventGeneratorDelegate> delegate_;
gfx::Point current_location_;
- WindowEventDispatcher* current_dispatcher_;
+ WindowTreeHost* current_host_;
int flags_;
bool grab_;
std::list<ui::Event*> pending_events_;
« no previous file with comments | « ui/aura/test/aura_test_helper.cc ('k') | ui/aura/test/event_generator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698