Chromium Code Reviews| Index: chrome/browser/ui/views/tabs/tab_controller.h |
| diff --git a/chrome/browser/ui/views/tabs/tab_controller.h b/chrome/browser/ui/views/tabs/tab_controller.h |
| index d20a178673dd12214ce7b9997e494d5d2129f23d..aa14acb8b5be7dcdac76bbeb83e89e5747a1c3c2 100644 |
| --- a/chrome/browser/ui/views/tabs/tab_controller.h |
| +++ b/chrome/browser/ui/views/tabs/tab_controller.h |
| @@ -89,6 +89,13 @@ class TabController { |
| // Returns true if tabs painted in the rectangular light-bar style. |
| virtual bool IsImmersiveStyle() const = 0; |
| + // Returns the index of the specified tab in the model coordinate system, or |
| + // -1 if tab is closing or not valid. |
| + virtual int GetModelIndexOfTab(const Tab* tab) const = 0; |
|
sky
2014/07/17 04:06:10
If we can I would like to avoid exposing this stat
evy
2014/07/21 17:54:15
That's a great way to do it! Thanks
I wasn't sure
|
| + |
| + // Gets the number of Tabs in the tab strip. |
| + virtual int GetTabCount() const = 0; |
| + |
| protected: |
| virtual ~TabController() {} |
| }; |