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

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

Issue 1290013003: This patch removes all files, directories, flags, and code related to SurfaceWorker, which is now d… (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: One more deletion. Created 5 years, 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « extensions/renderer/resources/guest_view/guest_view_deny.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: extensions/renderer/resources/guest_view/surface_view/surface_view.js
diff --git a/extensions/renderer/resources/guest_view/surface_view/surface_view.js b/extensions/renderer/resources/guest_view/surface_view/surface_view.js
deleted file mode 100644
index be78be128d1af9aad15c3e52fcc57374d2a812bd..0000000000000000000000000000000000000000
--- a/extensions/renderer/resources/guest_view/surface_view/surface_view.js
+++ /dev/null
@@ -1,52 +0,0 @@
-// Copyright 2014 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-// This module implements the SurfaceView prototype.
-
-var GuestView = require('guestView').GuestView;
-var GuestViewContainer = require('guestViewContainer').GuestViewContainer;
-
-function SurfaceViewImpl(surfaceviewElement) {
- GuestViewContainer.call(this, surfaceviewElement, 'surfaceview');
-}
-
-SurfaceViewImpl.prototype.__proto__ = GuestViewContainer.prototype;
-
-SurfaceViewImpl.VIEW_TYPE = 'SurfaceView';
-
-// Add extra functionality to |this.element|.
-SurfaceViewImpl.setupElement = function(proto) {
- var apiMethods = [
- 'connect'
- ];
-
- // Forward proto.foo* method calls to SurfaceViewImpl.foo*.
- GuestViewContainer.forwardApiMethods(proto, apiMethods);
-}
-
-SurfaceViewImpl.prototype.buildContainerParams = function() {
- return { 'url': this.url };
-};
-
-SurfaceViewImpl.prototype.connect = function(url, callback) {
- if (!this.elementAttached) {
- if (callback) {
- callback(false);
- }
- return;
- }
-
- this.url = url;
-
- this.guest.destroy();
-
- this.guest.create(this.buildParams(), function() {
- this.attachWindow$();
- if (callback) {
- callback(true);
- }
- }.bind(this));
-};
-
-GuestViewContainer.registerElement(SurfaceViewImpl);
« no previous file with comments | « extensions/renderer/resources/guest_view/guest_view_deny.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698