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

Side by Side Diff: chrome/renderer/resources/extensions/web_view.js

Issue 567643002: Moving cleardata extension function. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 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 (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 // This module implements Webview (<webview>) as a custom element that wraps a 5 // This module implements Webview (<webview>) as a custom element that wraps a
6 // BrowserPlugin object element. The object element is hidden within 6 // BrowserPlugin object element. The object element is hidden within
7 // the shadow DOM of the Webview element. 7 // the shadow DOM of the Webview element.
8 8
9 var DocumentNatives = requireNative('document_natives'); 9 var DocumentNatives = requireNative('document_natives');
10 var GuestViewInternal = 10 var GuestViewInternal =
(...skipping 221 matching lines...) Expand 10 before | Expand all | Expand 10 after
232 }; 232 };
233 233
234 /** 234 /**
235 * @private 235 * @private
236 */ 236 */
237 WebViewInternal.prototype.clearData = function() { 237 WebViewInternal.prototype.clearData = function() {
238 if (!this.guestInstanceId) { 238 if (!this.guestInstanceId) {
239 return; 239 return;
240 } 240 }
241 var args = $Array.concat([this.guestInstanceId], $Array.slice(arguments)); 241 var args = $Array.concat([this.guestInstanceId], $Array.slice(arguments));
242 $Function.apply(ChromeWebView.clearData, null, args); 242 $Function.apply(WebView.clearData, null, args);
243 }; 243 };
244 244
245 /** 245 /**
246 * @private 246 * @private
247 */ 247 */
248 WebViewInternal.prototype.getProcessId = function() { 248 WebViewInternal.prototype.getProcessId = function() {
249 return this.processId; 249 return this.processId;
250 }; 250 };
251 251
252 /** 252 /**
(...skipping 787 matching lines...) Expand 10 before | Expand all | Expand 10 after
1040 }; 1040 };
1041 1041
1042 /** 1042 /**
1043 * Implemented when the experimental API is available. 1043 * Implemented when the experimental API is available.
1044 * @private 1044 * @private
1045 */ 1045 */
1046 WebViewInternal.prototype.setupExperimentalContextMenus = function() {}; 1046 WebViewInternal.prototype.setupExperimentalContextMenus = function() {};
1047 1047
1048 exports.WebView = WebView; 1048 exports.WebView = WebView;
1049 exports.WebViewInternal = WebViewInternal; 1049 exports.WebViewInternal = WebViewInternal;
OLDNEW
« no previous file with comments | « chrome/common/extensions/api/chrome_web_view_internal.json ('k') | extensions/browser/api/web_view/web_view_internal_api.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698