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

@ -77,6 +77,9 @@ class NativeWindowMac : public NativeWindow {
const std::string& description) override;
void ShowDefinitionForSelection() override;
void SetVisibleOnAllWorkspaces(bool visible) override;
bool IsVisibleOnAllWorkspaces() override;
// Returns true if |point| in local Cocoa coordinate system falls within
// the draggable region.
bool IsWithinDraggableRegion(NSPoint point) const;
@ -112,6 +115,8 @@ class NativeWindowMac : public NativeWindow {
bool is_kiosk_;
bool is_visible_on_all_workspaces_;
NSInteger attention_request_id_; // identifier from requestUserAttention
// The presentation options before entering kiosk mode.