1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 // --site-per-process overrides for guest_view_container.js
7 var GuestViewContainer
= require('guestViewContainer').GuestViewContainer
;
8 var IdGenerator
= requireNative('id_generator');
10 GuestViewContainer
.prototype.createInternalElement
$ = function() {
11 var iframeElement
= document
.createElement('iframe');
12 iframeElement
.style
.width
= '100%';
13 iframeElement
.style
.height
= '100%';
14 privates(iframeElement
).internal = this;
18 GuestViewContainer
.prototype.attachWindow
$ = function() {
19 var generatedId
= IdGenerator
.GetNextId();
20 // Generate an instance id for the container.
21 this.onInternalInstanceId(generatedId
);