Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(10228)

Unified Diff: chrome/renderer/resources/extension_process_bindings.js

Issue 79070: createWindow api call. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/common/temp_scaffolding_stubs.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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) {
« no previous file with comments | « chrome/common/temp_scaffolding_stubs.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698