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

Unified Diff: extensions/common/api/app_window.idl

Issue 469993003: Add AppWindow.setVisibleOnAllWorkspaces. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Initialize AppWindow::CreateParams::visible_on_all_workspaces. 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 side-by-side diff with in-line comments
Download patch
Index: extensions/common/api/app_window.idl
diff --git a/extensions/common/api/app_window.idl b/extensions/common/api/app_window.idl
index caff663e29def5edda094f0f520ba3571bbe3072..3a6e9dc5ea39ea798a66f6b987090b8da11d0eb2 100644
--- a/extensions/common/api/app_window.idl
+++ b/extensions/common/api/app_window.idl
@@ -263,6 +263,10 @@ namespace app.window {
// If true, the window will be focused when created. Defaults to true.
boolean? focused;
+
+ // If true, the window will be visible on all workspaces.
+ // This is only available on dev channel.
+ boolean? visibleOnAllWorkspaces;
};
// Called in the creating window (parent) before the load event is called in
@@ -369,6 +373,11 @@ namespace app.window {
// TODO(jackhou): Document this properly before going to stable.
[nodoc] static boolean alphaEnabled();
+ // For platforms that support multiple workspaces, is this window visible on
+ // all of them?
+ // This is only available on dev channel.
+ static void setVisibleOnAllWorkspaces(boolean alwaysVisible);
+
// The JavaScript 'window' object for the created child.
[instanceOf=Window] object contentWindow;
@@ -426,6 +435,10 @@ namespace app.window {
// Gets an $(ref:AppWindow) with the given id. If no window with the given id
// exists null is returned. This method is new in Chrome 33.
[nocompile] static AppWindow get(DOMString id);
+
+ // Does the current platform support windows being visible on all
+ // workspaces?
+ [nocompile] static boolean canSetVisibleOnAllWorkspaces();
};
interface Events {
« 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