| 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);
|
| };
|
|
|
|
|