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

Unified Diff: chrome/browser/ui/views/tabs/tab_controller.h

Issue 393033006: Added tab notification to accessibility_event_router_views. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: GetTabCount returns 1 in test class Created 6 years, 5 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: 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() {}
};

Powered by Google App Engine
This is Rietveld 408576698