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

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

Issue 9421016: Change EventGenerator to take a RootWindow at construction instead of just assuming one via RootWin… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 10 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 | « ash/wm/window_modality_controller_unittest.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
===================================================================
--- ui/aura/test/event_generator.h (revision 122697)
+++ ui/aura/test/event_generator.h (working copy)
@@ -12,6 +12,7 @@
namespace aura {
class Event;
+class RootWindow;
class Window;
namespace test {
@@ -20,15 +21,15 @@
class EventGenerator {
public:
// Creates an EventGenerator with the mouse/touch location (0,0).
- EventGenerator();
+ explicit EventGenerator(RootWindow* root_window);
// Creates an EventGenerator with the mouse/touch location
// at |initial_location|.
- explicit EventGenerator(const gfx::Point& initial_location);
+ EventGenerator(RootWindow* root_window, const gfx::Point& initial_location);
// Creates an EventGenerator with the mouse/touch location
// centered over |window|.
- explicit EventGenerator(Window* window);
+ EventGenerator(RootWindow* root_window, Window* window);
virtual ~EventGenerator();
@@ -120,6 +121,7 @@
// Dispatch a key event to the RootWindow.
void DispatchKeyEvent(bool is_press, ui::KeyboardCode key_code, int flags);
+ RootWindow* root_window_;
int flags_;
gfx::Point current_location_;
« no previous file with comments | « ash/wm/window_modality_controller_unittest.cc ('k') | ui/aura/test/event_generator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698