OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "mojo/services/public/cpp/view_manager/view.h" | 5 #include "mojo/services/public/cpp/view_manager/view.h" |
6 | 6 |
7 #include "mojo/public/cpp/application/service_provider_impl.h" | 7 #include "mojo/public/cpp/application/service_provider_impl.h" |
8 #include "mojo/services/public/cpp/view_manager/lib/view_manager_client_impl.h" | 8 #include "mojo/services/public/cpp/view_manager/lib/view_manager_client_impl.h" |
9 #include "mojo/services/public/cpp/view_manager/lib/view_private.h" | 9 #include "mojo/services/public/cpp/view_manager/lib/view_private.h" |
10 #include "mojo/services/public/cpp/view_manager/view_observer.h" | 10 #include "mojo/services/public/cpp/view_manager/view_observer.h" |
(...skipping 367 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
378 } | 378 } |
379 | 379 |
380 void View::LocalSetBounds(const gfx::Rect& old_bounds, | 380 void View::LocalSetBounds(const gfx::Rect& old_bounds, |
381 const gfx::Rect& new_bounds) { | 381 const gfx::Rect& new_bounds) { |
382 DCHECK(old_bounds == bounds_); | 382 DCHECK(old_bounds == bounds_); |
383 ScopedSetBoundsNotifier notifier(this, old_bounds, new_bounds); | 383 ScopedSetBoundsNotifier notifier(this, old_bounds, new_bounds); |
384 bounds_ = new_bounds; | 384 bounds_ = new_bounds; |
385 } | 385 } |
386 | 386 |
387 } // namespace mojo | 387 } // namespace mojo |
OLD | NEW |