OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 #include "chrome/browser/dom_ui/ntp_resource_cache.h" | 5 #include "chrome/browser/dom_ui/ntp_resource_cache.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "app/animation.h" | 10 #include "app/animation.h" |
(...skipping 296 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
307 localized_strings.SetString("help", | 307 localized_strings.SetString("help", |
308 l10n_util::GetStringUTF16(IDS_NEW_TAB_HELP)); | 308 l10n_util::GetStringUTF16(IDS_NEW_TAB_HELP)); |
309 localized_strings.SetString("helpurl", | 309 localized_strings.SetString("helpurl", |
310 GetUrlWithLang(GURL(kHelpContentUrl))); | 310 GetUrlWithLang(GURL(kHelpContentUrl))); |
311 localized_strings.SetString("appsettings", | 311 localized_strings.SetString("appsettings", |
312 l10n_util::GetStringUTF16(IDS_NEW_TAB_APP_SETTINGS)); | 312 l10n_util::GetStringUTF16(IDS_NEW_TAB_APP_SETTINGS)); |
313 localized_strings.SetString("appuninstall", | 313 localized_strings.SetString("appuninstall", |
314 l10n_util::GetStringUTF16(IDS_NEW_TAB_APP_UNINSTALL)); | 314 l10n_util::GetStringUTF16(IDS_NEW_TAB_APP_UNINSTALL)); |
315 localized_strings.SetString("appoptions", | 315 localized_strings.SetString("appoptions", |
316 l10n_util::GetStringUTF16(IDS_NEW_TAB_APP_OPTIONS)); | 316 l10n_util::GetStringUTF16(IDS_NEW_TAB_APP_OPTIONS)); |
| 317 localized_strings.SetString("appcreateshortcut", |
| 318 l10n_util::GetStringUTF16(IDS_NEW_TAB_APP_CREATE_SHORTCUT)); |
317 localized_strings.SetString("applaunchtypepinned", | 319 localized_strings.SetString("applaunchtypepinned", |
318 l10n_util::GetStringUTF16(IDS_APP_CONTEXT_MENU_OPEN_PINNED)); | 320 l10n_util::GetStringUTF16(IDS_APP_CONTEXT_MENU_OPEN_PINNED)); |
319 localized_strings.SetString("applaunchtyperegular", | 321 localized_strings.SetString("applaunchtyperegular", |
320 l10n_util::GetStringUTF16(IDS_APP_CONTEXT_MENU_OPEN_REGULAR)); | 322 l10n_util::GetStringUTF16(IDS_APP_CONTEXT_MENU_OPEN_REGULAR)); |
321 localized_strings.SetString("applaunchtypewindow", | 323 localized_strings.SetString("applaunchtypewindow", |
322 l10n_util::GetStringUTF16(IDS_APP_CONTEXT_MENU_OPEN_WINDOW)); | 324 l10n_util::GetStringUTF16(IDS_APP_CONTEXT_MENU_OPEN_WINDOW)); |
323 localized_strings.SetString("applaunchtypefullscreen", | 325 localized_strings.SetString("applaunchtypefullscreen", |
324 l10n_util::GetStringUTF16(IDS_APP_CONTEXT_MENU_OPEN_FULLSCREEN)); | 326 l10n_util::GetStringUTF16(IDS_APP_CONTEXT_MENU_OPEN_FULLSCREEN)); |
325 localized_strings.SetString("web_store_title", | 327 localized_strings.SetString("web_store_title", |
326 l10n_util::GetStringUTF16(IDS_EXTENSION_WEB_STORE_TITLE)); | 328 l10n_util::GetStringUTF16(IDS_EXTENSION_WEB_STORE_TITLE)); |
(...skipping 214 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
541 std::string css_string; | 543 std::string css_string; |
542 css_string = ReplaceStringPlaceholders(new_tab_theme_css, subst, NULL); | 544 css_string = ReplaceStringPlaceholders(new_tab_theme_css, subst, NULL); |
543 css_string = ReplaceStringPlaceholders(css_string, subst2, NULL); | 545 css_string = ReplaceStringPlaceholders(css_string, subst2, NULL); |
544 css_string = ReplaceStringPlaceholders(css_string, subst3, NULL); | 546 css_string = ReplaceStringPlaceholders(css_string, subst3, NULL); |
545 | 547 |
546 new_tab_css_ = new RefCountedBytes; | 548 new_tab_css_ = new RefCountedBytes; |
547 new_tab_css_->data.resize(css_string.size()); | 549 new_tab_css_->data.resize(css_string.size()); |
548 std::copy(css_string.begin(), css_string.end(), | 550 std::copy(css_string.begin(), css_string.end(), |
549 new_tab_css_->data.begin()); | 551 new_tab_css_->data.begin()); |
550 } | 552 } |
OLD | NEW |