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

Unified Diff: apps/app_window.h

Issue 190533006: Add support for transparent background API (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Wrap Missing Permission string in #ifdef AURA Created 6 years, 7 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
« no previous file with comments | « no previous file | apps/app_window.cc » ('j') | chrome/browser/extensions/api/app_window/app_window_api.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: apps/app_window.h
diff --git a/apps/app_window.h b/apps/app_window.h
index 3fd57570cf43126dd61ab71ef32c5a8e247a482c..3fd65e81b43a773182fa44a91f62b0c87a483d0d 100644
--- a/apps/app_window.h
+++ b/apps/app_window.h
@@ -144,7 +144,7 @@ class AppWindow : public content::NotificationObserver,
bool has_frame_color;
SkColor active_frame_color;
SkColor inactive_frame_color;
- bool transparent_background; // Only supported on ash.
+ bool alpha_enabled; // Only supported on ash.
// The initial content/inner bounds specification (excluding any window
// decorations).
@@ -350,6 +350,12 @@ class AppWindow : public content::NotificationObserver,
// the renderer.
void GetSerializedState(base::DictionaryValue* properties) const;
+ // Whether this window allows a transparent background image.
+ // Currently, only Ash (ChromeOS/Windows) support transparent windows.
+ // This will always return false on platforms that don't support transparent
+ // windows.
+ bool AlphaEnabled() const;
+
protected:
virtual ~AppWindow();
@@ -528,6 +534,9 @@ class AppWindow : public content::NotificationObserver,
// taskbar.
bool cached_always_on_top_;
+ // Cache the alpha_enabled attribute from the window creation.
+ bool cached_alpha_enabled_;
+
DISALLOW_COPY_AND_ASSIGN(AppWindow);
};
« no previous file with comments | « no previous file | apps/app_window.cc » ('j') | chrome/browser/extensions/api/app_window/app_window_api.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698