Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(77)

Unified Diff: ios/chrome/browser/snapshots/web_controller_snapshot_helper.mm

Issue 2599313002: Create headerHeightForTab in TabHeadersDelegate. (Closed)
Patch Set: rebase Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | ios/chrome/browser/tabs/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/chrome/browser/snapshots/web_controller_snapshot_helper.mm
diff --git a/ios/chrome/browser/snapshots/web_controller_snapshot_helper.mm b/ios/chrome/browser/snapshots/web_controller_snapshot_helper.mm
index 8ff35086c3e364196d02300c1fc2810be77f88cb..5008cac72f1fb39c20d52431ea95bbeafb414e7e 100644
--- a/ios/chrome/browser/snapshots/web_controller_snapshot_helper.mm
+++ b/ios/chrome/browser/snapshots/web_controller_snapshot_helper.mm
@@ -8,7 +8,7 @@
#import "base/mac/scoped_nsobject.h"
#import "ios/chrome/browser/snapshots/snapshot_manager.h"
#import "ios/chrome/browser/tabs/tab.h"
-#import "ios/chrome/browser/ui/fullscreen_controller.h"
+#import "ios/chrome/browser/tabs/tab_headers_delegate.h"
#import "ios/chrome/browser/ui/uikit_ui_util.h"
#import "ios/web/web_state/ui/crw_web_controller.h"
@@ -196,7 +196,7 @@
} else {
// Crops the bottom of the fullscreen snapshot.
CGRect cropRect =
- CGRectMake(0, [[_tab fullScreenControllerDelegate] headerHeight],
+ CGRectMake(0, [[_tab tabHeadersDelegate] headerHeightForTab:_tab],
[snapshot size].width, [snapshot size].height);
snapshotToCache = CropImage(snapshot, cropRect);
}
« no previous file with comments | « no previous file | ios/chrome/browser/tabs/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698