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

Unified Diff: ios/shared/chrome/browser/tabs/web_state_list_observer.h

Issue 2703333006: Move the notion of current Tab from TabModel to WebStateList. (Closed)
Patch Set: Rebase. Created 3 years, 10 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
Index: ios/shared/chrome/browser/tabs/web_state_list_observer.h
diff --git a/ios/shared/chrome/browser/tabs/web_state_list_observer.h b/ios/shared/chrome/browser/tabs/web_state_list_observer.h
index bbe3c4005a8f84f5715854397047c95938dd9c98..4c725fb24a8ff5776fb61fa1a3c1767671875cd2 100644
--- a/ios/shared/chrome/browser/tabs/web_state_list_observer.h
+++ b/ios/shared/chrome/browser/tabs/web_state_list_observer.h
@@ -45,6 +45,16 @@ class WebStateListObserver {
web::WebState* web_state,
int index);
+ // Invoked after |new_web_state| was activated at the specified index. Both
+ // WebState are either valid or null (if there was no selection or there is
+ // no selection). If the change is due to an user action, |user_action| will
+ // be true.
+ virtual void WebStateActivatedAt(WebStateList* web_state_list,
+ web::WebState* old_web_state,
+ web::WebState* new_web_state,
+ int active_index,
+ bool user_action);
+
private:
DISALLOW_COPY_AND_ASSIGN(WebStateListObserver);
};

Powered by Google App Engine
This is Rietveld 408576698