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

Issue 2785893003: [ios clean] Add placeholder for NTP bookmarks, chrome home and open tabs. (Closed)

Created:
3 years, 8 months ago by justincohen
Modified:
3 years, 8 months ago
CC:
chromium-reviews, marq+scrutinize_chromium.org, ios-reviews+chrome_chromium.org, ios-reviews_chromium.org, tfarina, pkl (ping after 24h if needed), noyau+watch_chromium.org, ios-reviews+clean_chromium.org, marq+watch_chromium.org, lpromero+watch_chromium.org, sdefresne+watch_chromium.org, edchin, sczs
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

[ios clean] Add placeholder for NTP bookmarks, chrome home and open tabs. In preparation for back-porting UIViewControllers in the NTP, add support for loading contentViewControllers inside the clean NTP's scroll view. This also adds stubs for the NTP mediator and consumer, as well as fix some navigation errors when loading and unloading the NTP. BUG= Review-Url: https://codereview.chromium.org/2785893003 Cr-Commit-Position: refs/heads/master@{#462914} Committed: https://chromium.googlesource.com/chromium/src/+/6c0f9edbe4a39bdc26e89254a205ac477ca4b902

Patch Set 1 #

Patch Set 2 : rebase #

Patch Set 3 : Change default URL #

Patch Set 4 : No more data source #

Patch Set 5 : Comments #

Total comments: 61

Patch Set 6 : Address various comments #

Total comments: 104

Patch Set 7 : Address various comments #

Patch Set 8 : Missed a comment #

Patch Set 9 : Rebase #

Total comments: 10

Patch Set 10 : Respond to comments, rebase #

Patch Set 11 : Comment nit #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1008 lines, -154 lines) Patch
M ios/chrome/browser/ui/ntp/new_tab_page_toolbar_controller.mm View 1 chunk +6 lines, -4 lines 0 comments Download
M ios/chrome/browser/ui/ntp/new_tab_page_view.mm View 1 2 3 4 5 6 2 chunks +17 lines, -5 lines 0 comments Download
M ios/chrome/browser/ui/ntp/recent_tabs/recent_tabs_panel_controller.h View 1 2 3 4 1 chunk +4 lines, -0 lines 0 comments Download
M ios/chrome/browser/ui/ntp/recent_tabs/recent_tabs_panel_controller.mm View 1 2 3 4 5 1 chunk +4 lines, -0 lines 0 comments Download
A ios/clean/chrome/browser/ui/bookmarks/BUILD.gn View 1 2 3 4 5 6 7 8 9 1 chunk +32 lines, -0 lines 0 comments Download
A ios/clean/chrome/browser/ui/bookmarks/bookmarks_coordinator.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +17 lines, -0 lines 0 comments Download
A ios/clean/chrome/browser/ui/bookmarks/bookmarks_coordinator.mm View 1 2 3 4 5 6 7 8 9 1 chunk +47 lines, -0 lines 0 comments Download
A ios/clean/chrome/browser/ui/bookmarks/bookmarks_coordinator_unittest.mm View 1 2 3 4 5 6 1 chunk +9 lines, -0 lines 0 comments Download
M ios/clean/chrome/browser/ui/commands/BUILD.gn View 1 2 3 4 5 6 1 chunk +3 lines, -0 lines 0 comments Download
A ios/clean/chrome/browser/ui/commands/ntp_commands.h View 1 2 3 4 5 6 7 8 9 1 chunk +21 lines, -0 lines 0 comments Download
A ios/clean/chrome/browser/ui/commands/tab_commands.h View 1 2 3 4 5 6 1 chunk +16 lines, -0 lines 0 comments Download
M ios/clean/chrome/browser/ui/ntp/BUILD.gn View 1 2 3 4 5 6 7 8 9 2 chunks +43 lines, -4 lines 0 comments Download
M ios/clean/chrome/browser/ui/ntp/new_tab_page_coordinator.h View 1 2 3 4 5 6 1 chunk +0 lines, -16 lines 0 comments Download
D ios/clean/chrome/browser/ui/ntp/new_tab_page_coordinator.mm View 1 2 3 4 5 6 7 8 9 1 chunk +0 lines, -25 lines 0 comments Download
M ios/clean/chrome/browser/ui/ntp/new_tab_page_view_controller.h View 1 2 3 4 5 6 1 chunk +0 lines, -14 lines 0 comments Download
M ios/clean/chrome/browser/ui/ntp/new_tab_page_view_controller.mm View 1 2 3 4 5 6 1 chunk +0 lines, -79 lines 0 comments Download
A ios/clean/chrome/browser/ui/ntp/ntp_consumer.h View 1 2 3 4 5 6 1 chunk +19 lines, -0 lines 0 comments Download
A + ios/clean/chrome/browser/ui/ntp/ntp_coordinator.h View 1 2 3 4 5 6 7 8 9 2 chunks +3 lines, -3 lines 0 comments Download
A ios/clean/chrome/browser/ui/ntp/ntp_coordinator.mm View 1 2 3 4 5 6 7 8 9 1 chunk +103 lines, -0 lines 0 comments Download
A ios/clean/chrome/browser/ui/ntp/ntp_coordinator_unittest.mm View 1 2 3 4 5 6 1 chunk +9 lines, -0 lines 0 comments Download
A ios/clean/chrome/browser/ui/ntp/ntp_home_coordinator.h View 1 2 3 4 5 6 1 chunk +15 lines, -0 lines 0 comments Download
A ios/clean/chrome/browser/ui/ntp/ntp_home_coordinator.mm View 1 2 3 4 5 6 7 8 9 1 chunk +42 lines, -0 lines 0 comments Download
A ios/clean/chrome/browser/ui/ntp/ntp_home_coordinator_unittest.mm View 1 2 3 4 5 6 1 chunk +9 lines, -0 lines 0 comments Download
A ios/clean/chrome/browser/ui/ntp/ntp_home_mediator.h View 1 2 3 4 5 6 1 chunk +24 lines, -0 lines 0 comments Download
A ios/clean/chrome/browser/ui/ntp/ntp_home_mediator.mm View 1 2 3 4 5 6 1 chunk +69 lines, -0 lines 0 comments Download
A ios/clean/chrome/browser/ui/ntp/ntp_home_mediator_unittest.mm View 1 2 3 4 5 6 1 chunk +9 lines, -0 lines 0 comments Download
A ios/clean/chrome/browser/ui/ntp/ntp_mediator.h View 1 2 3 4 5 6 1 chunk +20 lines, -0 lines 0 comments Download
A ios/clean/chrome/browser/ui/ntp/ntp_mediator.mm View 1 2 3 4 5 6 7 8 9 1 chunk +66 lines, -0 lines 0 comments Download
A ios/clean/chrome/browser/ui/ntp/ntp_mediator_unittest.mm View 1 2 3 4 5 6 1 chunk +9 lines, -0 lines 0 comments Download
A ios/clean/chrome/browser/ui/ntp/ntp_view_controller.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +32 lines, -0 lines 0 comments Download
A ios/clean/chrome/browser/ui/ntp/ntp_view_controller.mm View 1 2 3 4 5 6 7 8 9 1 chunk +194 lines, -0 lines 0 comments Download
A ios/clean/chrome/browser/ui/ntp/ntp_view_controller_unittest.mm View 1 2 3 4 5 6 1 chunk +9 lines, -0 lines 0 comments Download
A ios/clean/chrome/browser/ui/recent_tabs/BUILD.gn View 1 2 3 4 5 6 7 8 9 1 chunk +32 lines, -0 lines 0 comments Download
A ios/clean/chrome/browser/ui/recent_tabs/recent_tabs_coordinator.h View 1 2 3 4 5 6 7 8 9 1 chunk +16 lines, -0 lines 0 comments Download
A ios/clean/chrome/browser/ui/recent_tabs/recent_tabs_coordinator.mm View 1 2 3 4 5 6 7 8 9 1 chunk +43 lines, -0 lines 0 comments Download
A ios/clean/chrome/browser/ui/recent_tabs/recent_tabs_coordinator_unittest.mm View 1 2 3 4 5 6 1 chunk +9 lines, -0 lines 0 comments Download
M ios/clean/chrome/browser/ui/tab/BUILD.gn View 1 2 3 4 5 6 7 8 9 1 chunk +4 lines, -0 lines 0 comments Download
M ios/clean/chrome/browser/ui/tab/tab_coordinator.mm View 1 2 3 4 5 6 7 8 9 9 chunks +47 lines, -2 lines 0 comments Download
M ios/clean/chrome/browser/ui/web_contents/BUILD.gn View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -0 lines 0 comments Download
M ios/clean/chrome/browser/ui/web_contents/web_contents_mediator.mm View 1 2 3 4 5 6 7 8 9 2 chunks +2 lines, -2 lines 0 comments Download
M ios/clean/chrome/test/BUILD.gn View 1 2 3 4 5 6 7 8 1 chunk +3 lines, -0 lines 0 comments Download

Messages

Total messages: 51 (38 generated)
marq (ping after 24h)
Adding the usual suspects as reviewers or on CC.
3 years, 8 months ago (2017-04-05 09:46:05 UTC) #16
marq (ping after 24h)
I think it would be better to not include the incognito stuff in this CL. ...
3 years, 8 months ago (2017-04-05 12:22:49 UTC) #17
justincohen
Removed incognito. Not sure what the best approach is if I need to remove device ...
3 years, 8 months ago (2017-04-05 19:28:25 UTC) #18
lpromero
https://codereview.chromium.org/2785893003/diff/80001/ios/clean/chrome/browser/ui/ntp/new_tab_page_coordinator.mm File ios/clean/chrome/browser/ui/ntp/new_tab_page_coordinator.mm (right): https://codereview.chromium.org/2785893003/diff/80001/ios/clean/chrome/browser/ui/ntp/new_tab_page_coordinator.mm#newcode43 ios/clean/chrome/browser/ui/ntp/new_tab_page_coordinator.mm:43: for (BrowserCoordinator* child in self.children) { On 2017/04/05 19:28:24, ...
3 years, 8 months ago (2017-04-06 13:01:06 UTC) #24
rohitrao (ping after 24h)
https://codereview.chromium.org/2785893003/diff/100001/ios/clean/chrome/browser/ui/bookmarks/bookmarks_coordinator.mm File ios/clean/chrome/browser/ui/bookmarks/bookmarks_coordinator.mm (right): https://codereview.chromium.org/2785893003/diff/100001/ios/clean/chrome/browser/ui/bookmarks/bookmarks_coordinator.mm#newcode44 ios/clean/chrome/browser/ui/bookmarks/bookmarks_coordinator.mm:44: self.viewController.view = [self.wrapperViewController view]; Is it ok to assign ...
3 years, 8 months ago (2017-04-06 13:08:13 UTC) #25
marq (ping after 24h)
https://codereview.chromium.org/2785893003/diff/80001/ios/clean/chrome/browser/ui/ntp/new_tab_page_view_controller.mm File ios/clean/chrome/browser/ui/ntp/new_tab_page_view_controller.mm (right): https://codereview.chromium.org/2785893003/diff/80001/ios/clean/chrome/browser/ui/ntp/new_tab_page_view_controller.mm#newcode72 ios/clean/chrome/browser/ui/ntp/new_tab_page_view_controller.mm:72: self.ntpView.tabBar.items = _tabBarItems; On 2017/04/05 19:28:24, justincohen wrote: > ...
3 years, 8 months ago (2017-04-06 14:30:14 UTC) #26
justincohen
ptal https://codereview.chromium.org/2785893003/diff/80001/ios/clean/chrome/browser/ui/ntp/new_tab_page_coordinator.mm File ios/clean/chrome/browser/ui/ntp/new_tab_page_coordinator.mm (right): https://codereview.chromium.org/2785893003/diff/80001/ios/clean/chrome/browser/ui/ntp/new_tab_page_coordinator.mm#newcode43 ios/clean/chrome/browser/ui/ntp/new_tab_page_coordinator.mm:43: for (BrowserCoordinator* child in self.children) { On 2017/04/06 ...
3 years, 8 months ago (2017-04-06 18:25:11 UTC) #27
marq (ping after 24h)
LGTM with mostly nits and one major fix. https://codereview.chromium.org/2785893003/diff/160001/ios/clean/chrome/browser/ui/ntp/ntp_view_controller.h File ios/clean/chrome/browser/ui/ntp/ntp_view_controller.h (right): https://codereview.chromium.org/2785893003/diff/160001/ios/clean/chrome/browser/ui/ntp/ntp_view_controller.h#newcode21 ios/clean/chrome/browser/ui/ntp/ntp_view_controller.h:21: - ...
3 years, 8 months ago (2017-04-07 12:25:01 UTC) #36
justincohen
https://codereview.chromium.org/2785893003/diff/160001/ios/clean/chrome/browser/ui/ntp/ntp_view_controller.h File ios/clean/chrome/browser/ui/ntp/ntp_view_controller.h (right): https://codereview.chromium.org/2785893003/diff/160001/ios/clean/chrome/browser/ui/ntp/ntp_view_controller.h#newcode21 ios/clean/chrome/browser/ui/ntp/ntp_view_controller.h:21: - (void)addHomePanelViewController:(UIViewController*)controller; On 2017/04/07 12:25:01, marq wrote: > No ...
3 years, 8 months ago (2017-04-07 15:27:30 UTC) #37
lpromero
lgtm
3 years, 8 months ago (2017-04-07 15:38:03 UTC) #40
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/2785893003/180001
3 years, 8 months ago (2017-04-07 16:01:52 UTC) #44
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/2785893003/200001
3 years, 8 months ago (2017-04-07 16:04:28 UTC) #48
commit-bot: I haz the power
3 years, 8 months ago (2017-04-07 17:43:02 UTC) #51
Message was sent while issue was closed.
Committed patchset #11 (id:200001) as
https://chromium.googlesource.com/chromium/src/+/6c0f9edbe4a39bdc26e89254a205...

Powered by Google App Engine
This is Rietveld 408576698