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

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

Issue 550413002: Revert "Add AppWindow.setVisibleOnAllWorkspaces." (https://codereview.chromium.org/469993003) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 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/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 245 matching lines...) Expand 10 before | Expand all | Expand 10 after
256 // multiple windows of this kind, the currently focused window will be in 256 // multiple windows of this kind, the currently focused window will be in
257 // the foreground. Requires the <code>"alwaysOnTopWindows"</code> 257 // the foreground. Requires the <code>"alwaysOnTopWindows"</code>
258 // permission. Defaults to false. 258 // permission. Defaults to false.
259 // 259 //
260 // Call <code>setAlwaysOnTop()</code> on the window to change this property 260 // Call <code>setAlwaysOnTop()</code> on the window to change this property
261 // after creation. 261 // after creation.
262 boolean? alwaysOnTop; 262 boolean? alwaysOnTop;
263 263
264 // If true, the window will be focused when created. Defaults to true. 264 // If true, the window will be focused when created. Defaults to true.
265 boolean? focused; 265 boolean? focused;
266
267 // If true, the window will be visible on all workspaces.
268 // This is only available on dev channel.
269 boolean? visibleOnAllWorkspaces;
270 }; 266 };
271 267
272 // Called in the creating window (parent) before the load event is called in 268 // Called in the creating window (parent) before the load event is called in
273 // the created window (child). The parent can set fields or functions on the 269 // the created window (child). The parent can set fields or functions on the
274 // child usable from onload. E.g. background.js: 270 // child usable from onload. E.g. background.js:
275 // 271 //
276 // <code>function(createdWindow) { createdWindow.contentWindow.foo = 272 // <code>function(createdWindow) { createdWindow.contentWindow.foo =
277 // function () { }; };</code> 273 // function () { }; };</code>
278 // 274 //
279 // window.js: 275 // window.js:
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
366 [nodoc] boolean? firstShowHasHappened; 362 [nodoc] boolean? firstShowHasHappened;
367 363
368 // Set whether the window should stay above most other windows. Requires the 364 // Set whether the window should stay above most other windows. Requires the
369 // <code>"alwaysOnTopWindows"</code> permission. 365 // <code>"alwaysOnTopWindows"</code> permission.
370 static void setAlwaysOnTop(boolean alwaysOnTop); 366 static void setAlwaysOnTop(boolean alwaysOnTop);
371 367
372 // Can the window use alpha transparency? 368 // Can the window use alpha transparency?
373 // TODO(jackhou): Document this properly before going to stable. 369 // TODO(jackhou): Document this properly before going to stable.
374 [nodoc] static boolean alphaEnabled(); 370 [nodoc] static boolean alphaEnabled();
375 371
376 // For platforms that support multiple workspaces, is this window visible on
377 // all of them?
378 // This is only available on dev channel.
379 static void setVisibleOnAllWorkspaces(boolean alwaysVisible);
380
381 // The JavaScript 'window' object for the created child. 372 // The JavaScript 'window' object for the created child.
382 [instanceOf=Window] object contentWindow; 373 [instanceOf=Window] object contentWindow;
383 374
384 // The id the window was created with. 375 // The id the window was created with.
385 DOMString id; 376 DOMString id;
386 377
387 // The position, size and constraints of the window's content, which does 378 // The position, size and constraints of the window's content, which does
388 // not include window decorations. 379 // not include window decorations.
389 // This property is new in Chrome 36. 380 // This property is new in Chrome 36.
390 Bounds innerBounds; 381 Bounds innerBounds;
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
428 [nocompile] static AppWindow current(); 419 [nocompile] static AppWindow current();
429 [nocompile, nodoc] static void initializeAppWindow(object state); 420 [nocompile, nodoc] static void initializeAppWindow(object state);
430 421
431 // Gets an array of all currently created app windows. This method is new in 422 // Gets an array of all currently created app windows. This method is new in
432 // Chrome 33. 423 // Chrome 33.
433 [nocompile] static AppWindow[] getAll(); 424 [nocompile] static AppWindow[] getAll();
434 425
435 // Gets an $(ref:AppWindow) with the given id. If no window with the given i d 426 // Gets an $(ref:AppWindow) with the given id. If no window with the given i d
436 // exists null is returned. This method is new in Chrome 33. 427 // exists null is returned. This method is new in Chrome 33.
437 [nocompile] static AppWindow get(DOMString id); 428 [nocompile] static AppWindow get(DOMString id);
438
439 // Does the current platform support windows being visible on all
440 // workspaces?
441 [nocompile] static boolean canSetVisibleOnAllWorkspaces();
442 }; 429 };
443 430
444 interface Events { 431 interface Events {
445 // Fired when the window is resized. 432 // Fired when the window is resized.
446 [nocompile] static void onBoundsChanged(); 433 [nocompile] static void onBoundsChanged();
447 434
448 // Fired when the window is closed. Note, this should be listened to from 435 // Fired when the window is closed. Note, this should be listened to from
449 // a window other than the window being closed, for example from the 436 // a window other than the window being closed, for example from the
450 // background page. This is because the window being closed will be in the 437 // background page. This is because the window being closed will be in the
451 // process of being torn down when the event is fired, which means not all 438 // process of being torn down when the event is fired, which means not all
(...skipping 12 matching lines...) Expand all
464 // Fired when the window is restored from being minimized or maximized. 451 // Fired when the window is restored from being minimized or maximized.
465 [nocompile] static void onRestored(); 452 [nocompile] static void onRestored();
466 453
467 // Fired when the window's ability to use alpha transparency changes. 454 // Fired when the window's ability to use alpha transparency changes.
468 [nocompile, nodoc] static void onAlphaEnabledChanged(); 455 [nocompile, nodoc] static void onAlphaEnabledChanged();
469 456
470 // 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.
471 [nocompile, nodoc] static void onWindowFirstShown(); 458 [nocompile, nodoc] static void onWindowFirstShown();
472 }; 459 };
473 }; 460 };
OLDNEW
« no previous file with comments | « extensions/browser/extension_function_histogram_value.h ('k') | extensions/renderer/resources/app_window_custom_bindings.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698