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

Unified Diff: chrome/browser/ui/extensions/shell_window.h

Issue 12212207: Support panel titles and Icons for v1 apps (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 10 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: chrome/browser/ui/extensions/shell_window.h
diff --git a/chrome/browser/ui/extensions/shell_window.h b/chrome/browser/ui/extensions/shell_window.h
index 4d66ae0b41e885d0a4f1b4e6497f02d1e17ac13f..0fa8e161133798336cf1d72b939f3d106d75cccd 100644
--- a/chrome/browser/ui/extensions/shell_window.h
+++ b/chrome/browser/ui/extensions/shell_window.h
@@ -69,6 +69,7 @@ class ShellWindow : public content::NotificationObserver,
enum WindowType {
WINDOW_TYPE_DEFAULT, // Default shell window
WINDOW_TYPE_PANEL, // OS controlled panel window (Ash only)
+ WINDOW_TYPE_V1_PANEL, // For apps v1 support in Ash; deprecate with v1 apps
};
enum Frame {
@@ -130,6 +131,10 @@ class ShellWindow : public content::NotificationObserver,
const extensions::Extension* extension() const { return extension_; }
content::WebContents* web_contents() const;
WindowType window_type() const { return window_type_; }
+ bool window_type_panel() const {
jeremya 2013/02/15 03:28:16 is_panel()
stevenjb 2013/02/15 18:26:35 done
+ return (window_type_ == WINDOW_TYPE_PANEL ||
+ window_type_ == WINDOW_TYPE_V1_PANEL);
+ }
Profile* profile() const { return profile_; }
const gfx::Image& app_icon() const { return app_icon_; }
const GURL& app_icon_url() { return app_icon_url_; }

Powered by Google App Engine
This is Rietveld 408576698