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

Unified Diff: ui/views/controls/button/custom_button_unittest.cc

Issue 1372253002: gfx: Make conversions from gfx::Point to PointF explicit. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: pointfconvert-gfx: . Created 5 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: ui/views/controls/button/custom_button_unittest.cc
diff --git a/ui/views/controls/button/custom_button_unittest.cc b/ui/views/controls/button/custom_button_unittest.cc
index de3be98fe5541c63730f7c00a7ab67cf52cfcee3..caa5e32289550297faba9b47b890705a45c3d28d 100644
--- a/ui/views/controls/button/custom_button_unittest.cc
+++ b/ui/views/controls/button/custom_button_unittest.cc
@@ -96,7 +96,7 @@ class CustomButtonTest : public ViewsTestBase {
// Tests that hover state changes correctly when visiblity/enableness changes.
TEST_F(CustomButtonTest, HoverStateOnVisibilityChange) {
- gfx::Point center(10, 10);
+ gfx::PointF center(10.f, 10.f);
button()->OnMousePressed(ui::MouseEvent(
ui::ET_MOUSE_PRESSED, center, center, ui::EventTimeForNow(),
ui::EF_LEFT_MOUSE_BUTTON, ui::EF_LEFT_MOUSE_BUTTON));
@@ -145,7 +145,7 @@ TEST_F(CustomButtonTest, HoverStateOnVisibilityChange) {
// Tests the different types of NotifyActions.
TEST_F(CustomButtonTest, NotifyAction) {
- gfx::Point center(10, 10);
+ gfx::PointF center(10.f, 10.f);
// By default the button should notify its listener on mouse release.
button()->OnMousePressed(ui::MouseEvent(

Powered by Google App Engine
This is Rietveld 408576698