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

Unified Diff: components/mus/public/cpp/lib/window.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/public/cpp/BUILD.gn ('k') | components/mus/public/cpp/lib/window_tree_client_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/mus/public/cpp/lib/window.cc
diff --git a/components/mus/public/cpp/lib/window.cc b/components/mus/public/cpp/lib/window.cc
index 7f95c6ee22b6882bb426ab9efd33684968c374f8..7b57ddcb3d40aee739848aeb29ad6068788dc8ce 100644
--- a/components/mus/public/cpp/lib/window.cc
+++ b/components/mus/public/cpp/lib/window.cc
@@ -14,6 +14,8 @@
#include "components/mus/public/cpp/window_surface.h"
#include "components/mus/public/cpp/window_tracker.h"
#include "mojo/application/public/cpp/service_provider_impl.h"
+#include "ui/gfx/geometry/rect.h"
+#include "ui/gfx/geometry/size.h"
namespace mus {
@@ -359,6 +361,24 @@ void Window::SetImeVisibility(bool visible, mojo::TextInputStatePtr state) {
}
}
+void Window::SetPreferredSize(const gfx::Size& size) {
+ if (connection_)
+ static_cast<WindowTreeClientImpl*>(connection_)
+ ->SetPreferredSize(id_, size);
+}
+
+void Window::RequestBoundsChange(const gfx::Rect& bounds) {
+ if (connection_)
+ static_cast<WindowTreeClientImpl*>(connection_)
+ ->RequestBoundsChange(id_, bounds);
+}
+
+void Window::SetShowState(mojom::ShowState show_state) {
+ if (connection_)
+ static_cast<WindowTreeClientImpl*>(connection_)
+ ->SetShowState(id_, show_state);
+}
+
void Window::SetFocus() {
if (connection_)
static_cast<WindowTreeClientImpl*>(connection_)->SetFocus(id_);
« no previous file with comments | « components/mus/public/cpp/BUILD.gn ('k') | components/mus/public/cpp/lib/window_tree_client_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698