| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CHROME_BROWSER_UI_VIEWS_EXTENSIONS_BOOKMARK_APP_BUBBLE_VIEW_H_ | 5 #ifndef CHROME_BROWSER_UI_VIEWS_EXTENSIONS_BOOKMARK_APP_BUBBLE_VIEW_H_ |
| 6 #define CHROME_BROWSER_UI_VIEWS_EXTENSIONS_BOOKMARK_APP_BUBBLE_VIEW_H_ | 6 #define CHROME_BROWSER_UI_VIEWS_EXTENSIONS_BOOKMARK_APP_BUBBLE_VIEW_H_ |
| 7 | 7 |
| 8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
| 9 #include "base/strings/string16.h" | 9 #include "base/strings/string16.h" |
| 10 #include "chrome/browser/extensions/app_icon_loader.h" | 10 #include "chrome/browser/extensions/app_icon_loader.h" |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 45 const std::string& extension_id); | 45 const std::string& extension_id); |
| 46 | 46 |
| 47 private: | 47 private: |
| 48 // Creates a BookmarkAppBubbleView. | 48 // Creates a BookmarkAppBubbleView. |
| 49 BookmarkAppBubbleView(views::View* anchor_view, | 49 BookmarkAppBubbleView(views::View* anchor_view, |
| 50 Profile* profile, | 50 Profile* profile, |
| 51 const WebApplicationInfo& web_app_info, | 51 const WebApplicationInfo& web_app_info, |
| 52 const std::string& extension_id); | 52 const std::string& extension_id); |
| 53 | 53 |
| 54 // Overriden from views::BubbleDelegateView: | 54 // Overriden from views::BubbleDelegateView: |
| 55 virtual void Init() OVERRIDE; | 55 virtual void Init() override; |
| 56 virtual views::View* GetInitiallyFocusedView() OVERRIDE; | 56 virtual views::View* GetInitiallyFocusedView() override; |
| 57 | 57 |
| 58 // Overridden from views::WidgetDelegate: | 58 // Overridden from views::WidgetDelegate: |
| 59 virtual void WindowClosing() OVERRIDE; | 59 virtual void WindowClosing() override; |
| 60 | 60 |
| 61 // Overridden from views::View: | 61 // Overridden from views::View: |
| 62 virtual bool AcceleratorPressed(const ui::Accelerator& accelerator) OVERRIDE; | 62 virtual bool AcceleratorPressed(const ui::Accelerator& accelerator) override; |
| 63 virtual gfx::Size GetMinimumSize() const OVERRIDE; | 63 virtual gfx::Size GetMinimumSize() const override; |
| 64 | 64 |
| 65 // Overridden from views::ButtonListener: | 65 // Overridden from views::ButtonListener: |
| 66 // Closes the bubble or opens the edit dialog. | 66 // Closes the bubble or opens the edit dialog. |
| 67 virtual void ButtonPressed(views::Button* sender, | 67 virtual void ButtonPressed(views::Button* sender, |
| 68 const ui::Event& event) OVERRIDE; | 68 const ui::Event& event) override; |
| 69 | 69 |
| 70 // Overridden from extensions::AppIconLoader::Delegate: | 70 // Overridden from extensions::AppIconLoader::Delegate: |
| 71 virtual void SetAppImage(const std::string& id, | 71 virtual void SetAppImage(const std::string& id, |
| 72 const gfx::ImageSkia& image) OVERRIDE; | 72 const gfx::ImageSkia& image) override; |
| 73 | 73 |
| 74 // Handle the message when the user presses a button. | 74 // Handle the message when the user presses a button. |
| 75 void HandleButtonPressed(views::Button* sender); | 75 void HandleButtonPressed(views::Button* sender); |
| 76 | 76 |
| 77 // Sets the title and launch type of the app. | 77 // Sets the title and launch type of the app. |
| 78 void ApplyEdits(); | 78 void ApplyEdits(); |
| 79 | 79 |
| 80 // The bookmark app bubble, if we're showing one. | 80 // The bookmark app bubble, if we're showing one. |
| 81 static BookmarkAppBubbleView* bookmark_app_bubble_; | 81 static BookmarkAppBubbleView* bookmark_app_bubble_; |
| 82 | 82 |
| (...skipping 24 matching lines...) Expand all Loading... |
| 107 // When the destructor is invoked should the app be removed? | 107 // When the destructor is invoked should the app be removed? |
| 108 bool remove_app_; | 108 bool remove_app_; |
| 109 | 109 |
| 110 // Used to load the icon. | 110 // Used to load the icon. |
| 111 scoped_ptr<extensions::AppIconLoader> app_icon_loader_; | 111 scoped_ptr<extensions::AppIconLoader> app_icon_loader_; |
| 112 | 112 |
| 113 DISALLOW_COPY_AND_ASSIGN(BookmarkAppBubbleView); | 113 DISALLOW_COPY_AND_ASSIGN(BookmarkAppBubbleView); |
| 114 }; | 114 }; |
| 115 | 115 |
| 116 #endif // CHROME_BROWSER_UI_VIEWS_EXTENSIONS_BOOKMARK_APP_BUBBLE_VIEW_H_ | 116 #endif // CHROME_BROWSER_UI_VIEWS_EXTENSIONS_BOOKMARK_APP_BUBBLE_VIEW_H_ |
| OLD | NEW |