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

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: add include 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 1e4f1d6524019b83a2e6ab89050cbd93f2af3b4d..f3e39e8a406a9d88649a04a47f96200dc7762701 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_; }
@@ -199,7 +200,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);
@@ -231,7 +232,7 @@ class Window {
base::ObserverList<WindowObserver> observers_;
gfx::Rect bounds_;
- gfx::Rect client_area_;
+ gfx::Insets client_area_;
mojom::ViewportMetricsPtr viewport_metrics_;
« no previous file with comments | « components/mus/public/cpp/lib/window_tree_client_impl.cc ('k') | components/mus/public/cpp/window_observer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698