commit | 04ddb5197390dc133e72c031a16ad04e8339a15d | [log] [tgz] |
---|---|---|
author | Gauthier Ambard <[email protected]> | Tue Nov 07 09:14:16 2017 |
committer | Commit Bot <[email protected]> | Tue Nov 07 09:14:16 2017 |
tree | 92c1fdf05ce723314382b55efaf8e314320b1067 | |
parent | 72c26c752d3a837b1f3d332ace04ab0d9429146a [diff] [blame] |
Remove direct use of Toolbar in TabSwitcher This CL removes the direct use of the Toolbar using the relinquish/reparent methods. Instead it uses the frame of the toolbar. Bug: 778226 Cq-Include-Trybots: master.tryserver.chromium.mac:ios-simulator-cronet Change-Id: I016da12e4550d348c3d39f573629180e0b12d8ce Reviewed-on: https://chromium-review.googlesource.com/753348 Reviewed-by: Mark Cogan <[email protected]> Commit-Queue: Gauthier Ambard <[email protected]> Cr-Commit-Position: refs/heads/master@{#514423}
diff --git a/ios/chrome/browser/ui/browser_view_controller.mm b/ios/chrome/browser/ui/browser_view_controller.mm index fc3d5b2..4f975bc 100644 --- a/ios/chrome/browser/ui/browser_view_controller.mm +++ b/ios/chrome/browser/ui/browser_view_controller.mm
@@ -4802,6 +4802,10 @@ } } +- (CGRect)toolbarFrame { + return [_toolbarCoordinator view].frame; +} + - (id<ToolbarSnapshotProviding>)toolbarSnapshotProvider { id<ToolbarSnapshotProviding> toolbarSnapshotProvider = nil; if ([_toolbarCoordinator view].hidden) {