Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(627)

Unified Diff: ui/views/win/hwnd_message_handler.h

Issue 2826343002: Remove use of WS_EX_COMPOSITED for translucent windows. (Closed)
Patch Set: Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: ui/views/win/hwnd_message_handler.h
diff --git a/ui/views/win/hwnd_message_handler.h b/ui/views/win/hwnd_message_handler.h
index f56a7ca05927ae0f5c947899aaeb522ca9db6667..d141c2a607fe922562e69c7ff654cdd148e7e7a7 100644
--- a/ui/views/win/hwnd_message_handler.h
+++ b/ui/views/win/hwnd_message_handler.h
@@ -213,6 +213,9 @@ class VIEWS_EXPORT HWNDMessageHandler :
// to this window.
bool HasChildRenderingWindow();
+ void set_translucent(bool translucent) { translucent_ = translucent; }
+ bool translucent() const { return translucent_; }
+
private:
typedef std::set<DWORD> TouchIDs;
enum class DwmFrameState { OFF, ON };
@@ -706,6 +709,10 @@ class VIEWS_EXPORT HWNDMessageHandler :
// fullscreen window which lost activation. Defaults to false.
bool background_fullscreen_hack_;
+ // True if the window should have no border and its contents should be
+ // partially or fully transparent.
+ bool translucent_ = false;
sky 2017/04/20 17:26:28 Please rename this is_translucent_ and the setter/
+
// This is a map of the HMONITOR to full screeen window instance. It is safe
// to keep a raw pointer to the HWNDMessageHandler instance as we track the
// window destruction and ensure that the map is cleaned up.

Powered by Google App Engine
This is Rietveld 408576698