diff options
author | amineer@chromium.org <amineer@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-07-23 21:24:00 +0000 |
---|---|---|
committer | amineer@chromium.org <amineer@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-07-23 21:24:00 +0000 |
commit | e95d17c08a2ebd04d6348abd33147d48e4b2a36f (patch) | |
tree | 82d9deca307150499ae45f7fc576129e9d89f1cd /apps/app_window.h | |
parent | 9cdf03c946d934f12070c4272c87f902ae844d86 (diff) | |
download | chromium_src-e95d17c08a2ebd04d6348abd33147d48e4b2a36f.zip chromium_src-e95d17c08a2ebd04d6348abd33147d48e4b2a36f.tar.gz chromium_src-e95d17c08a2ebd04d6348abd33147d48e4b2a36f.tar.bz2 |
Merge 284026 "Add app.window.alphaEnabled() and onAlphaEnabledCh..."
> Add app.window.alphaEnabled() and onAlphaEnabledChanged.
>
> This allows an app to determine whether a window created with
> "transparent_background" will work as expected.
>
> This also allows the app to detect when "transparent_background" might
> stop working, e.g. when Windows changes from Aero to Classic.
>
> This also fixes the bug where "transparent_background" windows
> created in Classic render as black rectangles.
>
> BUG=260810
>
> Review URL: https://codereview.chromium.org/375183002
TBR=jackhou@chromium.org
Review URL: https://codereview.chromium.org/412033002
git-svn-id: svn://svn.chromium.org/chrome/branches/2062/src@285044 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'apps/app_window.h')
-rw-r--r-- | apps/app_window.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/apps/app_window.h b/apps/app_window.h index f2e0e98..216ee3c 100644 --- a/apps/app_window.h +++ b/apps/app_window.h @@ -362,6 +362,11 @@ class AppWindow : public content::NotificationObserver, // app. void WindowEventsReady(); + // Whether the app window wants a transparent background. + bool requested_transparent_background() const { + return requested_transparent_background_; + } + protected: virtual ~AppWindow(); @@ -558,6 +563,9 @@ class AppWindow : public content::NotificationObserver, // taskbar. bool cached_always_on_top_; + // Whether |transparent_background| was set in the CreateParams. + bool requested_transparent_background_; + DISALLOW_COPY_AND_ASSIGN(AppWindow); }; |