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

Unified Diff: components/mus/public/cpp/window.h

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
Index: components/mus/public/cpp/window.h
diff --git a/components/mus/public/cpp/window.h b/components/mus/public/cpp/window.h
index 885caf87eaadfe4ec4c4c71e8c7899941e1e4c96..2ed283e3453b07ebc04df83b3739ff64fc5efbd4 100644
--- a/components/mus/public/cpp/window.h
+++ b/components/mus/public/cpp/window.h
@@ -19,6 +19,11 @@
#include "third_party/mojo/src/mojo/public/cpp/system/macros.h"
#include "ui/mojo/geometry/geometry.mojom.h"
+namespace gfx {
+class Rect;
+class Size;
+}
+
namespace mus {
class ServiceProviderImpl;
@@ -147,6 +152,12 @@ class Window {
void SetTextInputState(mojo::TextInputStatePtr state);
void SetImeVisibility(bool visible, mojo::TextInputStatePtr state);
+ // The following make their way to the WindowManager. See
+ // window_manager.mojom for details.
+ void SetPreferredSize(const gfx::Size& size);
+ void RequestBoundsChange(const gfx::Rect& bounds);
+ void SetShowState(mojom::ShowState show_state);
+
// Focus.
void SetFocus();
bool HasFocus() const;
« no previous file with comments | « components/mus/public/cpp/tests/window_server_test_base.cc ('k') | components/mus/public/cpp/window_tree_host_factory.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698