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/ui/browser_window.h" | 10 #include "chrome/browser/ui/browser_window.h" |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
65 // Overridden from views::TextfieldController: | 65 // Overridden from views::TextfieldController: |
66 void ContentsChanged(views::Textfield* sender, | 66 void ContentsChanged(views::Textfield* sender, |
67 const base::string16& new_contents) override; | 67 const base::string16& new_contents) override; |
68 | 68 |
69 // Handle the message when the user presses a button. | 69 // Handle the message when the user presses a button. |
70 void HandleButtonPressed(views::Button* sender); | 70 void HandleButtonPressed(views::Button* sender); |
71 | 71 |
72 // Update the state of the Add button. | 72 // Update the state of the Add button. |
73 void UpdateAddButtonState(); | 73 void UpdateAddButtonState(); |
74 | 74 |
| 75 // Get the string ID to use for the bubble title. |
| 76 int TitleStringId(); |
| 77 |
75 // Get the trimmed contents of the title text field. | 78 // Get the trimmed contents of the title text field. |
76 base::string16 GetTrimmedTitle(); | 79 base::string16 GetTrimmedTitle(); |
77 | 80 |
78 // The WebApplicationInfo that the user is editing. | 81 // The WebApplicationInfo that the user is editing. |
79 WebApplicationInfo web_app_info_; | 82 WebApplicationInfo web_app_info_; |
80 | 83 |
81 // Whether the user has accepted the dialog. | 84 // Whether the user has accepted the dialog. |
82 bool user_accepted_; | 85 bool user_accepted_; |
83 | 86 |
84 // The callback to be invoked when the dialog is completed. | 87 // The callback to be invoked when the dialog is completed. |
(...skipping 11 matching lines...) Expand all Loading... |
96 // Textfield showing the title of the app. | 99 // Textfield showing the title of the app. |
97 views::Textfield* title_tf_; | 100 views::Textfield* title_tf_; |
98 | 101 |
99 // Image showing the icon of the app. | 102 // Image showing the icon of the app. |
100 views::ImageView* icon_image_view_; | 103 views::ImageView* icon_image_view_; |
101 | 104 |
102 DISALLOW_COPY_AND_ASSIGN(BookmarkAppBubbleView); | 105 DISALLOW_COPY_AND_ASSIGN(BookmarkAppBubbleView); |
103 }; | 106 }; |
104 | 107 |
105 #endif // CHROME_BROWSER_UI_VIEWS_EXTENSIONS_BOOKMARK_APP_BUBBLE_VIEW_H_ | 108 #endif // CHROME_BROWSER_UI_VIEWS_EXTENSIONS_BOOKMARK_APP_BUBBLE_VIEW_H_ |
OLD | NEW |