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/view_manager/public/cpp/view.h" |
6 | 6 |
7 #include <set> | 7 #include <set> |
8 | 8 |
9 #include "mojo/public/cpp/application/service_provider_impl.h" | 9 #include "mojo/public/cpp/application/service_provider_impl.h" |
10 #include "mojo/services/public/cpp/view_manager/lib/view_manager_client_impl.h" | 10 #include "mojo/services/view_manager/public/cpp/lib/view_manager_client_impl.h" |
11 #include "mojo/services/public/cpp/view_manager/lib/view_private.h" | 11 #include "mojo/services/view_manager/public/cpp/lib/view_private.h" |
12 #include "mojo/services/public/cpp/view_manager/view_observer.h" | 12 #include "mojo/services/view_manager/public/cpp/view_observer.h" |
13 #include "mojo/services/public/cpp/view_manager/view_tracker.h" | 13 #include "mojo/services/view_manager/public/cpp/view_tracker.h" |
14 | 14 |
15 namespace mojo { | 15 namespace mojo { |
16 | 16 |
17 namespace { | 17 namespace { |
18 | 18 |
19 void NotifyViewTreeChangeAtReceiver( | 19 void NotifyViewTreeChangeAtReceiver( |
20 View* receiver, | 20 View* receiver, |
21 const ViewObserver::TreeChangeParams& params, | 21 const ViewObserver::TreeChangeParams& params, |
22 bool change_applied) { | 22 bool change_applied) { |
23 ViewObserver::TreeChangeParams local_params = params; | 23 ViewObserver::TreeChangeParams local_params = params; |
(...skipping 524 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
548 void View::NotifyViewVisibilityChangedUp(View* target) { | 548 void View::NotifyViewVisibilityChangedUp(View* target) { |
549 // Start with the parent as we already notified |this| | 549 // Start with the parent as we already notified |this| |
550 // in NotifyViewVisibilityChangedDown. | 550 // in NotifyViewVisibilityChangedDown. |
551 for (View* view = parent(); view; view = view->parent()) { | 551 for (View* view = parent(); view; view = view->parent()) { |
552 bool ret = view->NotifyViewVisibilityChangedAtReceiver(target); | 552 bool ret = view->NotifyViewVisibilityChangedAtReceiver(target); |
553 DCHECK(ret); | 553 DCHECK(ret); |
554 } | 554 } |
555 } | 555 } |
556 | 556 |
557 } // namespace mojo | 557 } // namespace mojo |
OLD | NEW |