diff options
author | rafaelw@chromium.org <rafaelw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-05-05 03:05:00 +0000 |
---|---|---|
committer | rafaelw@chromium.org <rafaelw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-05-05 03:05:00 +0000 |
commit | e515f5de833d9298682570fd2f70abb16d032912 (patch) | |
tree | 05b4a10956097b7e173ebbc8153c5b557180bac8 /chrome/browser/extensions/extension_tabs_module.h | |
parent | 126f4120902008da93759d7256c87e1e6d3ae70b (diff) | |
download | chromium_src-e515f5de833d9298682570fd2f70abb16d032912.zip chromium_src-e515f5de833d9298682570fd2f70abb16d032912.tar.gz chromium_src-e515f5de833d9298682570fd2f70abb16d032912.tar.bz2 |
implemented API style/convention changes, including:
-tabs.update()
-tabs.move()
-tabs.remove()
-tabs.update()
-tabs.create()
-tabs.get()
-all tab events, except onUpdated
implemented
-tabs.getSelected()
-tabs.getAllInWindow()
-windows.getCurrent()
-windows.getFocused()
-windows.getAll(populate)
-windows.onFocusedChanged()
-ExtensionBrowserEventRouter now uses BrowserList::Observer
Review URL: http://codereview.chromium.org/100345
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@15271 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/extensions/extension_tabs_module.h')
-rw-r--r-- | chrome/browser/extensions/extension_tabs_module.h | 23 |
1 files changed, 19 insertions, 4 deletions
diff --git a/chrome/browser/extensions/extension_tabs_module.h b/chrome/browser/extensions/extension_tabs_module.h index c139f6a..35f59b42 100644 --- a/chrome/browser/extensions/extension_tabs_module.h +++ b/chrome/browser/extensions/extension_tabs_module.h @@ -22,7 +22,17 @@ class ExtensionTabUtil { const TabContents* tab_contents, TabStripModel* tab_strip, int tab_index); }; -class GetWindowsFunction : public SyncExtensionFunction { +// Windows +class GetWindowFunction : public SyncExtensionFunction { + virtual bool RunImpl(); +}; +class GetCurrentWindowFunction : public SyncExtensionFunction { + virtual bool RunImpl(); +}; +class GetFocusedWindowFunction : public SyncExtensionFunction { + virtual bool RunImpl(); +}; +class GetAllWindowsFunction : public SyncExtensionFunction { virtual bool RunImpl(); }; class CreateWindowFunction : public SyncExtensionFunction { @@ -31,13 +41,18 @@ class CreateWindowFunction : public SyncExtensionFunction { class RemoveWindowFunction : public SyncExtensionFunction { virtual bool RunImpl(); }; -class GetTabsForWindowFunction : public SyncExtensionFunction { + +// Tabs +class GetTabFunction : public SyncExtensionFunction { virtual bool RunImpl(); }; -class CreateTabFunction : public SyncExtensionFunction { +class GetSelectedTabFunction : public SyncExtensionFunction { virtual bool RunImpl(); }; -class GetTabFunction : public SyncExtensionFunction { +class GetAllTabsInWindowFunction : public SyncExtensionFunction { + virtual bool RunImpl(); +}; +class CreateTabFunction : public SyncExtensionFunction { virtual bool RunImpl(); }; class UpdateTabFunction : public SyncExtensionFunction { |