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

Issue 2599313002: Create headerHeightForTab in TabHeadersDelegate. (Closed)

Created:
3 years, 12 months ago by Olivier
Modified:
3 years, 11 months ago
CC:
chromium-reviews, pkl (ping after 24h if needed), sdefresne+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Create headerHeightForTab in TabHeadersDelegate. When creating a tab in foreground, the TabModel loads it before marking it active to avoid visual blinking. But loading require getting the header height of the new tab and not of the current tab. BUG=676153 Review-Url: https://codereview.chromium.org/2599313002 Cr-Commit-Position: refs/heads/master@{#443276} Committed: https://chromium.googlesource.com/chromium/src/+/9ce77b8cd12074b1c0b320d1af306b4853d5f3b3

Patch Set 1 #

Patch Set 2 : only fullscreencontroller and sideswipecontroller #

Total comments: 2

Patch Set 3 : Create TabHeadersDelegate #

Patch Set 4 : cleanup #

Total comments: 6

Patch Set 5 : feedback #

Patch Set 6 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+34 lines, -6 lines) Patch
M ios/chrome/browser/snapshots/web_controller_snapshot_helper.mm View 1 2 2 chunks +2 lines, -2 lines 0 comments Download
M ios/chrome/browser/tabs/BUILD.gn View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M ios/chrome/browser/tabs/tab.h View 1 2 2 chunks +2 lines, -0 lines 0 comments Download
M ios/chrome/browser/tabs/tab.mm View 1 2 3 4 5 5 chunks +7 lines, -2 lines 0 comments Download
A ios/chrome/browser/tabs/tab_headers_delegate.h View 1 2 1 chunk +19 lines, -0 lines 0 comments Download
M ios/chrome/browser/ui/browser_view_controller.mm View 1 2 3 4 4 chunks +3 lines, -2 lines 0 comments Download

Messages

Total messages: 30 (15 generated)
Olivier
3 years, 12 months ago (2016-12-23 15:00:55 UTC) #2
Olivier
Ping
3 years, 11 months ago (2016-12-30 08:47:27 UTC) #3
Olivier
PTAL
3 years, 11 months ago (2017-01-03 13:19:46 UTC) #4
rohitrao (ping after 24h)
My worry is that fundamentally changing the meaning of |currentTab| is likely to break something ...
3 years, 11 months ago (2017-01-03 13:55:04 UTC) #5
Olivier
On 2017/01/03 13:55:04, rohitrao wrote: > My worry is that fundamentally changing the meaning of ...
3 years, 11 months ago (2017-01-03 17:57:05 UTC) #6
Olivier
+rohitrao for BVC, +noyau for FSController, +justincohen for SSController.
3 years, 11 months ago (2017-01-09 10:45:50 UTC) #13
noyau (Ping after 24h)
FSController not lgtm. It should not know anything about Tab. https://codereview.chromium.org/2599313002/diff/20001/ios/chrome/browser/ui/fullscreen_controller.h File ios/chrome/browser/ui/fullscreen_controller.h (right): https://codereview.chromium.org/2599313002/diff/20001/ios/chrome/browser/ui/fullscreen_controller.h#newcode61 ...
3 years, 11 months ago (2017-01-09 15:09:31 UTC) #14
Olivier
https://codereview.chromium.org/2599313002/diff/20001/ios/chrome/browser/ui/fullscreen_controller.h File ios/chrome/browser/ui/fullscreen_controller.h (right): https://codereview.chromium.org/2599313002/diff/20001/ios/chrome/browser/ui/fullscreen_controller.h#newcode61 ios/chrome/browser/ui/fullscreen_controller.h:61: - (CGFloat)headerHeightForTab:(Tab*)tab; On 2017/01/09 15:09:31, noyau wrote: > This ...
3 years, 11 months ago (2017-01-09 17:23:18 UTC) #16
noyau (Ping after 24h)
My lgtm is no longer needed. This comment is just here to cancel the red ...
3 years, 11 months ago (2017-01-10 13:10:54 UTC) #17
rohitrao (ping after 24h)
lgtm https://codereview.chromium.org/2599313002/diff/60001/ios/chrome/browser/ui/browser_view_controller.mm File ios/chrome/browser/ui/browser_view_controller.mm (left): https://codereview.chromium.org/2599313002/diff/60001/ios/chrome/browser/ui/browser_view_controller.mm#oldcode739 ios/chrome/browser/ui/browser_view_controller.mm:739: - (CGFloat)headerHeightForTab:(Tab*)tab; This can be removed from the ...
3 years, 11 months ago (2017-01-10 17:15:25 UTC) #18
Olivier
https://codereview.chromium.org/2599313002/diff/60001/ios/chrome/browser/tabs/tab.mm File ios/chrome/browser/tabs/tab.mm (right): https://codereview.chromium.org/2599313002/diff/60001/ios/chrome/browser/tabs/tab.mm#newcode2206 ios/chrome/browser/tabs/tab.mm:2206: return [tabHeadersDelegate_ headerHeightForTab:self]; On 2017/01/10 13:10:54, noyau wrote: > ...
3 years, 11 months ago (2017-01-10 18:27:09 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2599313002/80001
3 years, 11 months ago (2017-01-12 13:32:58 UTC) #22
commit-bot: I haz the power
Failed to apply patch for ios/chrome/browser/tabs/BUILD.gn: While running git apply --index -p1; error: patch failed: ...
3 years, 11 months ago (2017-01-12 14:22:24 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2599313002/100001
3 years, 11 months ago (2017-01-12 16:17:47 UTC) #27
commit-bot: I haz the power
3 years, 11 months ago (2017-01-12 17:30:42 UTC) #30
Message was sent while issue was closed.
Committed patchset #6 (id:100001) as
https://chromium.googlesource.com/chromium/src/+/9ce77b8cd12074b1c0b320d1af30...

Powered by Google App Engine
This is Rietveld 408576698