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

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

Issue 11953121: Fix up how the JSON Schema compiler decides whether to include or forward (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: revert changes to webview so that this can land Created 7 years, 10 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 | « no previous file | chrome/common/extensions/api/events.json » ('j') | 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) 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 namespace app.window { 5 namespace app.window {
6 dictionary Bounds {
7 long? left;
8 long? top;
9 long? width;
10 long? height;
11 };
12
6 dictionary CreateWindowOptions { 13 dictionary CreateWindowOptions {
7 // Id to identify the window. This will be used to remember the size 14 // Id to identify the window. This will be used to remember the size
8 // and position of the window and restore that geometry when a window 15 // and position of the window and restore that geometry when a window
9 // with the same id (and no explicit size or position) is later opened. 16 // with the same id (and no explicit size or position) is later opened.
10 DOMString? id; 17 DOMString? id;
11 18
12 // Default width of the window. (Deprecated; regular bounds act like this 19 // Default width of the window. (Deprecated; regular bounds act like this
13 // now.) 20 // now.)
14 [nodoc] long? defaultWidth; 21 [nodoc] long? defaultWidth;
15 22
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 // created if another window with the same id doesn't already exist. If a 82 // created if another window with the same id doesn't already exist. If a
76 // window with the same id already exists that window is activated instead. 83 // window with the same id already exists that window is activated instead.
77 // If you do want to create multiple windows with the same id, you can 84 // If you do want to create multiple windows with the same id, you can
78 // set this property to false. 85 // set this property to false.
79 boolean? singleton; 86 boolean? singleton;
80 }; 87 };
81 88
82 callback CreateWindowCallback = 89 callback CreateWindowCallback =
83 void ([instanceOf=AppWindow] object created_window); 90 void ([instanceOf=AppWindow] object created_window);
84 91
85 dictionary Bounds {
86 long? left;
87 long? top;
88 long? width;
89 long? height;
90 };
91
92 dictionary AppWindow { 92 dictionary AppWindow {
93 // Focus the window. 93 // Focus the window.
94 static void focus(); 94 static void focus();
95 95
96 // Minimize the window. 96 // Minimize the window.
97 static void minimize(); 97 static void minimize();
98 98
99 // Is the window minimized? 99 // Is the window minimized?
100 static boolean isMinimized(); 100 static boolean isMinimized();
101 101
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
193 // Fired when the window is maximized. 193 // Fired when the window is maximized.
194 [nocompile] static void onMaximized(); 194 [nocompile] static void onMaximized();
195 195
196 // Fired when the window is minimized. 196 // Fired when the window is minimized.
197 [nocompile] static void onMinimized(); 197 [nocompile] static void onMinimized();
198 198
199 // Fired when the window is restored from being minimized or maximized. 199 // Fired when the window is restored from being minimized or maximized.
200 [nocompile] static void onRestored(); 200 [nocompile] static void onRestored();
201 }; 201 };
202 }; 202 };
OLDNEW
« no previous file with comments | « no previous file | chrome/common/extensions/api/events.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698