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

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

Issue 1582053002: Implement webview.captureVisibleRegion() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix test so it waits for the first frame to be generated. Created 4 years, 10 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
(Empty)
1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 // This module implements experimental API for <webview>.
6 // See web_view.js and web_view_api_methods.js for details.
7 //
8 // <webview> Experimental API is only available on canary and channels of
9 // Chrome.
10
11 var WebViewImpl = require('webView').WebViewImpl;
12 var WebViewInternal = require('webViewInternal').WebViewInternal;
13
14 // An array of <webview>'s experimental API methods. See |WEB_VIEW_API_METHODS|
15 // in web_view_api_methods.js for more details.
16 var WEB_VIEW_EXPERIMENTAL_API_METHODS = [
17 // Captures the visible region of the WebView contents into a bitmap.
18 'captureVisibleRegion'
19 ];
20
21 // Registers the experimantal WebVIew API when available.
22 WebViewImpl.maybeGetExperimentalApiMethods = function() {
23 return WEB_VIEW_EXPERIMENTAL_API_METHODS;
24 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698