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

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

Issue 2227563003: Refactoring button field and its type (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix new instances 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 2852a1f0fa81d42ae2b54e02ca3e39cf953cd1cf..673e88d1759877837b07380badeefeabda3b08b7 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::ButtonLeft :
- WebMouseEvent::ButtonNone;
+ event.button = mouse_pressed_ ? WebMouseEvent::Button::Left :
+ WebMouseEvent::Button::NoButton;
event.modifiers = modifiers();
last_mouse_x_ = x;
last_mouse_y_ = y;

Powered by Google App Engine
This is Rietveld 408576698