| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 }; |
| OLD | NEW |