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

Unified Diff: blimp/engine/session/blimp_engine_session.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
Index: blimp/engine/session/blimp_engine_session.cc
diff --git a/blimp/engine/session/blimp_engine_session.cc b/blimp/engine/session/blimp_engine_session.cc
index f71ae27f15c1570a9c0dce82f533d7f202203d95..57a3ec2f7b86e60c8babc740cec73376590aa31e 100644
--- a/blimp/engine/session/blimp_engine_session.cc
+++ b/blimp/engine/session/blimp_engine_session.cc
@@ -305,7 +305,8 @@ void BlimpEngineSession::Initialize() {
window_tree_host_->GetInputMethod()->AddObserver(this);
- window_tree_host_->SetBounds(gfx::Rect(screen_->GetPrimaryDisplay().size()));
+ window_tree_host_->SetBoundsInPixels(
+ gfx::Rect(screen_->GetPrimaryDisplay().size()));
RegisterFeatures();
@@ -393,7 +394,7 @@ void BlimpEngineSession::HandleResize(float device_pixel_ratio,
const gfx::Size& size) {
DVLOG(1) << "Resize to " << size.ToString() << ", " << device_pixel_ratio;
screen_->UpdateDisplayScaleAndSize(device_pixel_ratio, size);
- window_tree_host_->SetBounds(gfx::Rect(size));
+ window_tree_host_->SetBoundsInPixels(gfx::Rect(size));
if (tab_) {
tab_->Resize(device_pixel_ratio,
screen_->GetPrimaryDisplay().bounds().size());

Powered by Google App Engine
This is Rietveld 408576698