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

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

Issue 1639563003: Renames WindowManagerConfig to FrameDecorationValues and moves to Display (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: comments Created 4 years, 11 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_manager_delegate.h
diff --git a/components/mus/public/cpp/window_manager_delegate.h b/components/mus/public/cpp/window_manager_delegate.h
index d27729e7e4898ff703dacfc683c08dcce002fb1f..9fe860f20b19a6843fb44ed3ddf94f8389f95eec 100644
--- a/components/mus/public/cpp/window_manager_delegate.h
+++ b/components/mus/public/cpp/window_manager_delegate.h
@@ -11,6 +11,7 @@
#include <vector>
#include "base/memory/scoped_ptr.h"
+#include "components/mus/public/interfaces/window_manager_constants.mojom.h"
namespace gfx {
class Rect;
@@ -20,11 +21,24 @@ namespace mus {
class Window;
+class WindowManagerClient {
+ public:
+ virtual void SetFrameDecorationValues(
+ mojom::FrameDecorationValuesPtr values) = 0;
+
+ protected:
+ virtual ~WindowManagerClient() {}
+};
+
// Used by clients implementing a window manager.
// TODO(sky): this should be called WindowManager, but that's rather confusing
// currently.
class WindowManagerDelegate {
public:
+ // Called once to give the delegate access to functions only exposed to
+ // the WindowManager.
+ virtual void SetWindowManagerClient(WindowManagerClient* client) = 0;
+
// A client requested the bounds of |window| to change to |bounds|. Return
// true if the bounds are allowed to change. A return value of false
// indicates the change is not allowed.

Powered by Google App Engine
This is Rietveld 408576698