Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(204)

Side by Side Diff: chrome/browser/extensions/api/tabs/tabs_api.h

Issue 1863953002: <webview>: Fix missing transparency in captureVisibleRegion(). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix build break Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | chrome/browser/extensions/api/tabs/tabs_api.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/extensions/api/tabs/tabs_api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698