summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorjackhou <jackhou@chromium.org>2014-09-07 23:47:07 -0700
committerCommit bot <commit-bot@chromium.org>2014-09-08 06:49:51 +0000
commitc76ef7326840ea3eeb3fa96fb88f5269b5ec55a7 (patch)
tree0af1d21c7802ca3d610ace16737589ca5066f0a6 /apps
parent9f11d3bc7c31cc4c10efa15e4bfddf12705908ed (diff)
downloadchromium_src-c76ef7326840ea3eeb3fa96fb88f5269b5ec55a7.zip
chromium_src-c76ef7326840ea3eeb3fa96fb88f5269b5ec55a7.tar.gz
chromium_src-c76ef7326840ea3eeb3fa96fb88f5269b5ec55a7.tar.bz2
Add AppWindow.setVisibleOnAllWorkspaces.
For platforms that support multiple workspaces (currently Mac and Linux), this allows app windows be visible on all workspaces simultaneously. API proposal: https://docs.google.com/document/d/1RC3CYwsrVxS_5hXg6nE3zA9y59G98z9Ezmmmq_Gzx9o/edit?usp=sharing BUG=384644 Review URL: https://codereview.chromium.org/469993003 Cr-Commit-Position: refs/heads/master@{#293676}
Diffstat (limited to 'apps')
-rw-r--r--apps/ui/views/native_app_window_views.cc4
-rw-r--r--apps/ui/views/native_app_window_views.h1
2 files changed, 5 insertions, 0 deletions
diff --git a/apps/ui/views/native_app_window_views.cc b/apps/ui/views/native_app_window_views.cc
index 4579c73..e185b8f 100644
--- a/apps/ui/views/native_app_window_views.cc
+++ b/apps/ui/views/native_app_window_views.cc
@@ -401,4 +401,8 @@ bool NativeAppWindowViews::CanHaveAlphaEnabled() const {
return widget_->IsTranslucentWindowOpacitySupported();
}
+void NativeAppWindowViews::SetVisibleOnAllWorkspaces(bool always_visible) {
+ widget_->SetVisibleOnAllWorkspaces(always_visible);
+}
+
} // namespace apps
diff --git a/apps/ui/views/native_app_window_views.h b/apps/ui/views/native_app_window_views.h
index 9988b17..931faba 100644
--- a/apps/ui/views/native_app_window_views.h
+++ b/apps/ui/views/native_app_window_views.h
@@ -161,6 +161,7 @@ class NativeAppWindowViews : public extensions::NativeAppWindow,
virtual void SetContentSizeConstraints(const gfx::Size& min_size,
const gfx::Size& max_size) OVERRIDE;
virtual bool CanHaveAlphaEnabled() const OVERRIDE;
+ virtual void SetVisibleOnAllWorkspaces(bool always_visible) OVERRIDE;
// web_modal::WebContentsModalDialogHost implementation.
virtual gfx::NativeView GetHostView() const OVERRIDE;