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