|
Move the notion of current Tab from TabModel to WebStateList.
Add methods to track and set the currently active WebState in the
WebStateList (referenced by index) and corresponding events when
the active WebState is changed (explicitly or automatically after
detaching a WebState).
Add new WebStateListObserver (and WebStateListObserving when the
observer need to keep a __weak pointer to an Objective-C class)
that react to the event send when the active WebState changes.
Add a -loadFinished property to Tab to avoid accessing the private
//ios/web private API in new code.
BUG= 687207
Review-Url: https://codereview.chromium.org/2703333006
Cr-Commit-Position: refs/heads/master@{#454329}
Committed: https://chromium.googlesource.com/chromium/src/+/2f7781ce46951904a2615fbda44d2a9f4ced23ca
Total comments: 7
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+565 lines, -228 lines) |
Patch |
|
M |
ios/chrome/browser/metrics/BUILD.gn
|
View
|
1
2
|
1 chunk |
+17 lines, -0 lines |
0 comments
|
Download
|
|
A |
ios/chrome/browser/metrics/tab_usage_recorder_web_state_list_observer.h
|
View
|
|
1 chunk |
+32 lines, -0 lines |
0 comments
|
Download
|
|
A |
ios/chrome/browser/metrics/tab_usage_recorder_web_state_list_observer.mm
|
View
|
|
1 chunk |
+36 lines, -0 lines |
0 comments
|
Download
|
|
M |
ios/chrome/browser/snapshots/BUILD.gn
|
View
|
|
1 chunk |
+17 lines, -0 lines |
0 comments
|
Download
|
|
A |
ios/chrome/browser/snapshots/snapshot_cache_web_state_list_observer.h
|
View
|
|
1 chunk |
+32 lines, -0 lines |
0 comments
|
Download
|
|
A |
ios/chrome/browser/snapshots/snapshot_cache_web_state_list_observer.mm
|
View
|
|
1 chunk |
+47 lines, -0 lines |
0 comments
|
Download
|
|
M |
ios/chrome/browser/tabs/BUILD.gn
|
View
|
|
2 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
|
M |
ios/chrome/browser/tabs/tab.h
|
View
|
1
2
|
1 chunk |
+3 lines, -0 lines |
0 comments
|
Download
|
|
M |
ios/chrome/browser/tabs/tab.mm
|
View
|
1
2
|
1 chunk |
+4 lines, -0 lines |
0 comments
|
Download
|
|
M |
ios/chrome/browser/tabs/tab_model.mm
|
View
|
1
2
|
23 chunks |
+49 lines, -126 lines |
0 comments
|
Download
|
|
M |
ios/chrome/browser/tabs/tab_model_observers_bridge.mm
|
View
|
|
1 chunk |
+17 lines, -0 lines |
0 comments
|
Download
|
|
D |
ios/chrome/browser/tabs/tab_model_order_controller.h
|
View
|
|
1 chunk |
+0 lines, -27 lines |
0 comments
|
Download
|
|
D |
ios/chrome/browser/tabs/tab_model_order_controller.mm
|
View
|
|
1 chunk |
+0 lines, -67 lines |
0 comments
|
Download
|
|
A |
ios/chrome/browser/tabs/tab_model_selected_tab_observer.h
|
View
|
|
1 chunk |
+24 lines, -0 lines |
0 comments
|
Download
|
|
A |
ios/chrome/browser/tabs/tab_model_selected_tab_observer.mm
|
View
|
1
|
1 chunk |
+62 lines, -0 lines |
0 comments
|
Download
|
|
M |
ios/chrome/browser/ui/browser_view_controller.mm
|
View
|
1
2
|
2 chunks |
+2 lines, -5 lines |
0 comments
|
Download
|
|
M |
ios/shared/chrome/browser/tabs/web_state_list.h
|
View
|
1
|
4 chunks |
+17 lines, -0 lines |
0 comments
|
Download
|
|
M |
ios/shared/chrome/browser/tabs/web_state_list.mm
|
View
|
1
2
|
6 chunks |
+53 lines, -0 lines |
0 comments
|
Download
|
|
M |
ios/shared/chrome/browser/tabs/web_state_list_metrics_observer.h
|
View
|
|
2 chunks |
+13 lines, -0 lines |
0 comments
|
Download
|
|
M |
ios/shared/chrome/browser/tabs/web_state_list_metrics_observer.mm
|
View
|
|
3 chunks |
+34 lines, -1 line |
0 comments
|
Download
|
|
M |
ios/shared/chrome/browser/tabs/web_state_list_observer.h
|
View
|
|
1 chunk |
+10 lines, -0 lines |
0 comments
|
Download
|
|
M |
ios/shared/chrome/browser/tabs/web_state_list_observer.mm
|
View
|
|
1 chunk |
+6 lines, -0 lines |
0 comments
|
Download
|
|
M |
ios/shared/chrome/browser/tabs/web_state_list_observer_bridge.h
|
View
|
|
2 chunks |
+15 lines, -0 lines |
0 comments
|
Download
|
|
M |
ios/shared/chrome/browser/tabs/web_state_list_observer_bridge.mm
|
View
|
1
|
1 chunk |
+18 lines, -0 lines |
0 comments
|
Download
|
|
M |
ios/shared/chrome/browser/tabs/web_state_list_order_controller.h
|
View
|
|
1 chunk |
+8 lines, -0 lines |
0 comments
|
Download
|
|
M |
ios/shared/chrome/browser/tabs/web_state_list_order_controller.mm
|
View
|
|
1 chunk |
+47 lines, -0 lines |
0 comments
|
Download
|
Depends on Patchset:
Dependent Patchsets:
Total messages: 23 (13 generated)
|