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

Unified Diff: third_party/WebKit/Source/core/events/MouseEvent.cpp

Issue 2296303002: Make a pen in eraser mode visible thru PointerEvent.buttons (Closed)
Patch Set: nzolghadr's comments. Created 4 years, 3 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: third_party/WebKit/Source/core/events/MouseEvent.cpp
diff --git a/third_party/WebKit/Source/core/events/MouseEvent.cpp b/third_party/WebKit/Source/core/events/MouseEvent.cpp
index fbc4d67647e0a93fbae65b0b2c4a7c93747e0e50..5a686dd729cab3b550ac645f020008c70546ab02 100644
--- a/third_party/WebKit/Source/core/events/MouseEvent.cpp
+++ b/third_party/WebKit/Source/core/events/MouseEvent.cpp
@@ -150,11 +150,11 @@ unsigned short MouseEvent::platformModifiersToButtons(unsigned modifiers)
unsigned short buttons = 0;
if (modifiers & PlatformEvent::LeftButtonDown)
- buttons |= static_cast<unsigned short>(Buttons::Left);
+ buttons |= static_cast<unsigned short>(WebPointerProperties::Buttons::Left);
if (modifiers & PlatformEvent::RightButtonDown)
- buttons |= static_cast<unsigned short>(Buttons::Right);
+ buttons |= static_cast<unsigned short>(WebPointerProperties::Buttons::Right);
if (modifiers & PlatformEvent::MiddleButtonDown)
- buttons |= static_cast<unsigned short>(Buttons::Middle);
+ buttons |= static_cast<unsigned short>(WebPointerProperties::Buttons::Middle);
return buttons;
}
« no previous file with comments | « third_party/WebKit/Source/core/events/MouseEvent.h ('k') | third_party/WebKit/Source/core/events/PointerEventFactory.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698