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

Unified Diff: Source/web/PopupMenuTest.cpp

Issue 453493002: Improve detection of touch events when hiding media controls. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@autoHideControls
Patch Set: Fix build breakage Created 6 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: Source/web/PopupMenuTest.cpp
diff --git a/Source/web/PopupMenuTest.cpp b/Source/web/PopupMenuTest.cpp
index 461d93091f81a7b97c559a792f8175ab7de93c0b..23e45bf117e3d94f989b6ca552b4ee380d59cb67 100644
--- a/Source/web/PopupMenuTest.cpp
+++ b/Source/web/PopupMenuTest.cpp
@@ -241,13 +241,13 @@ protected:
void simulateLeftMouseDownEvent(const IntPoint& point)
{
PlatformMouseEvent mouseEvent(point, point, LeftButton, PlatformEvent::MousePressed,
- 1, false, false, false, false, 0);
+ 1, false, false, false, false, PlatformMouseEvent::RealOrIndistinguishable, 0);
webView()->selectPopup()->handleMouseDownEvent(mouseEvent);
}
void simulateLeftMouseUpEvent(const IntPoint& point)
{
PlatformMouseEvent mouseEvent(point, point, LeftButton, PlatformEvent::MouseReleased,
- 1, false, false, false, false, 0);
+ 1, false, false, false, false, PlatformMouseEvent::RealOrIndistinguishable, 0);
webView()->selectPopup()->handleMouseReleaseEvent(mouseEvent);
}
@@ -369,7 +369,7 @@ TEST_F(SelectPopupMenuTest, MouseOverItemClickOutside)
IntPoint row1Point(2, menuItemHeight * 1.5);
// Simulate the mouse moving over the first item.
PlatformMouseEvent mouseEvent(row1Point, row1Point, NoButton, PlatformEvent::MouseMoved,
- 1, false, false, false, false, 0);
+ 1, false, false, false, false, PlatformMouseEvent::RealOrIndistinguishable, 0);
webView()->selectPopup()->handleMouseMoveEvent(mouseEvent);
// Click outside the popup.

Powered by Google App Engine
This is Rietveld 408576698