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

Unified Diff: ui/views/mus/window_tree_host_mus.cc

Issue 2040783002: Drop unnecessary override of OnWindowBoundsChanged in NativeWidgetMus::MusWindowObserver (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Set delegate in StubWindow to enable normal flow for notifying OnBoundsChanged Created 4 years, 6 months 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
« ui/platform_window/stub/stub_window.h ('K') | « ui/views/mus/native_widget_mus.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/mus/window_tree_host_mus.cc
diff --git a/ui/views/mus/window_tree_host_mus.cc b/ui/views/mus/window_tree_host_mus.cc
index dcf8b81f683289fe398bd23644f79efdf7e19422..2105f56bd7a53eb658d0f985817733c844751f68 100644
--- a/ui/views/mus/window_tree_host_mus.cc
+++ b/ui/views/mus/window_tree_host_mus.cc
@@ -53,7 +53,10 @@ WindowTreeHostMus::WindowTreeHostMus(shell::Connector* connector,
bitmap_uploader_.get()));
}
- SetPlatformWindow(base::WrapUnique(new ui::StubWindow(nullptr)));
+ SetPlatformWindow(base::WrapUnique(new ui::StubWindow(
+ this,
+ false))); // Do not advertise accelerated widget; already set manually.
+
// Initialize the stub platform window bounds to those of the mus::Window.
platform_window()->SetBounds(window->bounds());
« ui/platform_window/stub/stub_window.h ('K') | « ui/views/mus/native_widget_mus.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698