Chromium Code Reviews| Index: chrome/browser/ui/app_list/app_list_view_delegate.cc |
| diff --git a/chrome/browser/ui/app_list/app_list_view_delegate.cc b/chrome/browser/ui/app_list/app_list_view_delegate.cc |
| index 86e85c5289e8e24bdf0c004c0a842108f7081d6d..2e6e3887022a1d17a242d78a40dee495f298e643 100644 |
| --- a/chrome/browser/ui/app_list/app_list_view_delegate.cc |
| +++ b/chrome/browser/ui/app_list/app_list_view_delegate.cc |
| @@ -85,6 +85,11 @@ |
| #include "chrome/browser/web_applications/web_app_win.h" |
| #endif |
| +#if !defined(OS_CHROMEOS) |
| +#include "chrome/grit/chromium_strings.h" |
| +#include "chrome/grit/generated_resources.h" |
| +#include "ui/base/l10n/l10n_util.h" |
| +#endif |
| namespace chrome { |
| const char kAppLauncherCategoryTag[] = "AppLauncher"; |
| @@ -786,6 +791,40 @@ void AppListViewDelegate::RemoveObserver( |
| observers_.RemoveObserver(observer); |
| } |
| +#if !defined(OS_CHROMEOS) |
| +base::string16 AppListViewDelegate::GetMessageTitle() const { |
| + return l10n_util::GetStringUTF16(IDS_APP_LIST_MESSAGE_TITLE); |
| +} |
| + |
| +base::string16 AppListViewDelegate::GetMessageText() const { |
| + return l10n_util::GetStringUTF16(IDS_APP_LIST_MESSAGE_TEXT); |
|
Matt Giuca
2016/03/22 03:28:06
base::string16 GetMessageText(size_t* offset) cons
tapted
2016/03/22 04:58:14
Acknowledged.
|
| +} |
| + |
| +base::string16 AppListViewDelegate::GetAppsShortcutName() const { |
| + return l10n_util::GetStringUTF16(IDS_BOOKMARK_BAR_APPS_SHORTCUT_NAME); |
| +} |
| + |
| +base::string16 AppListViewDelegate::GetLearnMoreText() const { |
| + return l10n_util::GetStringUTF16(IDS_APP_LIST_MESSAGE_LEARN_MORE_TEXT); |
| +} |
| + |
| +base::string16 AppListViewDelegate::GetLearnMoreLink() const { |
| + return l10n_util::GetStringUTF16(IDS_APP_LIST_MESSAGE_LEARN_MORE_LINK); |
| +} |
| + |
| +gfx::ImageSkia* AppListViewDelegate::GetAppsIcon() const { |
| + ResourceBundle& rb = ResourceBundle::GetSharedInstance(); |
| + // Ensure it's backed by a native image type in the ResourceBundle cache. |
| + rb.GetNativeImageNamed(IDR_BOOKMARK_BAR_APPS_SHORTCUT); |
| + return rb.GetImageSkiaNamed(IDR_BOOKMARK_BAR_APPS_SHORTCUT); |
| +} |
| + |
| +void AppListViewDelegate::OpenLearnMoreLink() { |
| + controller_->OpenURL(profile_, GURL(GetLearnMoreLink()), |
| + ui::PAGE_TRANSITION_LINK, CURRENT_TAB); |
| +} |
| +#endif // !defined(OS_CHROMEOS) |
| + |
| void AppListViewDelegate::OnTemplateURLServiceChanged() { |
| if (!app_list::switches::IsExperimentalAppListEnabled()) |
| return; |