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

Unified Diff: services/ui/test_wm/test_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
Index: services/ui/test_wm/test_wm.cc
diff --git a/services/ui/test_wm/test_wm.cc b/services/ui/test_wm/test_wm.cc
index 2345063fdfe9273f32c157274b5832f8ee4e51e2..cdca7eeeaaa098a6a336e8a79312e1c1fa5d6174 100644
--- a/services/ui/test_wm/test_wm.cc
+++ b/services/ui/test_wm/test_wm.cc
@@ -98,9 +98,8 @@ class TestWM : public service_manager::Service,
void SetWindowManagerClient(aura::WindowManagerClient* client) override {
window_manager_client_ = client;
}
- bool OnWmSetBounds(aura::Window* window, gfx::Rect* bounds) override {
- window->SetBounds(*bounds);
- return true;
+ void OnWmSetBounds(aura::Window* window, const gfx::Rect& bounds) override {
+ window->SetBounds(bounds);
}
bool OnWmSetProperty(
aura::Window* window,
« no previous file with comments | « services/ui/public/interfaces/window_manager.mojom ('k') | services/ui/ws/window_manager_client_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698