summaryrefslogtreecommitdiffstats
path: root/chrome/views/tabbed_pane.h
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/views/tabbed_pane.h')
-rw-r--r--chrome/views/tabbed_pane.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/chrome/views/tabbed_pane.h b/chrome/views/tabbed_pane.h
index 5e0dd5e..7a47f5cb 100644
--- a/chrome/views/tabbed_pane.h
+++ b/chrome/views/tabbed_pane.h
@@ -48,9 +48,12 @@ class TabbedPane : public NativeControl {
// view. The caller becomes the owner of the returned view.
View* RemoveTabAtIndex(int index);
- // Selects the tab at the specified |index|.
+ // Selects the tab at the specified |index|, which must be valid.
void SelectTabAt(int index);
+ // Selects the tab containing the specified |contents|, which must be valid.
+ void SelectTabForContents(const View* contents);
+
// Returns the number of tabs.
int GetTabCount();
@@ -67,6 +70,9 @@ class TabbedPane : public NativeControl {
// Changes the contents view to the view associated with the tab at |index|.
void DoSelectTabAt(int index);
+ // Returns the index of the tab containing the specified |contents|.
+ int GetIndexForContents(const View* contents) const;
+
void ResizeContents(HWND tab_control);
HWND tab_control_;