Add window opacity support

This commit is contained in:
Ted Kim 2017-09-29 11:26:02 +09:00
parent 0c9ada08a4
commit 7f2c4a9e06
11 changed files with 57 additions and 0 deletions

View file

@ -104,6 +104,7 @@ class NativeWindowViews : public NativeWindow,
void SetBackgroundColor(const std::string& color_name) override;
void SetHasShadow(bool has_shadow) override;
bool HasShadow() override;
void SetOpacity(const double opacity) override;
void SetIgnoreMouseEvents(bool ignore, bool forward) override;
void SetContentProtection(bool enable) override;
void SetFocusable(bool focusable) override;
@ -274,6 +275,7 @@ class NativeWindowViews : public NativeWindow,
static HHOOK mouse_hook_;
bool forwarding_mouse_messages_ = false;
HWND legacy_window_ = NULL;
bool layered_ = false;
#endif
// Handles unhandled keyboard messages coming back from the renderer process.