summaryrefslogtreecommitdiffstats
path: root/chrome/browser/extensions/extension_tabs_module.h
diff options
context:
space:
mode:
authorrafaelw@chromium.org <rafaelw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-05-06 06:54:36 +0000
committerrafaelw@chromium.org <rafaelw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-05-06 06:54:36 +0000
commit7555ca9a4435e3fe8eb06faac07df36ecf6c903a (patch)
treef8889ae0b3bb533b523a51c8afe9f1aba53a2239 /chrome/browser/extensions/extension_tabs_module.h
parent5a4940befecc4e2c5e73ade51683ced6b2247ee6 (diff)
downloadchromium_src-7555ca9a4435e3fe8eb06faac07df36ecf6c903a.zip
chromium_src-7555ca9a4435e3fe8eb06faac07df36ecf6c903a.tar.gz
chromium_src-7555ca9a4435e3fe8eb06faac07df36ecf6c903a.tar.bz2
Added FindTabById which finds the Browser, TabStripModel, TabContents & index associated with a given tab_id.
tabs.get(), move(), update() & delete() can now find tabs in any window by the tab_id BUG=11200 R=mpComplete Review URL: http://codereview.chromium.org/110005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@15393 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/extensions/extension_tabs_module.h')
-rw-r--r--chrome/browser/extensions/extension_tabs_module.h11
1 files changed, 9 insertions, 2 deletions
diff --git a/chrome/browser/extensions/extension_tabs_module.h b/chrome/browser/extensions/extension_tabs_module.h
index 35f59b42..04f884f 100644
--- a/chrome/browser/extensions/extension_tabs_module.h
+++ b/chrome/browser/extensions/extension_tabs_module.h
@@ -18,8 +18,15 @@ class ExtensionTabUtil {
static int GetTabId(const TabContents* tab_contents);
static int GetWindowIdOfTab(const TabContents* tab_contents);
static DictionaryValue* CreateTabValue(const TabContents* tab_contents);
- static DictionaryValue* CreateTabValue(
- const TabContents* tab_contents, TabStripModel* tab_strip, int tab_index);
+ static DictionaryValue* CreateTabValue(const TabContents* tab_contents,
+ TabStripModel* tab_strip,
+ int tab_index);
+ // Any out parameter (|browser|, |tab_strip|, |contents|, & |tab_index|) may
+ // be NULL and will not be set within the function.
+ static bool GetTabById(int tab_id, Profile* profile, Browser** browser,
+ TabStripModel** tab_strip,
+ TabContents** contents,
+ int* tab_index);
};
// Windows