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

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

Issue 12632004: Revert 186643 - Caused a 10% regression on SunSpider benchmark (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 7 years, 9 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 | Annotate | Revision Log
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 // Shim that simulates a <webview> tag via Mutation Observers. 5 // Shim that simulates a <webview> tag via Mutation Observers.
6 // 6 //
7 // The actual tag is implemented via the browser plugin. The internals of this 7 // The actual tag is implemented via the browser plugin. The internals of this
8 // are hidden via Shadow DOM. 8 // are hidden via Shadow DOM.
9 9
10 var watchForTag = require('tagWatcher').watchForTag; 10 var watchForTag = require("tagWatcher").watchForTag;
11
12 var chrome = requireNative('chrome').GetChrome();
13 11
14 var WEB_VIEW_ATTRIBUTES = ['name', 'src', 'partition', 'autosize', 'minheight', 12 var WEB_VIEW_ATTRIBUTES = ['name', 'src', 'partition', 'autosize', 'minheight',
15 'minwidth', 'maxheight', 'maxwidth']; 13 'minwidth', 'maxheight', 'maxwidth'];
16 14
17 // All exposed api methods for <webview>, these are forwarded to the browser 15 // All exposed api methods for <webview>, these are forwarded to the browser
18 // plugin. 16 // plugin.
19 var WEB_VIEW_API_METHODS = [ 17 var WEB_VIEW_API_METHODS = [
20 'back', 18 'back',
21 'canGoBack', 19 'canGoBack',
22 'canGoForward', 20 'canGoForward',
(...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after
188 */ 186 */
189 WebView.prototype.maybeSetupPermissionEvent_ = function() {}; 187 WebView.prototype.maybeSetupPermissionEvent_ = function() {};
190 188
191 /** 189 /**
192 * Implemented when experimental permission is available. 190 * Implemented when experimental permission is available.
193 * @private 191 * @private
194 */ 192 */
195 WebView.prototype.maybeSetupExecuteScript_ = function() {}; 193 WebView.prototype.maybeSetupExecuteScript_ = function() {};
196 194
197 exports.WebView = WebView; 195 exports.WebView = WebView;
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698