summaryrefslogtreecommitdiffstats
path: root/apps/app_window.h
diff options
context:
space:
mode:
authoramineer@chromium.org <amineer@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-07-23 21:24:00 +0000
committeramineer@chromium.org <amineer@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-07-23 21:24:00 +0000
commite95d17c08a2ebd04d6348abd33147d48e4b2a36f (patch)
tree82d9deca307150499ae45f7fc576129e9d89f1cd /apps/app_window.h
parent9cdf03c946d934f12070c4272c87f902ae844d86 (diff)
downloadchromium_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.h8
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);
};