| Index: extensions/renderer/resources/guest_view/guest_view.js
|
| diff --git a/extensions/renderer/resources/guest_view/guest_view.js b/extensions/renderer/resources/guest_view/guest_view.js
|
| index 4e572a20ef19f9b735fac9552e47c314d6f7c09a..24c0c7c478a7fb668310177dd6cca7269b0ce33e 100644
|
| --- a/extensions/renderer/resources/guest_view/guest_view.js
|
| +++ b/extensions/renderer/resources/guest_view/guest_view.js
|
| @@ -80,7 +80,7 @@
|
| 'create': [null, ERROR_MSG_ALREADY_CREATED, ERROR_MSG_ALREADY_CREATED],
|
| 'destroy': [null, null, null],
|
| 'detach': [ERROR_MSG_NOT_ATTACHED, ERROR_MSG_NOT_ATTACHED, null],
|
| - 'setSize': [ERROR_MSG_NOT_CREATED, null, null]
|
| + 'setAutoSize': [ERROR_MSG_NOT_CREATED, null, null]
|
| };
|
|
|
| // Check that the proposed action is a real action.
|
| @@ -212,16 +212,16 @@
|
| this.state = GUEST_STATE_CREATED;
|
| };
|
|
|
| -// Internal implementation of setSize().
|
| -GuestViewImpl.prototype.setSizeImpl = function(sizeParams, callback) {
|
| - // Check the current state.
|
| - if (!this.checkState('setSize')) {
|
| - this.handleCallback(callback);
|
| - return;
|
| - }
|
| -
|
| - GuestViewInternal.setSize(this.id, sizeParams,
|
| - this.handleCallback.bind(this, callback));
|
| +// Internal implementation of setAutoSize().
|
| +GuestViewImpl.prototype.setAutoSizeImpl = function(autoSizeParams, callback) {
|
| + // Check the current state.
|
| + if (!this.checkState('setAutoSize')) {
|
| + this.handleCallback(callback);
|
| + return;
|
| + }
|
| +
|
| + GuestViewInternal.setAutoSize(this.id, autoSizeParams,
|
| + this.handleCallback.bind(this, callback));
|
| };
|
|
|
| // The exposed interface to a guestview. Exposes in its API the functions
|
| @@ -265,10 +265,10 @@
|
| };
|
|
|
| // Adjusts the guestview's sizing parameters.
|
| -GuestView.prototype.setSize = function(sizeParams, callback) {
|
| - var internal = privates(this).internal;
|
| - internal.actionQueue.push(internal.setSizeImpl.bind(
|
| - internal, sizeParams, callback));
|
| +GuestView.prototype.setAutoSize = function(autoSizeParams, callback) {
|
| + var internal = privates(this).internal;
|
| + internal.actionQueue.push(internal.setAutoSizeImpl.bind(
|
| + internal, autoSizeParams, callback));
|
| internal.performNextAction();
|
| };
|
|
|
|
|