Index: ui/aura/test/event_generator.cc |
=================================================================== |
--- ui/aura/test/event_generator.cc (revision 112237) |
+++ ui/aura/test/event_generator.cc (working copy) |
@@ -37,11 +37,6 @@ |
EventGenerator::~EventGenerator() { |
} |
-void EventGenerator::ClickLeftButton() { |
- PressLeftButton(); |
- ReleaseLeftButton(); |
-} |
- |
void EventGenerator::PressLeftButton() { |
if ((flags_ & ui::EF_LEFT_BUTTON_DOWN) == 0) { |
flags_ |= ui::EF_LEFT_BUTTON_DOWN; |
@@ -58,6 +53,18 @@ |
} |
} |
+void EventGenerator::ClickLeftButton() { |
+ PressLeftButton(); |
+ ReleaseLeftButton(); |
+} |
+ |
+void EventGenerator::DoubleClickLeftButton() { |
+ flags_ |= ui::EF_IS_DOUBLE_CLICK; |
+ PressLeftButton(); |
+ flags_ ^= ui::EF_IS_DOUBLE_CLICK; |
Ben Goodger (Google)
2011/11/30 22:42:45
Good idea. This is similar to what you propose, bu
|
+ ReleaseLeftButton(); |
+} |
+ |
void EventGenerator::MoveMouseTo(const gfx::Point& point) { |
if (flags_ & ui::EF_LEFT_BUTTON_DOWN ) { |
MouseEvent middle( |