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

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

Issue 8755003: Maximize windows when double clicking their title bar. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 1 month 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/event_generator.h ('k') | ui/aura_shell/aura_shell.gyp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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(
« no previous file with comments | « ui/aura/test/event_generator.h ('k') | ui/aura_shell/aura_shell.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698