[ios clean] Add incognito TabGrid

Desktop / Chromium - Gauthier Ambard [chromium.org] - 11 September 2017 12:21 EDT

This CL adds a new TabGrid containing the incognito tabs. It also adds the Incognito coordinator to allow the creation of NTP in incognito.

Bug: 762578 Change-Id: I7cfca54e5e816661cf365dd5f7daa57b90706949 Reviewed-on: https://chromium-review.googlesource.com/655303 Commit-Queue: Gauthier Ambard

f3c1849 [ios clean] Add incognito TabGrid
ios/clean/chrome/browser/ui/commands/BUILD.gn | 1 +
.../chrome/browser/ui/commands/ntp_commands.h | 10 ++--
.../ui/commands/tab_grid_toolbar_commands.h | 21 +++++++
ios/clean/chrome/browser/ui/ntp/BUILD.gn | 3 +
ios/clean/chrome/browser/ui/ntp/ntp_consumer.h | 4 ++
ios/clean/chrome/browser/ui/ntp/ntp_coordinator.mm | 19 +++++-
.../browser/ui/ntp/ntp_incognito_coordinator.h | 14 +++++
.../browser/ui/ntp/ntp_incognito_coordinator.mm | 54 +++++++++++++++++
.../ui/ntp/ntp_incognito_coordinator_unittest.mm | 9 +++
ios/clean/chrome/browser/ui/ntp/ntp_mediator.h | 2 +-
ios/clean/chrome/browser/ui/ntp/ntp_mediator.mm | 37 ++++++++----
.../chrome/browser/ui/ntp/ntp_view_controller.h | 3 +
.../chrome/browser/ui/ntp/ntp_view_controller.mm | 69 +++++++++++++++-------
.../ui/tab_grid/tab_grid_container_coordinator.mm | 46 +++++++++++++--
.../tab_grid/tab_grid_container_view_controller.h | 2 +
.../tab_grid/tab_grid_container_view_controller.mm | 8 +++
.../chrome/browser/ui/tab_grid/tab_grid_toolbar.h | 3 +
.../chrome/browser/ui/tab_grid/tab_grid_toolbar.mm | 29 ++++++++-
18 files changed, 288 insertions(+), 46 deletions(-)

Upstream: git.chromium.org


  • Share