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

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

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
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 4c725fb24a8ff5776fb61fa1a3c1767671875cd2..4d4134162f0962d7970e212e11c32ba7bf9e4b13 100644
--- a/ios/shared/chrome/browser/tabs/web_state_list_observer.h
+++ b/ios/shared/chrome/browser/tabs/web_state_list_observer.h
@@ -39,12 +39,24 @@ class WebStateListObserver {
web::WebState* new_web_state,
int index);
+ // Invoked before the specified WebState is detached from the WebStateList.
+ // The WebState is still valid and still in the WebStateList.
+ virtual void WillDetachWebStateAt(WebStateList* web_state_list,
+ web::WebState* web_state,
+ int index);
+
// Invoked after the WebState at the specified index has been detached. The
// WebState is still valid but is no longer in the WebStateList.
virtual void WebStateDetachedAt(WebStateList* web_state_list,
web::WebState* web_state,
int index);
+ // Invoked before the specified WebState is destroyed via the WebStateList.
+ // The WebState is still valid but is no longer in the WebStateList.
+ virtual void WillCloseWebStateAt(WebStateList* web_state_list,
+ 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
« no previous file with comments | « ios/shared/chrome/browser/tabs/web_state_list_delegate.h ('k') | ios/shared/chrome/browser/tabs/web_state_list_observer.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698