adds vibrancy effect for macos
This commit is contained in:
parent
ad638097b6
commit
8ad50d1e35
9 changed files with 105 additions and 0 deletions
|
@ -92,6 +92,8 @@ class NativeWindowMac : public NativeWindow,
|
|||
const std::string& description) override;
|
||||
void SetVisibleOnAllWorkspaces(bool visible) override;
|
||||
bool IsVisibleOnAllWorkspaces() override;
|
||||
void SetVibrancy(const std::string& type) override;
|
||||
void RemoveVibrancy() override;
|
||||
|
||||
// content::RenderWidgetHost::InputEventObserver:
|
||||
void OnInputEvent(const blink::WebInputEvent& event) override;
|
||||
|
@ -162,6 +164,9 @@ class NativeWindowMac : public NativeWindow,
|
|||
// The "titleBarStyle" option.
|
||||
TitleBarStyle title_bar_style_;
|
||||
|
||||
// Vibrancy view
|
||||
NSView* vibrant_view_;
|
||||
|
||||
DISALLOW_COPY_AND_ASSIGN(NativeWindowMac);
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue