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

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: fix typo Created 8 years, 5 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 namespace appWindow { 7 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 // X coordinate of the window. 15 // X coordinate of the window.
16 long? left; 16 long? left;
17 17
(...skipping 12 matching lines...) Expand all
30 // Maximum height of the window. 30 // Maximum height of the window.
31 long? maxHeight; 31 long? maxHeight;
32 32
33 // Window type: 'shell' (the default) is the only currently supported value. 33 // Window type: 'shell' (the default) is the only currently supported value.
34 DOMString? type; 34 DOMString? type;
35 35
36 // Frame type: 'none' or 'chrome' (defaults to 'chrome'). 36 // Frame type: 'none' or 'chrome' (defaults to 'chrome').
37 DOMString? frame; 37 DOMString? frame;
38 }; 38 };
39 39
40 callback CreateWindowCallback = void (long view_id); 40 callback CreateWindowCallback =
41 void ([instanceOf=global] object created_window);
41 42
42 interface Functions { 43 interface Functions {
43 static void create(DOMString url, 44 static void create(DOMString url,
44 optional CreateWindowOptions options, 45 optional CreateWindowOptions options,
45 optional CreateWindowCallback callback); 46 optional CreateWindowCallback callback);
46 47
47 static void focus(); 48 static void focus();
48 static void maximize(); 49 static void maximize();
49 static void minimize(); 50 static void minimize();
50 static void restore(); 51 static void restore();
51 [nocompile] static void moveTo(long x, long y); 52 [nocompile] static void moveTo(long x, long y);
52 [nocompile] static void resizeTo(long width, long height); 53 [nocompile] static void resizeTo(long width, long height);
53 }; 54 };
54 }; 55 };
OLDNEW
« no previous file with comments | « chrome/common/extensions/api/_permission_features.json ('k') | chrome/common/extensions/docs/apps/api_index.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698