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

Side by Side Diff: chrome/common/extensions/api/app_window.idl

Issue 10659021: Move chrome.appWindow to chrome.app.window. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebased and resolved conflicts Created 8 years, 6 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 // File-level comment to appease parser. Eventually this will not be necessary. 5 // File-level comment to appease parser. Eventually this will not be necessary.
6 6
7 [nodoc] namespace appWindow { 7 [nodoc] namespace app.window {
8 dictionary CreateWindowOptions { 8 dictionary CreateWindowOptions {
9 // Width of the window. 9 // Width of the window.
10 long? width; 10 long? width;
11 11
12 // Height of the window. 12 // Height of the window.
13 long? height; 13 long? height;
14 14
15 long? left; 15 long? left;
16 long? top; 16 long? top;
17 17
18 long? minWidth; 18 long? minWidth;
19 long? minHeight; 19 long? minHeight;
20 long? maxWidth; 20 long? maxWidth;
21 long? maxHeight; 21 long? maxHeight;
22 22
23 // Window type: 'panel' or 'shell' (defaults to 'shell') 23 // Window type: 'panel' or 'shell' (defaults to 'shell')
24 DOMString? type; 24 DOMString? type;
25 25
26 // Frame type: 'none' or 'chrome' (defaults to 'chrome') 26 // Frame type: 'none' or 'chrome' (defaults to 'chrome')
27 DOMString? frame; 27 DOMString? frame;
28 }; 28 };
29 29
30 callback CreateWindowCallback = void (long view_id); 30 callback CreateWindowCallback =
31 void ([instanceOf=global] object created_window);
31 32
32 interface Functions { 33 interface Functions {
33 static void create(DOMString url, 34 static void create(DOMString url,
34 optional CreateWindowOptions options, 35 optional CreateWindowOptions options,
35 optional CreateWindowCallback callback); 36 optional CreateWindowCallback callback);
36 37
37 static void focus(); 38 static void focus();
38 static void maximize(); 39 static void maximize();
39 static void minimize(); 40 static void minimize();
40 static void restore(); 41 static void restore();
41 [nocompile] static void moveTo(long x, long y); 42 [nocompile] static void moveTo(long x, long y);
42 [nocompile] static void resizeTo(long width, long height); 43 [nocompile] static void resizeTo(long width, long height);
43 }; 44 };
44 }; 45 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698