Add SetVisibleOnAllWorkspaces/IsVisibleOnAllWorkspaces API.

These two APIs are only available on OS X/Linux platforms.
This commit is contained in:
Haojian Wu 2015-03-26 14:18:37 +08:00
parent 1804466334
commit 476b61322f
8 changed files with 74 additions and 0 deletions

View file

@ -81,6 +81,11 @@ class NativeWindowViews : public NativeWindow,
void SetMenuBarVisibility(bool visible) override;
bool IsMenuBarVisible() override;
#if defined(OS_LINUX)
void SetVisibleOnAllWorkspaces(bool visible) override;
bool IsVisibleOnAllWorkspaces() override;
#endif
gfx::AcceleratedWidget GetAcceleratedWidget();
SkRegion* draggable_region() const { return draggable_region_.get(); }
@ -149,6 +154,10 @@ class NativeWindowViews : public NativeWindow,
bool menu_bar_visible_;
bool menu_bar_alt_pressed_;
#if defined(OS_LINUX)
bool is_visible_on_all_workspaces_;
#endif
#if defined(USE_X11)
scoped_ptr<GlobalMenuBarX11> global_menu_bar_;