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

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

Issue 159523002: Promote chrome.app.window alwaysOnTop property to stable unwhitelisted (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 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
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 // Use the <code>chrome.app.window</code> API to create windows. Windows 5 // Use the <code>chrome.app.window</code> API to create windows. Windows
6 // have an optional frame with title bar and size controls. They are not 6 // have an optional frame with title bar and size controls. They are not
7 // associated with any Chrome browser windows. 7 // associated with any Chrome browser windows.
8 namespace app.window { 8 namespace app.window {
9 dictionary Bounds { 9 dictionary Bounds {
10 long? left; 10 long? left;
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
102 // If you do want to create multiple windows with the same id, you can 102 // If you do want to create multiple windows with the same id, you can
103 // set this property to false. 103 // set this property to false.
104 [deprecated="Multiple windows with the same id is no longer supported."] boo lean? singleton; 104 [deprecated="Multiple windows with the same id is no longer supported."] boo lean? singleton;
105 105
106 // If true, the window will stay above most other windows. If there are 106 // If true, the window will stay above most other windows. If there are
107 // multiple windows of this kind, the currently focused window will be in 107 // multiple windows of this kind, the currently focused window will be in
108 // the foreground. Requires the <code>"alwaysOnTopWindows"</code> 108 // the foreground. Requires the <code>"alwaysOnTopWindows"</code>
109 // permission. Defaults to false.<br> 109 // permission. Defaults to false.<br>
110 // Call <code>setAlwaysOnTop()</code> on the window to change this property 110 // Call <code>setAlwaysOnTop()</code> on the window to change this property
111 // after creation.<br> 111 // after creation.<br>
112 // Currently only available on Dev channel.
113 boolean? alwaysOnTop; 112 boolean? alwaysOnTop;
114 113
115 // If true, the window will be focused when created. Defaults to true. 114 // If true, the window will be focused when created. Defaults to true.
116 boolean? focused; 115 boolean? focused;
117 }; 116 };
118 117
119 // Called in the creating window (parent) before the load event is called in 118 // Called in the creating window (parent) before the load event is called in
120 // the created window (child). The parent can set fields or functions on the 119 // the created window (child). The parent can set fields or functions on the
121 // child usable from onload. E.g. background.js:<br> 120 // child usable from onload. E.g. background.js:<br>
122 // <code>function(createdWindow) { createdWindow.contentWindow.foo = 121 // <code>function(createdWindow) { createdWindow.contentWindow.foo =
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
220 // Set the app icon for the window (experimental). 219 // Set the app icon for the window (experimental).
221 // Currently this is only being implemented on Ash. 220 // Currently this is only being implemented on Ash.
222 // TODO(stevenjb): Investigate implementing this on Windows and OSX. 221 // TODO(stevenjb): Investigate implementing this on Windows and OSX.
223 [nodoc] static void setIcon(DOMString iconUrl); 222 [nodoc] static void setIcon(DOMString iconUrl);
224 223
225 // Is the window always on top? 224 // Is the window always on top?
226 static boolean isAlwaysOnTop(); 225 static boolean isAlwaysOnTop();
227 226
228 // Set whether the window should stay above most other windows. Requires the 227 // Set whether the window should stay above most other windows. Requires the
229 // <code>"alwaysOnTopWindows"</code> permission. 228 // <code>"alwaysOnTopWindows"</code> permission.
230 // Currently only available on Dev channel.
231 static void setAlwaysOnTop(boolean alwaysOnTop); 229 static void setAlwaysOnTop(boolean alwaysOnTop);
232 230
233 // The JavaScript 'window' object for the created child. 231 // The JavaScript 'window' object for the created child.
234 [instanceOf=Window] object contentWindow; 232 [instanceOf=Window] object contentWindow;
235 233
236 // The id the window was created with. 234 // The id the window was created with.
237 DOMString id; 235 DOMString id;
238 }; 236 };
239 237
240 interface Functions { 238 interface Functions {
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
289 // Fired when the window is maximized. 287 // Fired when the window is maximized.
290 [nocompile] static void onMaximized(); 288 [nocompile] static void onMaximized();
291 289
292 // Fired when the window is minimized. 290 // Fired when the window is minimized.
293 [nocompile] static void onMinimized(); 291 [nocompile] static void onMinimized();
294 292
295 // Fired when the window is restored from being minimized or maximized. 293 // Fired when the window is restored from being minimized or maximized.
296 [nocompile] static void onRestored(); 294 [nocompile] static void onRestored();
297 }; 295 };
298 }; 296 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698