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

Issue 2761343002: [ios] Adds LocationBarCoordinator. (Closed)

Created:
3 years, 9 months ago by rohitrao (ping after 24h)
Modified:
3 years, 8 months ago
CC:
chromium-reviews, marq+scrutinize_chromium.org, jdonnelly+watch_chromium.org, ios-reviews_chromium.org, ios-reviews+clean_chromium.org, lpromero+watch_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

[ios] Adds LocationBarCoordinator. This CL adds the basics of an omnibox to the clean skeleton app. The toolbar now contains a real OmniboxTextFieldIOS with its associated machinery (OmniboxViewIOS and LocationBarController). The URL in the omnibox is kept up to date during navigation and across tab switches. Typing in the omnibox and pressing Go will also navigate to the default match. The omnibox popup is not yet implemented, and neither are the animations when the omnibox gains or loses focus. BUG=708341 Review-Url: https://codereview.chromium.org/2761343002 Cr-Commit-Position: refs/heads/master@{#462119} Committed: https://chromium.googlesource.com/chromium/src/+/74849bc2fdb3ebde47584620b9a1c8da0c72bcd0

Patch Set 1 #

Patch Set 2 : Checkpoint. #

Patch Set 3 : Hacks #

Patch Set 4 : Rebased. #

Patch Set 5 : Hacks #

Patch Set 6 : Hacks #

Patch Set 7 : WebStateObserver. #

Patch Set 8 : Rebased. #

Patch Set 9 : Ready for review. #

Patch Set 10 : Rebased. #

Total comments: 23

Patch Set 11 : Review #

Total comments: 2

Patch Set 12 : Remove loadView. #

Patch Set 13 : Rebased. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+521 lines, -15 lines) Patch
M ios/chrome/browser/ui/omnibox/omnibox_view_ios.mm View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download
A ios/clean/chrome/browser/ui/omnibox/BUILD.gn View 1 2 3 4 5 6 7 8 1 chunk +52 lines, -0 lines 0 comments Download
A ios/clean/chrome/browser/ui/omnibox/location_bar_coordinator.h View 1 2 3 4 5 6 7 8 1 chunk +16 lines, -0 lines 0 comments Download
A ios/clean/chrome/browser/ui/omnibox/location_bar_coordinator.mm View 1 2 3 4 5 6 7 8 9 10 1 chunk +55 lines, -0 lines 0 comments Download
A ios/clean/chrome/browser/ui/omnibox/location_bar_coordinator_unittest.mm View 1 chunk +9 lines, -0 lines 0 comments Download
A ios/clean/chrome/browser/ui/omnibox/location_bar_mediator.h View 1 2 3 4 5 6 7 8 1 chunk +37 lines, -0 lines 0 comments Download
A ios/clean/chrome/browser/ui/omnibox/location_bar_mediator.mm View 1 2 3 4 5 6 7 8 9 10 1 chunk +191 lines, -0 lines 0 comments Download
A ios/clean/chrome/browser/ui/omnibox/location_bar_mediator_unittest.mm View 1 chunk +9 lines, -0 lines 0 comments Download
A ios/clean/chrome/browser/ui/omnibox/location_bar_view_controller.h View 1 2 3 4 5 6 7 8 1 chunk +20 lines, -0 lines 0 comments Download
A ios/clean/chrome/browser/ui/omnibox/location_bar_view_controller.mm View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +41 lines, -0 lines 0 comments Download
M ios/clean/chrome/browser/ui/toolbar/BUILD.gn View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M ios/clean/chrome/browser/ui/toolbar/toolbar_coordinator.mm View 1 2 3 4 5 6 7 8 9 10 4 chunks +16 lines, -0 lines 0 comments Download
M ios/clean/chrome/browser/ui/toolbar/toolbar_view_controller.h View 1 2 3 4 5 6 7 8 9 1 chunk +3 lines, -0 lines 0 comments Download
M ios/clean/chrome/browser/ui/toolbar/toolbar_view_controller.mm View 1 2 3 4 5 6 7 8 9 6 chunks +55 lines, -12 lines 0 comments Download
M ios/clean/chrome/test/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +1 line, -0 lines 0 comments Download
M ios/shared/chrome/browser/ui/browser_list/BUILD.gn View 1 2 3 4 5 1 chunk +2 lines, -0 lines 0 comments Download
M ios/shared/chrome/browser/ui/browser_list/browser_web_state_list_delegate.mm View 1 2 3 4 5 2 chunks +6 lines, -1 line 0 comments Download
M ios/shared/chrome/browser/ui/omnibox/BUILD.gn View 1 2 3 4 5 6 7 8 1 chunk +1 line, -0 lines 0 comments Download
M ios/shared/chrome/browser/ui/omnibox/location_bar_delegate.h View 1 2 3 4 5 6 7 8 1 chunk +5 lines, -2 lines 0 comments Download

Messages

Total messages: 30 (19 generated)
rohitrao (ping after 24h)
First attempt at adding the omnibox, ready for a real review. I don't yet have ...
3 years, 8 months ago (2017-04-05 00:33:58 UTC) #7
marq (ping after 24h)
I think there's plenty to discuss here. If this CL constitutes "hacking in" the location ...
3 years, 8 months ago (2017-04-05 09:07:19 UTC) #12
rohitrao (ping after 24h)
This is not intended to be a hack. I can potentially break LocationBarControllerImpl up into ...
3 years, 8 months ago (2017-04-05 11:40:22 UTC) #13
rohitrao (ping after 24h)
https://codereview.chromium.org/2761343002/diff/180001/ios/chrome/browser/ui/omnibox/omnibox_view_ios.mm File ios/chrome/browser/ui/omnibox/omnibox_view_ios.mm (right): https://codereview.chromium.org/2761343002/diff/180001/ios/chrome/browser/ui/omnibox/omnibox_view_ios.mm#newcode169 ios/chrome/browser/ui/omnibox/omnibox_view_ios.mm:169: OmniboxViewIOS::OmniboxViewIOS(OmniboxTextFieldIOS* field, Mark and I chatted in person about ...
3 years, 8 months ago (2017-04-05 13:36:14 UTC) #14
rohitrao (ping after 24h)
Addressed review comments. Larger changes (including the consumer/datasource protocols) will come in a future CL. ...
3 years, 8 months ago (2017-04-05 14:37:05 UTC) #17
marq (ping after 24h)
LGTM! https://codereview.chromium.org/2761343002/diff/180001/ios/clean/chrome/browser/ui/omnibox/location_bar_view_controller.mm File ios/clean/chrome/browser/ui/omnibox/location_bar_view_controller.mm (right): https://codereview.chromium.org/2761343002/diff/180001/ios/clean/chrome/browser/ui/omnibox/location_bar_view_controller.mm#newcode26 ios/clean/chrome/browser/ui/omnibox/location_bar_view_controller.mm:26: self.omnibox = On 2017/04/05 14:37:05, rohitrao wrote: > ...
3 years, 8 months ago (2017-04-05 14:59:11 UTC) #18
rohitrao (ping after 24h)
https://codereview.chromium.org/2761343002/diff/200001/ios/clean/chrome/browser/ui/omnibox/location_bar_view_controller.mm File ios/clean/chrome/browser/ui/omnibox/location_bar_view_controller.mm (right): https://codereview.chromium.org/2761343002/diff/200001/ios/clean/chrome/browser/ui/omnibox/location_bar_view_controller.mm#newcode35 ios/clean/chrome/browser/ui/omnibox/location_bar_view_controller.mm:35: self.view = [[UIView alloc] initWithFrame:CGRectZero]; On 2017/04/05 14:59:11, marq ...
3 years, 8 months ago (2017-04-05 15:17: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/2761343002/220001
3 years, 8 months ago (2017-04-05 15:18:20 UTC) #22
commit-bot: I haz the power
Try jobs failed on following builders: ios-device on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-device/builds/184447) ios-device-xcode-clang on master.tryserver.chromium.mac (JOB_FAILED, ...
3 years, 8 months ago (2017-04-05 15:21:50 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/2761343002/240001
3 years, 8 months ago (2017-04-05 15:33:22 UTC) #27
commit-bot: I haz the power
3 years, 8 months ago (2017-04-05 16:58:01 UTC) #30
Message was sent while issue was closed.
Committed patchset #13 (id:240001) as
https://chromium.googlesource.com/chromium/src/+/74849bc2fdb3ebde47584620b9a1...

Powered by Google App Engine
This is Rietveld 408576698