| 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 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| (...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 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 192 // The format (JPEG vs PNG) of the resulting image. Set in RunImpl(). | 197 // The format (JPEG vs PNG) of the resulting image. Set in RunImpl(). |
| 193 ImageFormat image_format_; | 198 ImageFormat image_format_; |
| 194 | 199 |
| 195 // Quality setting to use when encoding jpegs. Set in RunImpl(). | 200 // Quality setting to use when encoding jpegs. Set in RunImpl(). |
| 196 int image_quality_; | 201 int image_quality_; |
| 197 | 202 |
| 198 DECLARE_EXTENSION_FUNCTION_NAME("tabs.captureVisibleTab") | 203 DECLARE_EXTENSION_FUNCTION_NAME("tabs.captureVisibleTab") |
| 199 }; | 204 }; |
| 200 | 205 |
| 201 #endif // CHROME_BROWSER_EXTENSIONS_API_TABS_TABS_H__ | 206 #endif // CHROME_BROWSER_EXTENSIONS_API_TABS_TABS_H__ |
| OLD | NEW |