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

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

Issue 190533006: Add support for transparent background API (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 4 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 // 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/window-s tate"> 8 // href="https://github.com/GoogleChrome/chrome-app-samples/tree/master/window-s tate">
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 213 matching lines...) Expand 10 before | Expand all | Expand 10 after
224 // 224 //
225 // Use of <code>FrameOptions</code> is new in M36. 225 // Use of <code>FrameOptions</code> is new in M36.
226 (DOMString or FrameOptions)? frame; 226 (DOMString or FrameOptions)? frame;
227 227
228 // Size and position of the content in the window (excluding the titlebar). 228 // Size and position of the content in the window (excluding the titlebar).
229 // If an id is also specified and a window with a matching id has been shown 229 // If an id is also specified and a window with a matching id has been shown
230 // before, the remembered bounds of the window will be used instead. 230 // before, the remembered bounds of the window will be used instead.
231 [deprecated="Use innerBounds or outerBounds."] ContentBounds? bounds; 231 [deprecated="Use innerBounds or outerBounds."] ContentBounds? bounds;
232 232
233 // Enable window background transparency. 233 // Enable window background transparency.
234 // Only supported in ash. Requires experimental API permission. 234 // Only supported in ash. Requires app.window.alpha API permission.
235 boolean? transparentBackground; 235 boolean? alphaEnabled;
236 236
237 // The initial state of the window, allowing it to be created already 237 // The initial state of the window, allowing it to be created already
238 // fullscreen, maximized, or minimized. Defaults to 'normal'. 238 // fullscreen, maximized, or minimized. Defaults to 'normal'.
239 State? state; 239 State? state;
240 240
241 // If true, the window will be created in a hidden state. Call show() on 241 // If true, the window will be created in a hidden state. Call show() on
242 // the window to show it once it has been created. Defaults to false. 242 // the window to show it once it has been created. Defaults to false.
243 boolean? hidden; 243 boolean? hidden;
244 244
245 // If true, the window will be resizable by the user. Defaults to true. 245 // If true, the window will be resizable by the user. Defaults to true.
(...skipping 205 matching lines...) Expand 10 before | Expand all | Expand 10 after
451 // Fired when the window is restored from being minimized or maximized. 451 // Fired when the window is restored from being minimized or maximized.
452 [nocompile] static void onRestored(); 452 [nocompile] static void onRestored();
453 453
454 // Fired when the window's ability to use alpha transparency changes. 454 // Fired when the window's ability to use alpha transparency changes.
455 [nocompile, nodoc] static void onAlphaEnabledChanged(); 455 [nocompile, nodoc] static void onAlphaEnabledChanged();
456 456
457 // Event for testing. Lets tests wait until a window has been shown. 457 // Event for testing. Lets tests wait until a window has been shown.
458 [nocompile, nodoc] static void onWindowFirstShown(); 458 [nocompile, nodoc] static void onWindowFirstShown();
459 }; 459 };
460 }; 460 };
OLDNEW
« no previous file with comments | « chrome/common/extensions/api/_permission_features.json ('k') | chrome/common/extensions/permissions/chrome_api_permissions.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698