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

Unified Diff: ui/aura/mus/window_port_mus.cc

Issue 2579883002: Scale bounds in aura-mus client-lib and NativeWidgetMus in hdpi mode. (Closed)
Patch Set: sadrul@'s comments Created 4 years 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_port_mus.h ('k') | ui/aura/mus/window_tree_client.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/aura/mus/window_port_mus.cc
diff --git a/ui/aura/mus/window_port_mus.cc b/ui/aura/mus/window_port_mus.cc
index da5774c1935d7a7a56b1a23f5c0734bb665636cc..8f7aa82d3847ae808b091b13292475694ff6680e 100644
--- a/ui/aura/mus/window_port_mus.cc
+++ b/ui/aura/mus/window_port_mus.cc
@@ -147,7 +147,7 @@ WindowPortMus::ServerChanges::iterator WindowPortMus::FindChangeByTypeAndData(
return iter;
break;
case ServerChangeType::BOUNDS:
- if (iter->data.bounds == data.bounds)
+ if (iter->data.bounds_in_dip == data.bounds_in_dip)
return iter;
break;
case ServerChangeType::DESTROY:
@@ -206,7 +206,7 @@ void WindowPortMus::ReorderFromServer(WindowMus* child,
void WindowPortMus::SetBoundsFromServer(const gfx::Rect& bounds) {
ServerChangeData data;
- data.bounds = bounds;
+ data.bounds_in_dip = bounds;
ScopedServerChange change(this, ServerChangeType::BOUNDS, data);
window_->SetBounds(bounds);
}
@@ -322,7 +322,7 @@ WindowPortMus::PrepareForServerBoundsChange(const gfx::Rect& bounds) {
std::unique_ptr<WindowMusChangeDataImpl> data(
base::MakeUnique<WindowMusChangeDataImpl>());
ServerChangeData change_data;
- change_data.bounds = bounds;
+ change_data.bounds_in_dip = bounds;
data->change = base::MakeUnique<ScopedServerChange>(
this, ServerChangeType::BOUNDS, change_data);
return std::move(data);
@@ -408,7 +408,7 @@ void WindowPortMus::OnVisibilityChanged(bool visible) {
void WindowPortMus::OnDidChangeBounds(const gfx::Rect& old_bounds,
const gfx::Rect& new_bounds) {
ServerChangeData change_data;
- change_data.bounds = new_bounds;
+ change_data.bounds_in_dip = new_bounds;
if (!RemoveChangeByTypeAndData(ServerChangeType::BOUNDS, change_data))
window_tree_client_->OnWindowMusBoundsChanged(this, old_bounds, new_bounds);
}
« no previous file with comments | « ui/aura/mus/window_port_mus.h ('k') | ui/aura/mus/window_tree_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698