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

Side by Side Diff: extensions/renderer/resources/guest_view/web_view/web_view_api_methods.js

Issue 1582053002: Implement webview.captureVisibleRegion() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 // This module implements the public-facing API functions for the <webview> tag. 5 // This module implements the public-facing API functions for the <webview> tag.
6 6
7 var WebViewInternal = require('webViewInternal').WebViewInternal; 7 var WebViewInternal = require('webViewInternal').WebViewInternal;
8 var WebViewImpl = require('webView').WebViewImpl; 8 var WebViewImpl = require('webView').WebViewImpl;
9 9
10 // An array of <webview>'s public-facing API methods. Methods without custom 10 // An array of <webview>'s public-facing API methods. Methods without custom
(...skipping 19 matching lines...) Expand all
30 30
31 // Navigates to the previous history entry. 31 // Navigates to the previous history entry.
32 'back', 32 'back',
33 33
34 // Returns whether there is a previous history entry to navigate to. 34 // Returns whether there is a previous history entry to navigate to.
35 'canGoBack', 35 'canGoBack',
36 36
37 // Returns whether there is a subsequent history entry to navigate to. 37 // Returns whether there is a subsequent history entry to navigate to.
38 'canGoForward', 38 'canGoForward',
39 39
40 // Captures the visible region of the WebView contents into a bitmap.
41 'captureVisibleRegion',
42
40 // Clears browsing data for the WebView partition. 43 // Clears browsing data for the WebView partition.
41 'clearData', 44 'clearData',
42 45
43 // Injects JavaScript code into the guest page. 46 // Injects JavaScript code into the guest page.
44 'executeScript', 47 'executeScript',
45 48
46 // Initiates a find-in-page request. 49 // Initiates a find-in-page request.
47 'find', 50 'find',
48 51
49 // Navigates to the subsequent history entry. 52 // Navigates to the subsequent history entry.
(...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after
195 this.cachedZoomFactor = 1; 198 this.cachedZoomFactor = 1;
196 WebViewInternal.setZoom(this.guest.getId(), zoomFactor, callback); 199 WebViewInternal.setZoom(this.guest.getId(), zoomFactor, callback);
197 return true; 200 return true;
198 }; 201 };
199 202
200 // ----------------------------------------------------------------------------- 203 // -----------------------------------------------------------------------------
201 204
202 WebViewImpl.getApiMethods = function() { 205 WebViewImpl.getApiMethods = function() {
203 return WEB_VIEW_API_METHODS; 206 return WEB_VIEW_API_METHODS;
204 }; 207 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698