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

Unified Diff: chrome/browser/ui/views/extensions/bookmark_app_bubble_view.h

Issue 184213006: Add icon to the streamlined hosted app creation dialog. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@ares_hide_search_box
Patch Set: Created 6 years, 9 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 | chrome/browser/ui/views/extensions/bookmark_app_bubble_view.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/views/extensions/bookmark_app_bubble_view.h
diff --git a/chrome/browser/ui/views/extensions/bookmark_app_bubble_view.h b/chrome/browser/ui/views/extensions/bookmark_app_bubble_view.h
index 0a07228c21590b012374d9672a263fb6855d4717..a3a9d79418e7428e106ca2b8c29f46ca6c2767ae 100644
--- a/chrome/browser/ui/views/extensions/bookmark_app_bubble_view.h
+++ b/chrome/browser/ui/views/extensions/bookmark_app_bubble_view.h
@@ -7,14 +7,24 @@
#include "base/basictypes.h"
#include "base/strings/string16.h"
+#include "chrome/browser/extensions/app_icon_loader.h"
#include "chrome/common/web_application_info.h"
#include "ui/views/bubble/bubble_delegate.h"
#include "ui/views/controls/button/button.h"
class Profile;
+namespace extensions {
+class AppIconLoader;
+}
+
+namespace gfx {
+class ImageSkia;
+}
+
namespace views {
class Checkbox;
+class ImageView;
class LabelButton;
class Textfield;
}
@@ -24,7 +34,8 @@ class Textfield;
// is created with. Don't create a BookmarkAppBubbleView directly, instead use
// the static ShowBubble method.
class BookmarkAppBubbleView : public views::BubbleDelegateView,
- public views::ButtonListener {
+ public views::ButtonListener,
+ public extensions::AppIconLoader::Delegate {
public:
virtual ~BookmarkAppBubbleView();
@@ -56,6 +67,10 @@ class BookmarkAppBubbleView : public views::BubbleDelegateView,
virtual void ButtonPressed(views::Button* sender,
const ui::Event& event) OVERRIDE;
+ // Overridden from extensions::AppIconLoader::Delegate:
+ virtual void SetAppImage(const std::string& id,
+ const gfx::ImageSkia& image) OVERRIDE;
+
// Handle the message when the user presses a button.
void HandleButtonPressed(views::Button* sender);
@@ -86,9 +101,15 @@ class BookmarkAppBubbleView : public views::BubbleDelegateView,
// Textfield showing the title of the app.
views::Textfield* title_tf_;
+ // Image showing the icon of the app.
+ views::ImageView* icon_image_view_;
+
// When the destructor is invoked should the app be removed?
bool remove_app_;
+ // Used to load the icon.
+ scoped_ptr<extensions::AppIconLoader> app_icon_loader_;
+
DISALLOW_COPY_AND_ASSIGN(BookmarkAppBubbleView);
};
« no previous file with comments | « no previous file | chrome/browser/ui/views/extensions/bookmark_app_bubble_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698