| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CHROME_BROWSER_EXTENSIONS_EXTENSION_TABS_MODULE_H__ | 5 #ifndef CHROME_BROWSER_EXTENSIONS_EXTENSION_TABS_MODULE_H__ |
| 6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_TABS_MODULE_H__ | 6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_TABS_MODULE_H__ |
| 7 | 7 |
| 8 #include "chrome/browser/extensions/extension_function.h" | 8 #include "chrome/browser/extensions/extension_function.h" |
| 9 | 9 |
| 10 class Browser; |
| 10 class TabContents; | 11 class TabContents; |
| 11 | 12 |
| 12 class ExtensionTabUtil { | 13 class ExtensionTabUtil { |
| 13 public: | 14 public: |
| 15 static int GetWindowId(const Browser* browser); |
| 14 static int GetTabId(const TabContents* tab_contents); | 16 static int GetTabId(const TabContents* tab_contents); |
| 15 static int GetWindowIdOfTab(const TabContents* tab_contents); | 17 static int GetWindowIdOfTab(const TabContents* tab_contents); |
| 16 }; | 18 }; |
| 17 | 19 |
| 20 class GetWindowsFunction : public SyncExtensionFunction { |
| 21 virtual bool RunImpl(); |
| 22 }; |
| 18 class GetTabsForWindowFunction : public SyncExtensionFunction { | 23 class GetTabsForWindowFunction : public SyncExtensionFunction { |
| 19 virtual bool RunImpl(); | 24 virtual bool RunImpl(); |
| 20 }; | 25 }; |
| 21 class CreateTabFunction : public SyncExtensionFunction { | 26 class CreateTabFunction : public SyncExtensionFunction { |
| 22 virtual bool RunImpl(); | 27 virtual bool RunImpl(); |
| 23 }; | 28 }; |
| 24 class GetTabFunction : public SyncExtensionFunction { | 29 class GetTabFunction : public SyncExtensionFunction { |
| 25 virtual bool RunImpl(); | 30 virtual bool RunImpl(); |
| 26 }; | 31 }; |
| 27 class UpdateTabFunction : public SyncExtensionFunction { | 32 class UpdateTabFunction : public SyncExtensionFunction { |
| 28 virtual bool RunImpl(); | 33 virtual bool RunImpl(); |
| 29 }; | 34 }; |
| 35 class MoveTabFunction : public SyncExtensionFunction { |
| 36 virtual bool RunImpl(); |
| 37 }; |
| 30 class RemoveTabFunction : public SyncExtensionFunction { | 38 class RemoveTabFunction : public SyncExtensionFunction { |
| 31 virtual bool RunImpl(); | 39 virtual bool RunImpl(); |
| 32 }; | 40 }; |
| 33 | 41 |
| 34 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_TABS_MODULE_H__ | 42 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_TABS_MODULE_H__ |
| OLD | NEW |