Index: ios/shared/chrome/browser/tabs/web_state_list_order_controller.h |
diff --git a/ios/shared/chrome/browser/tabs/web_state_list_order_controller.h b/ios/shared/chrome/browser/tabs/web_state_list_order_controller.h |
index a4dcd94d7afa28e706346289bbbd0c7c2d44adbc..5422c8ffa2d02e66f3c932b72537f2e5404ac284 100644 |
--- a/ios/shared/chrome/browser/tabs/web_state_list_order_controller.h |
+++ b/ios/shared/chrome/browser/tabs/web_state_list_order_controller.h |
@@ -26,7 +26,15 @@ class WebStateListOrderController { |
int DetermineInsertionIndex(ui::PageTransition transition, |
web::WebState* opener) const; |
+ // Determines where to shift the active index after a WebState is closed. |
+ int DetermineNewActiveIndex(int removing_index) const; |
+ |
private: |
+ // Returns a valid index to be selected after the WebState at |removing_index| |
+ // is detached, adjusting |index| to reflect that |removing_index| is going |
+ // away. |
+ int GetValidIndex(int index, int removing_index) const; |
+ |
WebStateList* web_state_list_; |
DISALLOW_COPY_AND_ASSIGN(WebStateListOrderController); |