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 SurfaceView prototype. | 5 // This module implements the SurfaceView prototype. |
6 | 6 |
7 var GuestView = require('guestView').GuestView; | 7 var GuestView = require('guestView').GuestView; |
8 var GuestViewContainer = require('guestViewContainer').GuestViewContainer; | 8 var GuestViewContainer = require('guestViewContainer').GuestViewContainer; |
9 | 9 |
10 function SurfaceViewImpl(surfaceviewElement) { | 10 function SurfaceViewImpl(surfaceviewElement) { |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
43 | 43 |
44 this.guest.create(this.buildParams(), function() { | 44 this.guest.create(this.buildParams(), function() { |
45 this.attachWindow(); | 45 this.attachWindow(); |
46 if (callback) { | 46 if (callback) { |
47 callback(true); | 47 callback(true); |
48 } | 48 } |
49 }.bind(this)); | 49 }.bind(this)); |
50 }; | 50 }; |
51 | 51 |
52 GuestViewContainer.registerElement(SurfaceViewImpl); | 52 GuestViewContainer.registerElement(SurfaceViewImpl); |
OLD | NEW |