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

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: 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
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 e458fd2be0246f90e980defd79510518d57cb44a..8a096182ad4c79d3483795d839400a22a9c876c9 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);
+ SetBoundsInPixel(bounds);
}
display::Display WindowTreeHostMus::GetDisplay() const {
@@ -121,10 +121,10 @@ void WindowTreeHostMus::HideImpl() {
window()->Hide();
}
-void WindowTreeHostMus::SetBounds(const gfx::Rect& bounds) {
+void WindowTreeHostMus::SetBoundsInPixel(const gfx::Rect& bounds) {
if (!in_set_bounds_from_server_)
delegate_->OnWindowTreeHostBoundsWillChange(this, bounds);
- WindowTreeHostPlatform::SetBounds(bounds);
+ WindowTreeHostPlatform::SetBoundsInPixel(bounds);
}
void WindowTreeHostMus::DispatchEvent(ui::Event* event) {

Powered by Google App Engine
This is Rietveld 408576698