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

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

Issue 267303003: Promote chrome app window frame color to stable. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Nit Created 6 years, 7 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 9
10 // Previously named Bounds. 10 // Previously named Bounds.
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
99 // Frame type: <code>none</code> or <code>chrome</code> (defaults to 99 // Frame type: <code>none</code> or <code>chrome</code> (defaults to
100 // <code>chrome</code>).<br> 100 // <code>chrome</code>).<br>
101 // For <code>none</code>, the <code>-webkit-app-region</code> CSS property 101 // For <code>none</code>, the <code>-webkit-app-region</code> CSS property
102 // can be used to apply draggability to the app's window. 102 // can be used to apply draggability to the app's window.
103 // <code>-webkit-app-region: drag</code> can be used to mark regions 103 // <code>-webkit-app-region: drag</code> can be used to mark regions
104 // draggable. <code>no-drag</code> can be used to disable this style on 104 // draggable. <code>no-drag</code> can be used to disable this style on
105 // nested elements.<br> 105 // nested elements.<br>
106 DOMString? type; 106 DOMString? type;
107 // Allows the frame color to be set. Frame coloring is only available if the 107 // Allows the frame color to be set. Frame coloring is only available if the
108 // frame type is <code>chrome</code>.<br> 108 // frame type is <code>chrome</code>.<br>
109 // Frame coloring is experimental and only available in dev channel. 109 // Frame coloring is new in Chrome 36.
110 DOMString? color; 110 DOMString? color;
111 // Allows the frame color of the window when active to be set. Frame 111 // Allows the frame color of the window when active to be set. Frame
112 // coloring is only available if the frame type is <code>chrome</code>.<br> 112 // coloring is only available if the frame type is <code>chrome</code>.<br>
113 // Frame coloring is only available if the frame type is 113 // Frame coloring is only available if the frame type is
114 // <code>chrome</code>.<br> 114 // <code>chrome</code>.<br>
115 // Frame coloring is experimental and only available in dev channel. 115 // Frame coloring is new in Chrome 36.
116 DOMString? activeColor; 116 DOMString? activeColor;
117 // Allows the frame color of the window when inactive to be set differently 117 // Allows the frame color of the window when inactive to be set differently
118 // to the active color. Frame 118 // to the active color. Frame
119 // coloring is only available if the frame type is <code>chrome</code>.<br> 119 // coloring is only available if the frame type is <code>chrome</code>.<br>
120 // <code>inactiveColor</code> must be used in conjunction with <code> 120 // <code>inactiveColor</code> must be used in conjunction with <code>
121 // color</code>.<br> 121 // color</code>.<br>
122 // Frame coloring is experimental and only available in dev channel. 122 // Frame coloring is new in Chrome 36.
123 DOMString? inactiveColor; 123 DOMString? inactiveColor;
124 }; 124 };
125 125
126 // State of a window: normal, fullscreen, maximized, minimized. 126 // State of a window: normal, fullscreen, maximized, minimized.
127 enum State { normal, fullscreen, maximized, minimized }; 127 enum State { normal, fullscreen, maximized, minimized };
128 128
129 // 'shell' is the default window type. 'panel' is managed by the OS 129 // 'shell' is the default window type. 'panel' is managed by the OS
130 // (Currently experimental, Ash only). 130 // (Currently experimental, Ash only).
131 [nodoc] enum WindowType { shell, panel }; 131 [nodoc] enum WindowType { shell, panel };
132 132
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
205 205
206 // Type of window to create. 206 // Type of window to create.
207 [nodoc] WindowType? type; 207 [nodoc] WindowType? type;
208 208
209 // Frame type: <code>none</code> or <code>chrome</code> (defaults to 209 // Frame type: <code>none</code> or <code>chrome</code> (defaults to
210 // <code>chrome</code>). For <code>none</code>, the 210 // <code>chrome</code>). For <code>none</code>, the
211 // <code>-webkit-app-region</code> CSS property can be used to apply 211 // <code>-webkit-app-region</code> CSS property can be used to apply
212 // draggability to the app's window. <code>-webkit-app-region: drag</code> 212 // draggability to the app's window. <code>-webkit-app-region: drag</code>
213 // can be used to mark regions draggable. <code>no-drag</code> can be used 213 // can be used to mark regions draggable. <code>no-drag</code> can be used
214 // to disable this style on nested elements.<br> 214 // to disable this style on nested elements.<br>
215 // Use of <code>FrameOptions</code> is only supported in dev channel. 215 // Use of <code>FrameOptions</code> is new in M36.
216 (DOMString or FrameOptions)? frame; 216 (DOMString or FrameOptions)? frame;
217 217
218 // Size and position of the content in the window (excluding the titlebar). 218 // Size and position of the content in the window (excluding the titlebar).
219 // If an id is also specified and a window with a matching id has been shown 219 // If an id is also specified and a window with a matching id has been shown
220 // before, the remembered bounds of the window will be used instead. 220 // before, the remembered bounds of the window will be used instead.
221 [deprecated="Use innerBounds or outerBounds."] ContentBounds? bounds; 221 [deprecated="Use innerBounds or outerBounds."] ContentBounds? bounds;
222 222
223 // Enable window background transparency. 223 // Enable window background transparency.
224 // Only supported in ash. Requires experimental API permission. 224 // Only supported in ash. Requires experimental API permission.
225 boolean? transparentBackground; 225 boolean? transparentBackground;
(...skipping 194 matching lines...) Expand 10 before | Expand all | Expand 10 after
420 // Fired when the window is maximized. 420 // Fired when the window is maximized.
421 [nocompile] static void onMaximized(); 421 [nocompile] static void onMaximized();
422 422
423 // Fired when the window is minimized. 423 // Fired when the window is minimized.
424 [nocompile] static void onMinimized(); 424 [nocompile] static void onMinimized();
425 425
426 // Fired when the window is restored from being minimized or maximized. 426 // Fired when the window is restored from being minimized or maximized.
427 [nocompile] static void onRestored(); 427 [nocompile] static void onRestored();
428 }; 428 };
429 }; 429 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698