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

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

Issue 1419793006: Makes windowmanager draw non-client area (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: move wm nonclientframeview to wm Created 5 years, 1 month 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 eb7b14631641d6400b34da5f2d2d004e59d56427..86ab73f48af38be2ad6ae0693327d83b16885e1c 100644
--- a/components/mus/public/cpp/window.h
+++ b/components/mus/public/cpp/window.h
@@ -17,6 +17,7 @@
#include "mojo/application/public/interfaces/service_provider.mojom.h"
#include "third_party/mojo/src/mojo/public/cpp/bindings/array.h"
#include "third_party/mojo/src/mojo/public/cpp/system/macros.h"
+#include "ui/gfx/geometry/insets.h"
#include "ui/gfx/geometry/rect.h"
namespace gfx {
@@ -63,8 +64,8 @@ class Window {
const gfx::Rect& bounds() const { return bounds_; }
void SetBounds(const gfx::Rect& bounds);
- const gfx::Rect& client_area() const { return client_area_; }
- void SetClientArea(const gfx::Rect& client_area);
+ const gfx::Insets& client_area() const { return client_area_; }
+ void SetClientArea(const gfx::Insets& new_client_area);
// Visibility (also see IsDrawn()). When created windows are hidden.
bool visible() const { return visible_; }
@@ -200,7 +201,7 @@ class Window {
// Returns true if the order actually changed.
bool LocalReorder(Window* relative, mojom::OrderDirection direction);
void LocalSetBounds(const gfx::Rect& old_bounds, const gfx::Rect& new_bounds);
- void LocalSetClientArea(const gfx::Rect& new_client_area);
+ void LocalSetClientArea(const gfx::Insets& new_client_area);
void LocalSetViewportMetrics(const mojom::ViewportMetrics& old_metrics,
const mojom::ViewportMetrics& new_metrics);
void LocalSetDrawn(bool drawn);
@@ -232,7 +233,7 @@ class Window {
base::ObserverList<WindowObserver> observers_;
gfx::Rect bounds_;
- gfx::Rect client_area_;
+ gfx::Insets client_area_;
mojom::ViewportMetricsPtr viewport_metrics_;

Powered by Google App Engine
This is Rietveld 408576698