| 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_API_H_ | 5 #ifndef CHROME_BROWSER_EXTENSIONS_API_TABS_TABS_API_H_ |
| 6 #define CHROME_BROWSER_EXTENSIONS_API_TABS_TABS_API_H_ | 6 #define CHROME_BROWSER_EXTENSIONS_API_TABS_TABS_API_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 199 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 210 protected: | 210 protected: |
| 211 ~TabsCaptureVisibleTabFunction() override {} | 211 ~TabsCaptureVisibleTabFunction() override {} |
| 212 | 212 |
| 213 private: | 213 private: |
| 214 ChromeExtensionFunctionDetails chrome_details_; | 214 ChromeExtensionFunctionDetails chrome_details_; |
| 215 | 215 |
| 216 content::WebContents* GetWebContentsForID(int window_id); | 216 content::WebContents* GetWebContentsForID(int window_id); |
| 217 | 217 |
| 218 // extensions::WebContentsCaptureClient: | 218 // extensions::WebContentsCaptureClient: |
| 219 bool IsScreenshotEnabled() override; | 219 bool IsScreenshotEnabled() override; |
| 220 bool ClientAllowsTransparency() override; |
| 220 void OnCaptureSuccess(const SkBitmap& bitmap) override; | 221 void OnCaptureSuccess(const SkBitmap& bitmap) override; |
| 221 void OnCaptureFailure(FailureReason reason) override; | 222 void OnCaptureFailure(FailureReason reason) override; |
| 222 | 223 |
| 223 DECLARE_EXTENSION_FUNCTION("tabs.captureVisibleTab", TABS_CAPTUREVISIBLETAB) | 224 DECLARE_EXTENSION_FUNCTION("tabs.captureVisibleTab", TABS_CAPTUREVISIBLETAB) |
| 224 }; | 225 }; |
| 225 | 226 |
| 226 // Implement API call tabs.executeScript and tabs.insertCSS. | 227 // Implement API call tabs.executeScript and tabs.insertCSS. |
| 227 class ExecuteCodeInTabFunction : public ExecuteCodeFunction { | 228 class ExecuteCodeInTabFunction : public ExecuteCodeFunction { |
| 228 public: | 229 public: |
| 229 ExecuteCodeInTabFunction(); | 230 ExecuteCodeInTabFunction(); |
| (...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 317 ~TabsGetZoomSettingsFunction() override {} | 318 ~TabsGetZoomSettingsFunction() override {} |
| 318 | 319 |
| 319 bool RunAsync() override; | 320 bool RunAsync() override; |
| 320 | 321 |
| 321 DECLARE_EXTENSION_FUNCTION("tabs.getZoomSettings", TABS_GETZOOMSETTINGS) | 322 DECLARE_EXTENSION_FUNCTION("tabs.getZoomSettings", TABS_GETZOOMSETTINGS) |
| 322 }; | 323 }; |
| 323 | 324 |
| 324 } // namespace extensions | 325 } // namespace extensions |
| 325 | 326 |
| 326 #endif // CHROME_BROWSER_EXTENSIONS_API_TABS_TABS_API_H_ | 327 #endif // CHROME_BROWSER_EXTENSIONS_API_TABS_TABS_API_H_ |
| OLD | NEW |