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

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

Issue 1914993002: Enhance chrome.app.window API with better shelf integration (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: browsertest: Close windows in other order Created 4 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
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. See the <a 7 // associated with any Chrome browser windows. See the <a
8 // href="https://github.com/GoogleChrome/chrome-app-samples/tree/master/samples/ window-state"> 8 // href="https://github.com/GoogleChrome/chrome-app-samples/tree/master/samples/ window-state">
9 // Window State Sample</a> for a demonstration of these options. 9 // Window State Sample</a> for a demonstration of these options.
10 namespace app.window { 10 namespace app.window {
(...skipping 207 matching lines...) Expand 10 before | Expand all | Expand 10 after
218 218
219 // Type of window to create. 219 // Type of window to create.
220 WindowType? type; 220 WindowType? type;
221 221
222 // Creates a special ime window. This window is not focusable and can be 222 // Creates a special ime window. This window is not focusable and can be
223 // stacked above virtual keyboard window. This is restriced to component ime 223 // stacked above virtual keyboard window. This is restriced to component ime
224 // extensions. 224 // extensions.
225 // Requires the <code>app.window.ime</code> API permission. 225 // Requires the <code>app.window.ime</code> API permission.
226 [nodoc] boolean? ime; 226 [nodoc] boolean? ime;
227 227
228 // If true, the window will have its own icon in the shelf instead of being
229 // folded in the menu of the parent app. Defaults to false.
stevenjb 2016/04/26 16:30:01 Use the comment I suggested previously (or somethi
Andra Paraschiv 2016/04/28 09:49:03 Done.
230 boolean? showInShelf;
231
228 // Frame type: <code>none</code> or <code>chrome</code> (defaults to 232 // Frame type: <code>none</code> or <code>chrome</code> (defaults to
229 // <code>chrome</code>). For <code>none</code>, the 233 // <code>chrome</code>). For <code>none</code>, the
230 // <code>-webkit-app-region</code> CSS property can be used to apply 234 // <code>-webkit-app-region</code> CSS property can be used to apply
231 // draggability to the app's window. <code>-webkit-app-region: drag</code> 235 // draggability to the app's window. <code>-webkit-app-region: drag</code>
232 // can be used to mark regions draggable. <code>no-drag</code> can be used 236 // can be used to mark regions draggable. <code>no-drag</code> can be used
233 // to disable this style on nested elements. 237 // to disable this style on nested elements.
234 // 238 //
235 // Use of <code>FrameOptions</code> is new in M36. 239 // Use of <code>FrameOptions</code> is new in M36.
236 (DOMString or FrameOptions)? frame; 240 (DOMString or FrameOptions)? frame;
237 241
(...skipping 238 matching lines...) Expand 10 before | Expand all | Expand 10 after
476 // Fired when the window is restored from being minimized or maximized. 480 // Fired when the window is restored from being minimized or maximized.
477 [nocompile] static void onRestored(); 481 [nocompile] static void onRestored();
478 482
479 // Fired when the window's ability to use alpha transparency changes. 483 // Fired when the window's ability to use alpha transparency changes.
480 [nocompile, nodoc] static void onAlphaEnabledChanged(); 484 [nocompile, nodoc] static void onAlphaEnabledChanged();
481 485
482 // Event for testing. Lets tests wait until a window has been shown. 486 // Event for testing. Lets tests wait until a window has been shown.
483 [nocompile, nodoc] static void onWindowFirstShown(); 487 [nocompile, nodoc] static void onWindowFirstShown();
484 }; 488 };
485 }; 489 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698