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 276 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
287 localized_strings.SetString("appsettings", | 287 localized_strings.SetString("appsettings", |
288 l10n_util::GetStringUTF16(IDS_NEW_TAB_APP_SETTINGS)); | 288 l10n_util::GetStringUTF16(IDS_NEW_TAB_APP_SETTINGS)); |
289 localized_strings.SetString("appuninstall", | 289 localized_strings.SetString("appuninstall", |
290 l10n_util::GetStringUTF16(IDS_NEW_TAB_APP_UNINSTALL)); | 290 l10n_util::GetStringUTF16(IDS_NEW_TAB_APP_UNINSTALL)); |
291 localized_strings.SetString("appoptions", | 291 localized_strings.SetString("appoptions", |
292 l10n_util::GetStringUTF16(IDS_NEW_TAB_APP_OPTIONS)); | 292 l10n_util::GetStringUTF16(IDS_NEW_TAB_APP_OPTIONS)); |
293 localized_strings.SetString("applaunchtypepinned", | 293 localized_strings.SetString("applaunchtypepinned", |
294 l10n_util::GetStringUTF16(IDS_APP_CONTEXT_MENU_OPEN_PINNED)); | 294 l10n_util::GetStringUTF16(IDS_APP_CONTEXT_MENU_OPEN_PINNED)); |
295 localized_strings.SetString("applaunchtyperegular", | 295 localized_strings.SetString("applaunchtyperegular", |
296 l10n_util::GetStringUTF16(IDS_APP_CONTEXT_MENU_OPEN_REGULAR)); | 296 l10n_util::GetStringUTF16(IDS_APP_CONTEXT_MENU_OPEN_REGULAR)); |
| 297 localized_strings.SetString("applaunchtypewindow", |
| 298 l10n_util::GetStringUTF16(IDS_APP_CONTEXT_MENU_OPEN_WINDOW)); |
297 localized_strings.SetString("applaunchtypefullscreen", | 299 localized_strings.SetString("applaunchtypefullscreen", |
298 l10n_util::GetStringUTF16(IDS_APP_CONTEXT_MENU_OPEN_FULLSCREEN)); | 300 l10n_util::GetStringUTF16(IDS_APP_CONTEXT_MENU_OPEN_FULLSCREEN)); |
299 localized_strings.SetString("web_store_title", | 301 localized_strings.SetString("web_store_title", |
300 l10n_util::GetStringUTF16(IDS_EXTENSION_WEB_STORE_TITLE)); | 302 l10n_util::GetStringUTF16(IDS_EXTENSION_WEB_STORE_TITLE)); |
301 localized_strings.SetString("web_store_url", | 303 localized_strings.SetString("web_store_url", |
302 GetUrlWithLang(GURL(Extension::ChromeStoreLaunchURL()))); | 304 GetUrlWithLang(GURL(Extension::ChromeStoreLaunchURL()))); |
303 localized_strings.SetString("appspromohide", | 305 localized_strings.SetString("appspromohide", |
304 l10n_util::GetStringUTF16(IDS_APPS_PROMO_HIDE)); | 306 l10n_util::GetStringUTF16(IDS_APPS_PROMO_HIDE)); |
305 localized_strings.SetString("appspromoheader", | 307 localized_strings.SetString("appspromoheader", |
306 l10n_util::GetStringUTF16(IDS_APPS_PROMO_HEADER)); | 308 l10n_util::GetStringUTF16(IDS_APPS_PROMO_HEADER)); |
(...skipping 198 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
505 std::string css_string; | 507 std::string css_string; |
506 css_string = ReplaceStringPlaceholders(new_tab_theme_css, subst, NULL); | 508 css_string = ReplaceStringPlaceholders(new_tab_theme_css, subst, NULL); |
507 css_string = ReplaceStringPlaceholders(css_string, subst2, NULL); | 509 css_string = ReplaceStringPlaceholders(css_string, subst2, NULL); |
508 css_string = ReplaceStringPlaceholders(css_string, subst3, NULL); | 510 css_string = ReplaceStringPlaceholders(css_string, subst3, NULL); |
509 | 511 |
510 new_tab_css_ = new RefCountedBytes; | 512 new_tab_css_ = new RefCountedBytes; |
511 new_tab_css_->data.resize(css_string.size()); | 513 new_tab_css_->data.resize(css_string.size()); |
512 std::copy(css_string.begin(), css_string.end(), | 514 std::copy(css_string.begin(), css_string.end(), |
513 new_tab_css_->data.begin()); | 515 new_tab_css_->data.begin()); |
514 } | 516 } |
OLD | NEW |