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

Unified Diff: components/mus/public/cpp/lib/window.cc

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
« no previous file with comments | « components/mus/example/wm/window_manager_impl.cc ('k') | components/mus/public/cpp/lib/window_private.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/mus/public/cpp/lib/window.cc
diff --git a/components/mus/public/cpp/lib/window.cc b/components/mus/public/cpp/lib/window.cc
index 13f50099a36e13b046b48cc9206934f9974d19d7..a8cd521972cd831a6052982ae002fbdad86d1ec0 100644
--- a/components/mus/public/cpp/lib/window.cc
+++ b/components/mus/public/cpp/lib/window.cc
@@ -214,7 +214,7 @@ void Window::SetBounds(const gfx::Rect& bounds) {
LocalSetBounds(bounds_, bounds);
}
-void Window::SetClientArea(const gfx::Rect& client_area) {
+void Window::SetClientArea(const gfx::Insets& client_area) {
if (!OwnsWindow(connection_, this) && !IsConnectionRoot(this))
return;
@@ -535,13 +535,11 @@ void Window::LocalSetBounds(const gfx::Rect& old_bounds,
// the bounds.
DCHECK(!OwnsWindow(connection_, this) || old_bounds == bounds_);
ScopedSetBoundsNotifier notifier(this, old_bounds, new_bounds);
- if (bounds_.size() != new_bounds.size())
- client_area_ = gfx::Rect(new_bounds.size());
bounds_ = new_bounds;
}
-void Window::LocalSetClientArea(const gfx::Rect& new_client_area) {
- const gfx::Rect old_client_area = client_area_;
+void Window::LocalSetClientArea(const gfx::Insets& new_client_area) {
+ const gfx::Insets old_client_area = client_area_;
client_area_ = new_client_area;
FOR_EACH_OBSERVER(WindowObserver, observers_,
OnWindowClientAreaChanged(this, old_client_area));
« no previous file with comments | « components/mus/example/wm/window_manager_impl.cc ('k') | components/mus/public/cpp/lib/window_private.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698