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

Unified Diff: components/mus/public/cpp/lib/window_tree_client_impl.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/public/cpp/lib/window_tree_client_impl.h ('k') | components/mus/public/cpp/window.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_tree_client_impl.cc
diff --git a/components/mus/public/cpp/lib/window_tree_client_impl.cc b/components/mus/public/cpp/lib/window_tree_client_impl.cc
index fff7f2d461f5e40d2269d46e99bb7ced35128e38..b869e442b365048c30d20d41c6617f6bc68e48ec 100644
--- a/components/mus/public/cpp/lib/window_tree_client_impl.cc
+++ b/components/mus/public/cpp/lib/window_tree_client_impl.cc
@@ -15,6 +15,7 @@
#include "mojo/application/public/cpp/service_provider_impl.h"
#include "mojo/application/public/interfaces/service_provider.mojom.h"
#include "mojo/converters/geometry/geometry_type_converters.h"
+#include "ui/gfx/geometry/insets.h"
#include "ui/gfx/geometry/size.h"
namespace mus {
@@ -182,9 +183,9 @@ void WindowTreeClientImpl::OnSetBoundsResponse(
}
void WindowTreeClientImpl::SetClientArea(Id window_id,
- const gfx::Rect& client_area) {
+ const gfx::Insets& client_area) {
DCHECK(tree_);
- tree_->SetClientArea(window_id, mojo::Rect::From(client_area));
+ tree_->SetClientArea(window_id, mojo::Insets::From(client_area));
}
void WindowTreeClientImpl::SetFocus(Id window_id) {
@@ -361,12 +362,13 @@ void WindowTreeClientImpl::OnWindowBoundsChanged(Id window_id,
.LocalSetBounds(old_bounds.To<gfx::Rect>(), new_bounds.To<gfx::Rect>());
}
-void WindowTreeClientImpl::OnClientAreaChanged(uint32_t window_id,
- mojo::RectPtr old_client_area,
- mojo::RectPtr new_client_area) {
+void WindowTreeClientImpl::OnClientAreaChanged(
+ uint32_t window_id,
+ mojo::InsetsPtr old_client_area,
+ mojo::InsetsPtr new_client_area) {
Window* window = GetWindowById(window_id);
if (window)
- WindowPrivate(window).LocalSetClientArea(new_client_area.To<gfx::Rect>());
+ WindowPrivate(window).LocalSetClientArea(new_client_area.To<gfx::Insets>());
}
namespace {
« no previous file with comments | « components/mus/public/cpp/lib/window_tree_client_impl.h ('k') | components/mus/public/cpp/window.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698