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

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: Revert Patch Set 8 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
« no previous file with comments | « Source/web/PopupContainer.cpp ('k') | Source/web/WebViewImpl.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/web/PopupMenuTest.cpp
diff --git a/Source/web/PopupMenuTest.cpp b/Source/web/PopupMenuTest.cpp
index 13d8de77ef4aadb362116aa3ab4666f730a4349b..374cd4ad2d30a0372b3871a4edad5e7414213b33 100644
--- a/Source/web/PopupMenuTest.cpp
+++ b/Source/web/PopupMenuTest.cpp
@@ -240,13 +240,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);
}
@@ -368,7 +368,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.
« no previous file with comments | « Source/web/PopupContainer.cpp ('k') | Source/web/WebViewImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698