| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 #import "ios/web/web_state/ui/crw_web_controller_container_view.h" | 5 #import "ios/web/web_state/ui/crw_web_controller_container_view.h" |
| 6 | 6 |
| 7 #import "base/ios/weak_nsobject.h" | 7 #import "base/ios/weak_nsobject.h" |
| 8 #include "base/logging.h" | 8 #include "base/logging.h" |
| 9 #import "base/mac/scoped_nsobject.h" | 9 #import "base/mac/scoped_nsobject.h" |
| 10 #import "ios/web/public/web_state/ui/crw_content_view.h" | 10 #import "ios/web/public/web_state/ui/crw_content_view.h" |
| 11 #import "ios/web/public/web_state/ui/crw_native_content.h" | 11 #import "ios/web/public/web_state/ui/crw_native_content.h" |
| 12 #import "ios/web/public/web_state/ui/crw_web_view_content_view.h" | 12 #import "ios/web/public/web_state/ui/crw_web_view_content_view.h" |
| 13 #import "ios/web/web_state/crw_web_view_proxy_impl.h" | 13 #import "ios/web/web_state/ui/crw_web_view_proxy_impl.h" |
| 14 | 14 |
| 15 #pragma mark - CRWToolbarContainerView | 15 #pragma mark - CRWToolbarContainerView |
| 16 | 16 |
| 17 // Class that manages the display of toolbars. | 17 // Class that manages the display of toolbars. |
| 18 @interface CRWToolbarContainerView : UIView { | 18 @interface CRWToolbarContainerView : UIView { |
| 19 // Backing object for |self.toolbars|. | 19 // Backing object for |self.toolbars|. |
| 20 base::scoped_nsobject<NSMutableArray> _toolbars; | 20 base::scoped_nsobject<NSMutableArray> _toolbars; |
| 21 } | 21 } |
| 22 | 22 |
| 23 // The toolbars currently managed by this view. | 23 // The toolbars currently managed by this view. |
| (...skipping 314 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 338 else | 338 else |
| 339 self.toolbarContainerView = nil; | 339 self.toolbarContainerView = nil; |
| 340 } | 340 } |
| 341 | 341 |
| 342 - (void)removeAllToolbars { | 342 - (void)removeAllToolbars { |
| 343 // Resetting the property will remove the toolbars from the hierarchy. | 343 // Resetting the property will remove the toolbars from the hierarchy. |
| 344 self.toolbarContainerView = nil; | 344 self.toolbarContainerView = nil; |
| 345 } | 345 } |
| 346 | 346 |
| 347 @end | 347 @end |
| OLD | NEW |