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

Unified Diff: components/mus/public/cpp/lib/window_tree_client_impl.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/lib/window_tree_client_impl.h
diff --git a/components/mus/public/cpp/lib/window_tree_client_impl.h b/components/mus/public/cpp/lib/window_tree_client_impl.h
index 38a8c413eacc9ab7d60ee6f91d017a9b1af59382..780c4bec897728942391e50f9ad8c07b914f1831 100644
--- a/components/mus/public/cpp/lib/window_tree_client_impl.h
+++ b/components/mus/public/cpp/lib/window_tree_client_impl.h
@@ -12,6 +12,7 @@
#include "third_party/mojo/src/mojo/public/cpp/bindings/strong_binding.h"
namespace gfx {
+class Insets;
class Size;
}
@@ -52,7 +53,7 @@ class WindowTreeClientImpl : public WindowTreeConnection,
bool OwnsWindow(Id id) const;
void SetBounds(Id window_id, const gfx::Rect& bounds);
- void SetClientArea(Id window_id, const gfx::Rect& client_area);
+ void SetClientArea(Id window_id, const gfx::Insets& client_area);
void SetFocus(Id window_id);
void SetVisible(Id window_id, bool visible);
void SetProperty(Id window_id,
@@ -119,8 +120,8 @@ class WindowTreeClientImpl : public WindowTreeConnection,
mojo::RectPtr old_bounds,
mojo::RectPtr new_bounds) override;
void OnClientAreaChanged(uint32_t window_id,
- mojo::RectPtr old_client_area,
- mojo::RectPtr new_client_area) override;
+ mojo::InsetsPtr old_client_area,
+ mojo::InsetsPtr new_client_area) override;
void OnWindowViewportMetricsChanged(
mojom::ViewportMetricsPtr old_metrics,
mojom::ViewportMetricsPtr new_metrics) override;

Powered by Google App Engine
This is Rietveld 408576698