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

Unified Diff: ios/chrome/browser/tabs/tab_model_observers_bridge.mm

Issue 2768093003: [ios] Extend WebStateListObserver amd WebStateListDelegate APIs. (Closed)
Patch Set: Remove duplicated method. Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | ios/chrome/browser/tabs/tab_model_web_state_list_delegate.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/chrome/browser/tabs/tab_model_observers_bridge.mm
diff --git a/ios/chrome/browser/tabs/tab_model_observers_bridge.mm b/ios/chrome/browser/tabs/tab_model_observers_bridge.mm
index df7be5f10cb365ea4928168c57798085d5734600..2fc02d26f9a5b88501a8fc3b45141983c32d1ffa 100644
--- a/ios/chrome/browser/tabs/tab_model_observers_bridge.mm
+++ b/ios/chrome/browser/tabs/tab_model_observers_bridge.mm
@@ -33,11 +33,11 @@
- (void)webStateList:(WebStateList*)webStateList
didInsertWebState:(web::WebState*)webState
- atIndex:(int)index {
- DCHECK_GE(index, 0);
+ atIndex:(int)atIndex {
+ DCHECK_GE(atIndex, 0);
[_tabModelObservers tabModel:_tabModel
didInsertTab:LegacyTabHelper::GetTabForWebState(webState)
- atIndex:static_cast<NSUInteger>(index)
+ atIndex:static_cast<NSUInteger>(atIndex)
inForeground:NO];
[_tabModelObservers tabModelDidChangeTabCount:_tabModel];
}
@@ -57,21 +57,21 @@
- (void)webStateList:(WebStateList*)webStateList
didReplaceWebState:(web::WebState*)oldWebState
withWebState:(web::WebState*)newWebState
- atIndex:(int)index {
- DCHECK_GE(index, 0);
+ atIndex:(int)atIndex {
+ DCHECK_GE(atIndex, 0);
[_tabModelObservers tabModel:_tabModel
didReplaceTab:LegacyTabHelper::GetTabForWebState(oldWebState)
withTab:LegacyTabHelper::GetTabForWebState(newWebState)
- atIndex:static_cast<NSUInteger>(index)];
+ atIndex:static_cast<NSUInteger>(atIndex)];
}
- (void)webStateList:(WebStateList*)webStateList
didDetachWebState:(web::WebState*)webState
- atIndex:(int)index {
- DCHECK_GE(index, 0);
+ atIndex:(int)atIndex {
+ DCHECK_GE(atIndex, 0);
[_tabModelObservers tabModel:_tabModel
didRemoveTab:LegacyTabHelper::GetTabForWebState(webState)
- atIndex:static_cast<NSUInteger>(index)];
+ atIndex:static_cast<NSUInteger>(atIndex)];
[_tabModelObservers tabModelDidChangeTabCount:_tabModel];
}
« no previous file with comments | « no previous file | ios/chrome/browser/tabs/tab_model_web_state_list_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698