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

Unified Diff: ui/aura/window_unittest.cc

Issue 2524873002: Rename WindowTreeHost G|SetBounds to indicate they are in pixels. (Closed)
Patch Set: rebase Created 4 years, 1 month 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 | « ui/aura/window_tree_host_x11.cc ('k') | ui/views/mus/desktop_window_tree_host_mus.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/aura/window_unittest.cc
diff --git a/ui/aura/window_unittest.cc b/ui/aura/window_unittest.cc
index 90972c780ad976d2b285214f523ebd36c5c6340e..1e607ac4fd5c9986b1f3548cfd77778d18046863 100644
--- a/ui/aura/window_unittest.cc
+++ b/ui/aura/window_unittest.cc
@@ -1610,7 +1610,7 @@ TEST_P(WindowTest, IgnoreEventsTest) {
// Tests transformation on the root window.
TEST_P(WindowTest, Transform) {
- gfx::Size size = host()->GetBounds().size();
+ gfx::Size size = host()->GetBoundsInPixels().size();
EXPECT_EQ(gfx::Rect(size), display::Screen::GetScreen()
->GetDisplayNearestPoint(gfx::Point())
.bounds());
@@ -1632,11 +1632,11 @@ TEST_P(WindowTest, Transform) {
.ToString());
// Host size shouldn't change.
- EXPECT_EQ(size.ToString(), host()->GetBounds().size().ToString());
+ EXPECT_EQ(size.ToString(), host()->GetBoundsInPixels().size().ToString());
}
TEST_P(WindowTest, TransformGesture) {
- gfx::Size size = host()->GetBounds().size();
+ gfx::Size size = host()->GetBoundsInPixels().size();
std::unique_ptr<GestureTrackPositionDelegate> delegate(
new GestureTrackPositionDelegate);
« no previous file with comments | « ui/aura/window_tree_host_x11.cc ('k') | ui/views/mus/desktop_window_tree_host_mus.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698