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

Unified Diff: components/mus/example/wm/move_loop_unittest.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/move_loop.cc ('k') | components/mus/example/wm/non_client_frame_controller.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/mus/example/wm/move_loop_unittest.cc
diff --git a/components/mus/example/wm/move_loop_unittest.cc b/components/mus/example/wm/move_loop_unittest.cc
index 175e6cf800a6ff40beda0d895f5ad0265e26f163..13229a48bf3bf127f254e9cc618162df674527ba 100644
--- a/components/mus/example/wm/move_loop_unittest.cc
+++ b/components/mus/example/wm/move_loop_unittest.cc
@@ -22,10 +22,9 @@ void SetClientArea(mus::Window* window) {
if (window->bounds().IsEmpty())
window->SetBounds(gfx::Rect(100, 200, 300, 400));
- gfx::Rect client_area(window->bounds().size());
- client_area.Inset(MoveLoop::kResizeSize, MoveLoop::kResizeSize + 10,
- MoveLoop::kResizeSize, MoveLoop::kResizeSize);
- window->SetClientArea(client_area);
+ window->SetClientArea(
+ gfx::Insets(MoveLoop::kResizeSize + 10, MoveLoop::kResizeSize,
+ MoveLoop::kResizeSize, MoveLoop::kResizeSize));
}
mus::mojom::EventPtr CreatePointerDownEvent(const gfx::Point& location) {
« no previous file with comments | « components/mus/example/wm/move_loop.cc ('k') | components/mus/example/wm/non_client_frame_controller.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698