Index: chrome/renderer/resources/extension_process_bindings.js |
=================================================================== |
--- chrome/renderer/resources/extension_process_bindings.js (revision 14694) |
+++ chrome/renderer/resources/extension_process_bindings.js (working copy) |
@@ -10,6 +10,7 @@ |
var chromium; |
(function() { |
native function GetNextCallbackId(); |
+ native function CreateWindow(); |
native function GetWindows(); |
native function GetTabsForWindow(); |
native function GetTab(); |
@@ -109,6 +110,25 @@ |
}, |
chromium.types.optFun |
]; |
+ |
+ chromium.tabs.createWindow = function(createData, callback) { |
+ validate(arguments, arguments.callee.params); |
+ sendRequest(CreateWindow, createData, callback); |
+ }; |
+ chromium.tabs.createWindow.params = [ |
+ { |
+ type: "object", |
+ properties: { |
+ url: chromium.types.optStr, |
+ left: chromium.types.optInt, |
+ top: chromium.types.optInt, |
+ width: chromium.types.optPInt, |
+ height: chromium.types.optPInt |
+ }, |
+ optional: true |
+ }, |
+ chromium.types.optFun |
+ ]; |
// TODO(aa): This should eventually take an optional windowId param. |
chromium.tabs.getTabsForWindow = function(callback) { |