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..885782b50671dd07283d5693670ccb92df637b1a 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_is_panel() const { |
+ 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_; } |