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 140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
151 } | 151 } |
152 WebViewInternal.overrideUserAgent(this.guest.getId(), userAgentOverride); | 152 WebViewInternal.overrideUserAgent(this.guest.getId(), userAgentOverride); |
153 return true; | 153 return true; |
154 }; | 154 }; |
155 | 155 |
156 // ----------------------------------------------------------------------------- | 156 // ----------------------------------------------------------------------------- |
157 | 157 |
158 WebViewImpl.getApiMethods = function() { | 158 WebViewImpl.getApiMethods = function() { |
159 return WEB_VIEW_API_METHODS; | 159 return WEB_VIEW_API_METHODS; |
160 }; | 160 }; |
OLD | NEW |