| 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 "view_manager/public/cpp/view.h" | 5 #include "components/view_manager/public/cpp/view.h" |
| 6 | 6 |
| 7 #include <set> | 7 #include <set> |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "mojo/public/cpp/application/service_provider_impl.h" | 10 #include "components/view_manager/public/cpp/lib/view_manager_client_impl.h" |
| 11 #include "view_manager/public/cpp/lib/view_manager_client_impl.h" | 11 #include "components/view_manager/public/cpp/lib/view_private.h" |
| 12 #include "view_manager/public/cpp/lib/view_private.h" | 12 #include "components/view_manager/public/cpp/view_observer.h" |
| 13 #include "view_manager/public/cpp/view_observer.h" | 13 #include "components/view_manager/public/cpp/view_tracker.h" |
| 14 #include "view_manager/public/cpp/view_tracker.h" | 14 #include "third_party/mojo/src/mojo/public/cpp/application/service_provider_impl
.h" |
| 15 | 15 |
| 16 namespace mojo { | 16 namespace mojo { |
| 17 | 17 |
| 18 namespace { | 18 namespace { |
| 19 | 19 |
| 20 void NotifyViewTreeChangeAtReceiver( | 20 void NotifyViewTreeChangeAtReceiver( |
| 21 View* receiver, | 21 View* receiver, |
| 22 const ViewObserver::TreeChangeParams& params, | 22 const ViewObserver::TreeChangeParams& params, |
| 23 bool change_applied) { | 23 bool change_applied) { |
| 24 ViewObserver::TreeChangeParams local_params = params; | 24 ViewObserver::TreeChangeParams local_params = params; |
| (...skipping 555 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 580 void View::NotifyViewVisibilityChangedUp(View* target) { | 580 void View::NotifyViewVisibilityChangedUp(View* target) { |
| 581 // Start with the parent as we already notified |this| | 581 // Start with the parent as we already notified |this| |
| 582 // in NotifyViewVisibilityChangedDown. | 582 // in NotifyViewVisibilityChangedDown. |
| 583 for (View* view = parent(); view; view = view->parent()) { | 583 for (View* view = parent(); view; view = view->parent()) { |
| 584 bool ret = view->NotifyViewVisibilityChangedAtReceiver(target); | 584 bool ret = view->NotifyViewVisibilityChangedAtReceiver(target); |
| 585 DCHECK(ret); | 585 DCHECK(ret); |
| 586 } | 586 } |
| 587 } | 587 } |
| 588 | 588 |
| 589 } // namespace mojo | 589 } // namespace mojo |
| OLD | NEW |