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

Issue 2904053002: [ios] Active web state observer in tab collection. (Closed)

Created:
3 years, 6 months ago by edchin
Modified:
3 years, 6 months ago
CC:
chromium-reviews, marq+scrutinize_chromium.org, ios-reviews+clean_chromium.org, ios-reviews_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

[ios] Active web state observer Tab collection now listens for updates to the active web state and updates the tab cell. For example, the web state completes navigation and the tab's title is updated. This CL also fixes the cell's selected state, which was previously using a buggy affine transformation on the cell's selected background view. This CL also dismisses the tab and displays the tab grid when the last tab is closed in the tab strip. BUG=686770 Review-Url: https://codereview.chromium.org/2904053002 Cr-Commit-Position: refs/heads/master@{#476770} Committed: https://chromium.googlesource.com/chromium/src/+/daec770ed8e9a12165629a75e2a30d192ea6865c

Patch Set 1 #

Total comments: 9

Patch Set 2 : Address comments. #

Total comments: 18

Patch Set 3 : Address comments. #

Total comments: 6

Patch Set 4 : Address optional comments. #

Patch Set 5 : Update unittest #

Messages

Total messages: 48 (36 generated)
edchin
3 years, 6 months ago (2017-05-25 16:59:19 UTC) #6
rohitrao (ping after 24h)
In the CL description, the changes here close the entire TabCoordinator's view when closing the ...
3 years, 6 months ago (2017-05-26 12:44:01 UTC) #18
sczs
https://codereview.chromium.org/2904053002/diff/60001/ios/clean/chrome/browser/ui/tab_collection/tab_collection_mediator.mm File ios/clean/chrome/browser/ui/tab_collection/tab_collection_mediator.mm (right): https://codereview.chromium.org/2904053002/diff/60001/ios/clean/chrome/browser/ui/tab_collection/tab_collection_mediator.mm#newcode20 ios/clean/chrome/browser/ui/tab_collection/tab_collection_mediator.mm:20: @interface TabCollectionMediator ()<CRWWebStateObserver> Could we also move the WebstateListObserverving ...
3 years, 6 months ago (2017-05-26 16:12:52 UTC) #19
edchin
I also updated the issue description to address Rohit's comment. https://codereview.chromium.org/2904053002/diff/60001/ios/clean/chrome/browser/ui/tab_collection/tab_collection_mediator.mm File ios/clean/chrome/browser/ui/tab_collection/tab_collection_mediator.mm (right): https://codereview.chromium.org/2904053002/diff/60001/ios/clean/chrome/browser/ui/tab_collection/tab_collection_mediator.mm#newcode20 ...
3 years, 6 months ago (2017-05-26 18:09:00 UTC) #21
edchin
PTAL. The consumer protocol was updated so that the selectedIndex is always pushed along with ...
3 years, 6 months ago (2017-05-27 18:47:26 UTC) #24
sczs
Thanks Ed! lgtm Rohit should be able to comment on the FIP issue. https://codereview.chromium.org/2904053002/diff/60001/ios/clean/chrome/browser/ui/tab_collection/tab_collection_mediator.mm File ...
3 years, 6 months ago (2017-05-30 02:32:02 UTC) #25
marq (ping after 24h)
https://codereview.chromium.org/2904053002/diff/120001/ios/clean/chrome/browser/ui/tab_collection/tab_collection_consumer.h File ios/clean/chrome/browser/ui/tab_collection/tab_collection_consumer.h (right): https://codereview.chromium.org/2904053002/diff/120001/ios/clean/chrome/browser/ui/tab_collection/tab_collection_consumer.h#newcode13 ios/clean/chrome/browser/ui/tab_collection/tab_collection_consumer.h:13: // Inserts |item| into tab collection at |index|. Here ...
3 years, 6 months ago (2017-05-30 11:09:44 UTC) #27
edchin
PTAL. https://codereview.chromium.org/2904053002/diff/120001/ios/clean/chrome/browser/ui/tab_collection/tab_collection_consumer.h File ios/clean/chrome/browser/ui/tab_collection/tab_collection_consumer.h (right): https://codereview.chromium.org/2904053002/diff/120001/ios/clean/chrome/browser/ui/tab_collection/tab_collection_consumer.h#newcode13 ios/clean/chrome/browser/ui/tab_collection/tab_collection_consumer.h:13: // Inserts |item| into tab collection at |index|. ...
3 years, 6 months ago (2017-06-01 23:52:29 UTC) #32
marq (ping after 24h)
LGTM, all comments are optional. https://codereview.chromium.org/2904053002/diff/220001/ios/clean/chrome/browser/ui/tab_collection/tab_collection_mediator.mm File ios/clean/chrome/browser/ui/tab_collection/tab_collection_mediator.mm (right): https://codereview.chromium.org/2904053002/diff/220001/ios/clean/chrome/browser/ui/tab_collection/tab_collection_mediator.mm#newcode159 ios/clean/chrome/browser/ui/tab_collection/tab_collection_mediator.mm:159: [items Optional: The line ...
3 years, 6 months ago (2017-06-02 11:31:00 UTC) #33
edchin
Will make optional changes and land this CL. https://codereview.chromium.org/2904053002/diff/220001/ios/clean/chrome/browser/ui/tab_collection/tab_collection_mediator.mm File ios/clean/chrome/browser/ui/tab_collection/tab_collection_mediator.mm (right): https://codereview.chromium.org/2904053002/diff/220001/ios/clean/chrome/browser/ui/tab_collection/tab_collection_mediator.mm#newcode159 ios/clean/chrome/browser/ui/tab_collection/tab_collection_mediator.mm:159: [items ...
3 years, 6 months ago (2017-06-02 17:24:59 UTC) #34
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/2904053002/260001
3 years, 6 months ago (2017-06-02 20:10:29 UTC) #45
commit-bot: I haz the power
3 years, 6 months ago (2017-06-02 20:15:45 UTC) #48
Message was sent while issue was closed.
Committed patchset #5 (id:260001) as
https://chromium.googlesource.com/chromium/src/+/daec770ed8e9a12165629a75e2a3...

Powered by Google App Engine
This is Rietveld 408576698