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 292 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
303 localized_strings.SetString("appsettings", | 303 localized_strings.SetString("appsettings", |
304 l10n_util::GetStringUTF16(IDS_NEW_TAB_APP_SETTINGS)); | 304 l10n_util::GetStringUTF16(IDS_NEW_TAB_APP_SETTINGS)); |
305 localized_strings.SetString("appuninstall", | 305 localized_strings.SetString("appuninstall", |
306 l10n_util::GetStringUTF16(IDS_NEW_TAB_APP_UNINSTALL)); | 306 l10n_util::GetStringUTF16(IDS_NEW_TAB_APP_UNINSTALL)); |
307 localized_strings.SetString("appoptions", | 307 localized_strings.SetString("appoptions", |
308 l10n_util::GetStringUTF16(IDS_NEW_TAB_APP_OPTIONS)); | 308 l10n_util::GetStringUTF16(IDS_NEW_TAB_APP_OPTIONS)); |
309 localized_strings.SetString("applaunchtypepinned", | 309 localized_strings.SetString("applaunchtypepinned", |
310 l10n_util::GetStringUTF16(IDS_APP_CONTEXT_MENU_OPEN_PINNED)); | 310 l10n_util::GetStringUTF16(IDS_APP_CONTEXT_MENU_OPEN_PINNED)); |
311 localized_strings.SetString("applaunchtyperegular", | 311 localized_strings.SetString("applaunchtyperegular", |
312 l10n_util::GetStringUTF16(IDS_APP_CONTEXT_MENU_OPEN_REGULAR)); | 312 l10n_util::GetStringUTF16(IDS_APP_CONTEXT_MENU_OPEN_REGULAR)); |
| 313 localized_strings.SetString("applaunchtypewindow", |
| 314 l10n_util::GetStringUTF16(IDS_APP_CONTEXT_MENU_OPEN_WINDOW)); |
313 localized_strings.SetString("applaunchtypefullscreen", | 315 localized_strings.SetString("applaunchtypefullscreen", |
314 l10n_util::GetStringUTF16(IDS_APP_CONTEXT_MENU_OPEN_FULLSCREEN)); | 316 l10n_util::GetStringUTF16(IDS_APP_CONTEXT_MENU_OPEN_FULLSCREEN)); |
315 localized_strings.SetString("web_store_title", | 317 localized_strings.SetString("web_store_title", |
316 l10n_util::GetStringUTF16(IDS_EXTENSION_WEB_STORE_TITLE)); | 318 l10n_util::GetStringUTF16(IDS_EXTENSION_WEB_STORE_TITLE)); |
317 localized_strings.SetString("web_store_url", | 319 localized_strings.SetString("web_store_url", |
318 GetUrlWithLang(GURL(Extension::ChromeStoreLaunchURL()))); | 320 GetUrlWithLang(GURL(Extension::ChromeStoreLaunchURL()))); |
319 localized_strings.SetString("appspromohide", | 321 localized_strings.SetString("appspromohide", |
320 l10n_util::GetStringUTF16(IDS_APPS_PROMO_HIDE)); | 322 l10n_util::GetStringUTF16(IDS_APPS_PROMO_HIDE)); |
321 localized_strings.SetString("appspromoheader", | 323 localized_strings.SetString("appspromoheader", |
322 l10n_util::GetStringUTF16(IDS_APPS_PROMO_HEADER)); | 324 l10n_util::GetStringUTF16(IDS_APPS_PROMO_HEADER)); |
(...skipping 198 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
521 std::string css_string; | 523 std::string css_string; |
522 css_string = ReplaceStringPlaceholders(new_tab_theme_css, subst, NULL); | 524 css_string = ReplaceStringPlaceholders(new_tab_theme_css, subst, NULL); |
523 css_string = ReplaceStringPlaceholders(css_string, subst2, NULL); | 525 css_string = ReplaceStringPlaceholders(css_string, subst2, NULL); |
524 css_string = ReplaceStringPlaceholders(css_string, subst3, NULL); | 526 css_string = ReplaceStringPlaceholders(css_string, subst3, NULL); |
525 | 527 |
526 new_tab_css_ = new RefCountedBytes; | 528 new_tab_css_ = new RefCountedBytes; |
527 new_tab_css_->data.resize(css_string.size()); | 529 new_tab_css_->data.resize(css_string.size()); |
528 std::copy(css_string.begin(), css_string.end(), | 530 std::copy(css_string.begin(), css_string.end(), |
529 new_tab_css_->data.begin()); | 531 new_tab_css_->data.begin()); |
530 } | 532 } |
OLD | NEW |