| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_API_TABS_TABS_H__ | 5 #ifndef CHROME_BROWSER_EXTENSIONS_API_TABS_TABS_H__ |
| 6 #define CHROME_BROWSER_EXTENSIONS_API_TABS_TABS_H__ | 6 #define CHROME_BROWSER_EXTENSIONS_API_TABS_TABS_H__ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 102 class QueryTabsFunction : public SyncExtensionFunction { | 102 class QueryTabsFunction : public SyncExtensionFunction { |
| 103 virtual ~QueryTabsFunction() {} | 103 virtual ~QueryTabsFunction() {} |
| 104 virtual bool RunImpl() OVERRIDE; | 104 virtual bool RunImpl() OVERRIDE; |
| 105 DECLARE_EXTENSION_FUNCTION_NAME("tabs.query") | 105 DECLARE_EXTENSION_FUNCTION_NAME("tabs.query") |
| 106 }; | 106 }; |
| 107 class CreateTabFunction : public SyncExtensionFunction { | 107 class CreateTabFunction : public SyncExtensionFunction { |
| 108 virtual ~CreateTabFunction() {} | 108 virtual ~CreateTabFunction() {} |
| 109 virtual bool RunImpl() OVERRIDE; | 109 virtual bool RunImpl() OVERRIDE; |
| 110 DECLARE_EXTENSION_FUNCTION_NAME("tabs.create") | 110 DECLARE_EXTENSION_FUNCTION_NAME("tabs.create") |
| 111 }; | 111 }; |
| 112 class DuplicateTabFunction : public SyncExtensionFunction { |
| 113 virtual ~DuplicateTabFunction() {} |
| 114 virtual bool RunImpl() OVERRIDE; |
| 115 DECLARE_EXTENSION_FUNCTION_NAME("tabs.duplicate") |
| 116 }; |
| 112 class HighlightTabsFunction : public SyncExtensionFunction { | 117 class HighlightTabsFunction : public SyncExtensionFunction { |
| 113 virtual ~HighlightTabsFunction() {} | 118 virtual ~HighlightTabsFunction() {} |
| 114 virtual bool RunImpl() OVERRIDE; | 119 virtual bool RunImpl() OVERRIDE; |
| 115 DECLARE_EXTENSION_FUNCTION_NAME("tabs.highlight") | 120 DECLARE_EXTENSION_FUNCTION_NAME("tabs.highlight") |
| 116 }; | 121 }; |
| 117 class UpdateTabFunction : public AsyncExtensionFunction { | 122 class UpdateTabFunction : public AsyncExtensionFunction { |
| 118 public: | 123 public: |
| 119 UpdateTabFunction(); | 124 UpdateTabFunction(); |
| 120 | 125 |
| 121 protected: | 126 protected: |
| (...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 196 // The format (JPEG vs PNG) of the resulting image. Set in RunImpl(). | 201 // The format (JPEG vs PNG) of the resulting image. Set in RunImpl(). |
| 197 ImageFormat image_format_; | 202 ImageFormat image_format_; |
| 198 | 203 |
| 199 // Quality setting to use when encoding jpegs. Set in RunImpl(). | 204 // Quality setting to use when encoding jpegs. Set in RunImpl(). |
| 200 int image_quality_; | 205 int image_quality_; |
| 201 | 206 |
| 202 DECLARE_EXTENSION_FUNCTION_NAME("tabs.captureVisibleTab") | 207 DECLARE_EXTENSION_FUNCTION_NAME("tabs.captureVisibleTab") |
| 203 }; | 208 }; |
| 204 | 209 |
| 205 #endif // CHROME_BROWSER_EXTENSIONS_API_TABS_TABS_H__ | 210 #endif // CHROME_BROWSER_EXTENSIONS_API_TABS_TABS_H__ |
| OLD | NEW |