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

Unified Diff: content/browser/renderer_host/input/touch_emulator_unittest.cc

Issue 2245063006: Revert of Refactoring button field and its type (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix patch apply Created 4 years, 4 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
Index: content/browser/renderer_host/input/touch_emulator_unittest.cc
diff --git a/content/browser/renderer_host/input/touch_emulator_unittest.cc b/content/browser/renderer_host/input/touch_emulator_unittest.cc
index 208d09781a9344a4d1118e8cacab41bd4ac75b6b..57c341fbba4755264ab17724e5e88d60a1c29ece 100644
--- a/content/browser/renderer_host/input/touch_emulator_unittest.cc
+++ b/content/browser/renderer_host/input/touch_emulator_unittest.cc
@@ -135,8 +135,8 @@ class TouchEmulatorTest : public testing::Test,
WebMouseEvent event;
event.timeStampSeconds = GetNextEventTimeSeconds();
event.type = type;
- event.button = mouse_pressed_ ? WebMouseEvent::Button::Left :
- WebMouseEvent::Button::NoButton;
+ event.button = mouse_pressed_ ? WebMouseEvent::ButtonLeft :
+ WebMouseEvent::ButtonNone;
event.modifiers = modifiers();
last_mouse_x_ = x;
last_mouse_y_ = y;

Powered by Google App Engine
This is Rietveld 408576698