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

Unified Diff: ui/views/controls/webview/webview_unittest.cc

Issue 1260453006: ui: events: Add a class to hold common touch and stylus properties (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address build problems, add accessor and unit tests. Created 5 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: ui/views/controls/webview/webview_unittest.cc
diff --git a/ui/views/controls/webview/webview_unittest.cc b/ui/views/controls/webview/webview_unittest.cc
index 76ef42d665fe5dca72372db78bee373babfe5a83..177e8e2419a7baee902bf4d57fae99454e9f0e59 100644
--- a/ui/views/controls/webview/webview_unittest.cc
+++ b/ui/views/controls/webview/webview_unittest.cc
@@ -404,7 +404,8 @@ TEST_F(WebViewUnitTest, EmbeddedFullscreenDuringScreenCapture_ClickToFocus) {
const ui::MouseEvent click_outside_holder(
ui::ET_MOUSE_PRESSED, gfx::Point(1, 1),
gfx::Point(), // Immaterial.
- ui::EventTimeForNow(), ui::EF_LEFT_MOUSE_BUTTON, 0);
+ ui::EventTimeForNow(), ui::EF_LEFT_MOUSE_BUTTON, 0,
+ ui::PointerEventDetails(ui::EventPointerType::POINTER_TYPE_MOUSE));
EXPECT_TRUE(static_cast<views::View*>(web_view())->
OnMousePressed(click_outside_holder));
EXPECT_TRUE(web_view()->HasFocus());
@@ -426,7 +427,8 @@ TEST_F(WebViewUnitTest, EmbeddedFullscreenDuringScreenCapture_ClickToFocus) {
const ui::MouseEvent click_inside_holder(
ui::ET_MOUSE_PRESSED, web_view()->bounds().CenterPoint(),
gfx::Point(), // Immaterial.
- ui::EventTimeForNow(), ui::EF_LEFT_MOUSE_BUTTON, 0);
+ ui::EventTimeForNow(), ui::EF_LEFT_MOUSE_BUTTON, 0,
+ ui::PointerEventDetails(ui::EventPointerType::POINTER_TYPE_MOUSE));
EXPECT_FALSE(static_cast<views::View*>(web_view())->
OnMousePressed(click_inside_holder));
EXPECT_FALSE(web_view()->HasFocus());

Powered by Google App Engine
This is Rietveld 408576698