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

Unified Diff: mash/simple_wm/simple_wm.cc

Issue 2778823002: Simplify WindowManager::OnWmSetBounds (Closed)
Patch Set: Update expectations for DragTestInteractive.DragTest Created 3 years, 9 months 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 | « mash/simple_wm/simple_wm.h ('k') | services/ui/demo/mus_demo_internal.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mash/simple_wm/simple_wm.cc
diff --git a/mash/simple_wm/simple_wm.cc b/mash/simple_wm/simple_wm.cc
index b8f60c789c0116f214ceb0f4cc8e12f6078e7e2c..1bb1d1bf8d0bc8cf6fccce7875a8099ede3319f0 100644
--- a/mash/simple_wm/simple_wm.cc
+++ b/mash/simple_wm/simple_wm.cc
@@ -411,10 +411,9 @@ void SimpleWM::SetWindowManagerClient(
window_manager_client_ = client;
}
-bool SimpleWM::OnWmSetBounds(aura::Window* window, gfx::Rect* bounds) {
+void SimpleWM::OnWmSetBounds(aura::Window* window, const gfx::Rect& bounds) {
FrameView* frame_view = GetFrameViewForClientWindow(window);
- frame_view->GetWidget()->SetBounds(*bounds);
- return false;
+ frame_view->GetWidget()->SetBounds(bounds);
}
bool SimpleWM::OnWmSetProperty(
« no previous file with comments | « mash/simple_wm/simple_wm.h ('k') | services/ui/demo/mus_demo_internal.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698