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

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

Issue 2786693002: Add PointerDetails to ui::MouseEvent's constructors (Closed)
Patch Set: mouse event constructor Created 3 years, 9 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 5436b2923203d07ae61a8e8cecffb19575b449d5..bccdad6af43ba40bee2a935cf74cfdf618eba1e4 100644
--- a/ui/views/controls/webview/webview_unittest.cc
+++ b/ui/views/controls/webview/webview_unittest.cc
@@ -437,7 +437,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::PointerDetails(ui::EventPointerType::POINTER_TYPE_MOUSE));
EXPECT_TRUE(static_cast<views::View*>(web_view())->
OnMousePressed(click_outside_holder));
EXPECT_TRUE(web_view()->HasFocus());
@@ -459,7 +460,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::PointerDetails(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