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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/common/temp_scaffolding_stubs.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // ----------------------------------------------------------------------------- 5 // -----------------------------------------------------------------------------
6 // NOTE: If you change this file you need to touch renderer_resources.grd to 6 // NOTE: If you change this file you need to touch renderer_resources.grd to
7 // have your change take effect. 7 // have your change take effect.
8 // ----------------------------------------------------------------------------- 8 // -----------------------------------------------------------------------------
9 9
10 var chromium; 10 var chromium;
11 (function() { 11 (function() {
12 native function GetNextCallbackId(); 12 native function GetNextCallbackId();
13 native function CreateWindow();
13 native function GetWindows(); 14 native function GetWindows();
14 native function GetTabsForWindow(); 15 native function GetTabsForWindow();
15 native function GetTab(); 16 native function GetTab();
16 native function CreateTab(); 17 native function CreateTab();
17 native function UpdateTab(); 18 native function UpdateTab();
18 native function MoveTab(); 19 native function MoveTab();
19 native function RemoveTab(); 20 native function RemoveTab();
20 native function GetBookmarks(); 21 native function GetBookmarks();
21 native function SearchBookmarks(); 22 native function SearchBookmarks();
22 native function RemoveBookmark(); 23 native function RemoveBookmark();
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
102 ids: { 103 ids: {
103 type: "array", 104 type: "array",
104 items: chromium.types.pInt, 105 items: chromium.types.pInt,
105 minItems: 1 106 minItems: 1
106 } 107 }
107 }, 108 },
108 optional: true 109 optional: true
109 }, 110 },
110 chromium.types.optFun 111 chromium.types.optFun
111 ]; 112 ];
113
114 chromium.tabs.createWindow = function(createData, callback) {
115 validate(arguments, arguments.callee.params);
116 sendRequest(CreateWindow, createData, callback);
117 };
118 chromium.tabs.createWindow.params = [
119 {
120 type: "object",
121 properties: {
122 url: chromium.types.optStr,
123 left: chromium.types.optInt,
124 top: chromium.types.optInt,
125 width: chromium.types.optPInt,
126 height: chromium.types.optPInt
127 },
128 optional: true
129 },
130 chromium.types.optFun
131 ];
112 132
113 // TODO(aa): This should eventually take an optional windowId param. 133 // TODO(aa): This should eventually take an optional windowId param.
114 chromium.tabs.getTabsForWindow = function(callback) { 134 chromium.tabs.getTabsForWindow = function(callback) {
115 validate(arguments, arguments.callee.params); 135 validate(arguments, arguments.callee.params);
116 sendRequest(GetTabsForWindow, null, callback); 136 sendRequest(GetTabsForWindow, null, callback);
117 }; 137 };
118 138
119 chromium.tabs.getTabsForWindow.params = [ 139 chromium.tabs.getTabsForWindow.params = [
120 chromium.types.optFun 140 chromium.types.optFun
121 ]; 141 ];
(...skipping 187 matching lines...) Expand 10 before | Expand all | Expand 10 after
309 chromium.types.optFun 329 chromium.types.optFun
310 ]; 330 ];
311 331
312 //---------------------------------------------------------------------------- 332 //----------------------------------------------------------------------------
313 333
314 // Self 334 // Self
315 chromium.self = {}; 335 chromium.self = {};
316 chromium.self.onConnect = new chromium.Event("channel-connect"); 336 chromium.self.onConnect = new chromium.Event("channel-connect");
317 })(); 337 })();
318 338
OLDNEW
« 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