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

Unified Diff: extensions/renderer/resources/guest_view/surface_view.js

Issue 820513002: Renamed WorkerFrame to SurfaceWorker (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed tests Created 6 years 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 side-by-side diff with in-line comments
Download patch
Index: extensions/renderer/resources/guest_view/surface_view.js
diff --git a/extensions/renderer/resources/guest_view/worker_frame.js b/extensions/renderer/resources/guest_view/surface_view.js
similarity index 60%
rename from extensions/renderer/resources/guest_view/worker_frame.js
rename to extensions/renderer/resources/guest_view/surface_view.js
index 900e43da3d445b05b475df492d34780dbda9bfb8..421aeaae94170febacc8afb5b4b80b4083132163 100644
--- a/extensions/renderer/resources/guest_view/worker_frame.js
+++ b/extensions/renderer/resources/guest_view/surface_view.js
@@ -2,30 +2,30 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-// This module implements the WorkerFrame prototype.
+// This module implements the SurfaceView prototype.
var GuestView = require('guestView').GuestView;
var GuestViewContainer = require('guestViewContainer').GuestViewContainer;
-function WorkerFrameImpl(workerFrameElement) {
- GuestViewContainer.call(this, workerFrameElement, 'workerframe');
+function SurfaceViewImpl(surfaceviewElement) {
+ GuestViewContainer.call(this, surfaceviewElement, 'surfaceview');
}
-WorkerFrameImpl.prototype.__proto__ = GuestViewContainer.prototype;
+SurfaceViewImpl.prototype.__proto__ = GuestViewContainer.prototype;
-WorkerFrameImpl.VIEW_TYPE = 'WorkerFrame';
+SurfaceViewImpl.VIEW_TYPE = 'SurfaceView';
// Add extra functionality to |this.element|.
-WorkerFrameImpl.setupElement = function(proto) {
+SurfaceViewImpl.setupElement = function(proto) {
var apiMethods = [
'connect'
];
- // Forward proto.foo* method calls to WorkerFrameImpl.foo*.
+ // Forward proto.foo* method calls to SurfaceViewImpl.foo*.
GuestViewContainer.forwardApiMethods(proto, apiMethods);
}
-WorkerFrameImpl.prototype.connect = function(url, callback) {
+SurfaceViewImpl.prototype.connect = function(url, callback) {
if (!this.elementAttached) {
if (callback) {
callback(false);
@@ -47,4 +47,4 @@ WorkerFrameImpl.prototype.connect = function(url, callback) {
}.bind(this));
};
-GuestViewContainer.registerElement(WorkerFrameImpl);
+GuestViewContainer.registerElement(SurfaceViewImpl);

Powered by Google App Engine
This is Rietveld 408576698