| 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 b3f04b6018b1a768b5d8c781b0b09375b67a96be..710e20228c9b4c72de6e81cd463cb44df2e530aa 100644
|
| --- a/chrome/browser/ui/views/extensions/bookmark_app_bubble_view.h
|
| +++ b/chrome/browser/ui/views/extensions/bookmark_app_bubble_view.h
|
| @@ -11,6 +11,7 @@
|
| #include "chrome/common/web_application_info.h"
|
| #include "ui/views/bubble/bubble_delegate.h"
|
| #include "ui/views/controls/button/button.h"
|
| +#include "ui/views/controls/textfield/textfield_controller.h"
|
|
|
| namespace gfx {
|
| class ImageSkia;
|
| @@ -28,7 +29,8 @@ class Textfield;
|
| // create a bookmark app 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 views::TextfieldController {
|
| public:
|
| ~BookmarkAppBubbleView() override;
|
|
|
| @@ -59,9 +61,16 @@ class BookmarkAppBubbleView : public views::BubbleDelegateView,
|
| // Closes the bubble or opens the edit dialog.
|
| void ButtonPressed(views::Button* sender, const ui::Event& event) override;
|
|
|
| + // Overidden from views::TextfieldController:
|
| + void ContentsChanged(views::Textfield* sender,
|
| + const base::string16& new_contents) override;
|
| +
|
| // Handle the message when the user presses a button.
|
| void HandleButtonPressed(views::Button* sender);
|
|
|
| + // Update the state of the Add button.
|
| + void UpdateAddButtonState();
|
| +
|
| // The WebApplicationInfo that the user is editing.
|
| WebApplicationInfo web_app_info_;
|
|
|
|
|