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

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: Address comment. 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..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_; }
« no previous file with comments | « chrome/browser/ui/ash/launcher/shell_window_launcher_item_controller.cc ('k') | chrome/browser/ui/extensions/shell_window.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698