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

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

Issue 2489513003: Fixes and test updates for aura-mus (Closed)
Patch Set: feedback 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 | « no previous file | ui/views/mus/desktop_window_tree_host_mus.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 d3862ac13a7205320930ddb3ae7b5dd46de84826..fac72b3ed17c48789dd62e5b5e04270633d6a48c 100644
--- a/ui/aura/mus/window_port_mus.cc
+++ b/ui/aura/mus/window_port_mus.cc
@@ -11,6 +11,7 @@
#include "ui/aura/mus/window_tree_client.h"
#include "ui/aura/mus/window_tree_client_delegate.h"
#include "ui/aura/window.h"
+#include "ui/aura/window_delegate.h"
#include "ui/aura/window_observer.h"
#include "ui/aura/window_property.h"
@@ -306,7 +307,10 @@ void WindowPortMus::OnPreInit(Window* window) {
window_tree_client_->OnWindowMusCreated(this);
}
-void WindowPortMus::OnDeviceScaleFactorChanged(float device_scale_factor) {}
+void WindowPortMus::OnDeviceScaleFactorChanged(float device_scale_factor) {
+ if (window_->delegate())
+ window_->delegate()->OnDeviceScaleFactorChanged(device_scale_factor);
+}
void WindowPortMus::OnWillAddChild(Window* child) {
ServerChangeData change_data;
« no previous file with comments | « no previous file | ui/views/mus/desktop_window_tree_host_mus.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698