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

Unified Diff: ui/aura/mus/window_tree_host_mus.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/mus/window_tree_host_mus.h ('k') | ui/aura/test/aura_test_helper.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/aura/mus/window_tree_host_mus.cc
diff --git a/ui/aura/mus/window_tree_host_mus.cc b/ui/aura/mus/window_tree_host_mus.cc
index 4af570d9efffc716a2dda48c070538d08c071fc5..132090b537889f7b5b4283d5ef0e60e66186d601 100644
--- a/ui/aura/mus/window_tree_host_mus.cc
+++ b/ui/aura/mus/window_tree_host_mus.cc
@@ -99,7 +99,7 @@ WindowTreeHostMus::~WindowTreeHostMus() {
void WindowTreeHostMus::SetBoundsFromServer(const gfx::Rect& bounds) {
base::AutoReset<bool> resetter(&in_set_bounds_from_server_, true);
- SetBounds(bounds);
+ SetBoundsInPixels(bounds);
}
void WindowTreeHostMus::SetClientArea(const gfx::Insets& insets) {
@@ -130,10 +130,10 @@ void WindowTreeHostMus::HideImpl() {
window()->Hide();
}
-void WindowTreeHostMus::SetBounds(const gfx::Rect& bounds) {
+void WindowTreeHostMus::SetBoundsInPixels(const gfx::Rect& bounds) {
if (!in_set_bounds_from_server_)
delegate_->OnWindowTreeHostBoundsWillChange(this, bounds);
- WindowTreeHostPlatform::SetBounds(bounds);
+ WindowTreeHostPlatform::SetBoundsInPixels(bounds);
}
void WindowTreeHostMus::DispatchEvent(ui::Event* event) {
« no previous file with comments | « ui/aura/mus/window_tree_host_mus.h ('k') | ui/aura/test/aura_test_helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698