| 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_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 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 115 virtual bool RunImpl() OVERRIDE; | 115 virtual bool RunImpl() OVERRIDE; |
| 116 DECLARE_EXTENSION_FUNCTION_NAME("tabs.highlight") | 116 DECLARE_EXTENSION_FUNCTION_NAME("tabs.highlight") |
| 117 }; | 117 }; |
| 118 class UpdateTabFunction : public AsyncExtensionFunction { | 118 class UpdateTabFunction : public AsyncExtensionFunction { |
| 119 public: | 119 public: |
| 120 UpdateTabFunction(); | 120 UpdateTabFunction(); |
| 121 | 121 |
| 122 protected: | 122 protected: |
| 123 virtual ~UpdateTabFunction() {} | 123 virtual ~UpdateTabFunction() {} |
| 124 virtual bool UpdateURLIfPresent(base::DictionaryValue* update_props, | 124 virtual bool UpdateURLIfPresent(base::DictionaryValue* update_props, |
| 125 int tab_id, |
| 125 bool* is_async); | 126 bool* is_async); |
| 126 virtual void PopulateResult(); | 127 virtual void PopulateResult(); |
| 127 | 128 |
| 128 TabContentsWrapper* tab_contents_; | 129 TabContentsWrapper* tab_contents_; |
| 129 | 130 |
| 130 private: | 131 private: |
| 131 virtual bool RunImpl() OVERRIDE; | 132 virtual bool RunImpl() OVERRIDE; |
| 132 void OnExecuteCodeFinished(bool success, | 133 void OnExecuteCodeFinished(bool success, |
| 133 int32 page_id, | 134 int32 page_id, |
| 134 const std::string& error); | 135 const std::string& error); |
| (...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 192 // The format (JPEG vs PNG) of the resulting image. Set in RunImpl(). | 193 // The format (JPEG vs PNG) of the resulting image. Set in RunImpl(). |
| 193 ImageFormat image_format_; | 194 ImageFormat image_format_; |
| 194 | 195 |
| 195 // Quality setting to use when encoding jpegs. Set in RunImpl(). | 196 // Quality setting to use when encoding jpegs. Set in RunImpl(). |
| 196 int image_quality_; | 197 int image_quality_; |
| 197 | 198 |
| 198 DECLARE_EXTENSION_FUNCTION_NAME("tabs.captureVisibleTab") | 199 DECLARE_EXTENSION_FUNCTION_NAME("tabs.captureVisibleTab") |
| 199 }; | 200 }; |
| 200 | 201 |
| 201 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_TABS_MODULE_H__ | 202 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_TABS_MODULE_H__ |
| OLD | NEW |