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

Unified Diff: apps/app_window.cc

Issue 469993003: Add AppWindow.setVisibleOnAllWorkspaces. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Sync and rebase 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 side-by-side diff with in-line comments
Download patch
Index: apps/app_window.cc
diff --git a/apps/app_window.cc b/apps/app_window.cc
index 3f7aa84a6704f155f5b102a3f2d0d30e1cb29dc4..adac9d9ef795d98619965585c3774e9969388183 100644
--- a/apps/app_window.cc
+++ b/apps/app_window.cc
@@ -166,7 +166,8 @@ AppWindow::CreateParams::CreateParams()
hidden(false),
resizable(true),
focused(true),
- always_on_top(false) {
+ always_on_top(false),
+ visible_on_all_workspaces(false) {
}
AppWindow::CreateParams::~CreateParams() {}
@@ -735,6 +736,11 @@ void AppWindow::GetSerializedState(base::DictionaryValue* properties) const {
properties->SetBoolean(
"alphaEnabled",
requested_alpha_enabled_ && native_app_window_->CanHaveAlphaEnabled());
+#if defined(OS_MACOSX) || (defined(OS_LINUX) && !defined(OS_CHROMEOS))
+ properties->SetBoolean("canSetVisibleOnAllWorkspaces", true);
+#else
+ properties->SetBoolean("canSetVisibleOnAllWorkspaces", false);
+#endif
// These properties are undocumented and are to enable testing. Alpha is
// removed to

Powered by Google App Engine
This is Rietveld 408576698