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

Unified Diff: ash/host/ash_window_tree_host_platform.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 | « ash/host/ash_window_tree_host_platform.h ('k') | ash/host/ash_window_tree_host_unified.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/host/ash_window_tree_host_platform.cc
diff --git a/ash/host/ash_window_tree_host_platform.cc b/ash/host/ash_window_tree_host_platform.cc
index 8f140ba9085475b8ad9daee4a5b40b92fdbdbcdb..1dc61e3cb580183726905232c6fc760b0639f411 100644
--- a/ash/host/ash_window_tree_host_platform.cc
+++ b/ash/host/ash_window_tree_host_platform.cc
@@ -44,7 +44,7 @@ void AshWindowTreeHostPlatform::ToggleFullScreen() {
}
bool AshWindowTreeHostPlatform::ConfineCursorToRootWindow() {
- gfx::Rect confined_bounds(GetBounds().size());
+ gfx::Rect confined_bounds(GetBoundsInPixels().size());
confined_bounds.Inset(transformer_helper_.GetHostInsets());
platform_window()->ConfineCursorToBounds(confined_bounds);
return true;
@@ -99,8 +99,8 @@ void AshWindowTreeHostPlatform::OnCursorVisibilityChangedNative(bool show) {
SetTapToClickPaused(!show);
}
-void AshWindowTreeHostPlatform::SetBounds(const gfx::Rect& bounds) {
- WindowTreeHostPlatform::SetBounds(bounds);
+void AshWindowTreeHostPlatform::SetBoundsInPixels(const gfx::Rect& bounds) {
+ WindowTreeHostPlatform::SetBoundsInPixels(bounds);
ConfineCursorToRootWindow();
}
« no previous file with comments | « ash/host/ash_window_tree_host_platform.h ('k') | ash/host/ash_window_tree_host_unified.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698