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

Unified Diff: components/mus/ws/window_tree_impl.cc

Issue 1423133003: Routes calls to WM through WS (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: no braces Created 5 years, 2 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
« no previous file with comments | « components/mus/ws/window_tree_impl.h ('k') | components/mus/ws/window_tree_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/mus/ws/window_tree_impl.cc
diff --git a/components/mus/ws/window_tree_impl.cc b/components/mus/ws/window_tree_impl.cc
index 61394ea7aec1ecbafb4f4aeb97e684b69d3d2ae3..d1d1937b109f92437191e18a385b6ef76a016957 100644
--- a/components/mus/ws/window_tree_impl.cc
+++ b/components/mus/ws/window_tree_impl.cc
@@ -712,6 +712,45 @@ void WindowTreeImpl::SetFocus(uint32_t window_id) {
}
}
+void WindowTreeImpl::SetPreferredSize(
+ uint32_t window_id,
+ mojo::SizePtr size,
+ const SetPreferredSizeCallback& callback) {
+ if (!GetHost() || !GetHost()->window_manager())
+ return;
+
+ // TODO(sky): verify window_id is valid for the client.
+ GetHost()->window_manager()->SetPreferredSize(window_id, size.Pass(),
+ callback);
+}
+
+void WindowTreeImpl::SetBounds(uint32_t window_id,
+ mojo::RectPtr bounds,
+ const SetBoundsCallback& callback) {
+ if (!GetHost() || !GetHost()->window_manager())
+ return;
+
+ // TODO(sky): verify window_id is valid for the client.
+ GetHost()->window_manager()->SetBounds(window_id, bounds.Pass(), callback);
+}
+
+void WindowTreeImpl::SetShowState(uint32_t window_id,
+ mojom::ShowState show_state,
+ const SetShowStateCallback& callback) {
+ if (!GetHost() || !GetHost()->window_manager())
+ return;
+
+ // TODO(sky): verify window_id is valid for the client.
+ GetHost()->window_manager()->SetShowState(window_id, show_state, callback);
+}
+
+void WindowTreeImpl::GetDisplays(const GetDisplaysCallback& callback) {
+ if (!GetHost() || !GetHost()->window_manager())
+ return;
+
+ GetHost()->window_manager()->GetDisplays(callback);
+}
+
bool WindowTreeImpl::IsRootForAccessPolicy(const WindowId& id) const {
return IsRoot(id);
}
« no previous file with comments | « components/mus/ws/window_tree_impl.h ('k') | components/mus/ws/window_tree_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698