| OLD | NEW |
| 1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 2012 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/ui/webui/ntp/ntp_resource_cache.h" | 5 #include "chrome/browser/ui/webui/ntp/ntp_resource_cache.h" |
| 6 | 6 |
| 7 #include <string> | 7 #include <string> |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/command_line.h" | 10 #include "base/command_line.h" |
| (...skipping 17 matching lines...) Expand all Loading... |
| 28 #include "chrome/browser/ui/app_list/app_list_util.h" | 28 #include "chrome/browser/ui/app_list/app_list_util.h" |
| 29 #include "chrome/browser/ui/apps/app_info_dialog.h" | 29 #include "chrome/browser/ui/apps/app_info_dialog.h" |
| 30 #include "chrome/browser/ui/bookmarks/bookmark_bar_constants.h" | 30 #include "chrome/browser/ui/bookmarks/bookmark_bar_constants.h" |
| 31 #include "chrome/browser/ui/sync/sync_promo_ui.h" | 31 #include "chrome/browser/ui/sync/sync_promo_ui.h" |
| 32 #include "chrome/browser/ui/webui/app_launcher_login_handler.h" | 32 #include "chrome/browser/ui/webui/app_launcher_login_handler.h" |
| 33 #include "chrome/browser/ui/webui/ntp/app_launcher_handler.h" | 33 #include "chrome/browser/ui/webui/ntp/app_launcher_handler.h" |
| 34 #include "chrome/browser/ui/webui/ntp/new_tab_ui.h" | 34 #include "chrome/browser/ui/webui/ntp/new_tab_ui.h" |
| 35 #include "chrome/common/chrome_switches.h" | 35 #include "chrome/common/chrome_switches.h" |
| 36 #include "chrome/common/pref_names.h" | 36 #include "chrome/common/pref_names.h" |
| 37 #include "chrome/common/url_constants.h" | 37 #include "chrome/common/url_constants.h" |
| 38 #include "chrome/grit/browser_resources.h" |
| 38 #include "chrome/grit/chromium_strings.h" | 39 #include "chrome/grit/chromium_strings.h" |
| 39 #include "chrome/grit/generated_resources.h" | 40 #include "chrome/grit/generated_resources.h" |
| 40 #include "chrome/grit/locale_settings.h" | 41 #include "chrome/grit/locale_settings.h" |
| 42 #include "chrome/grit/theme_resources.h" |
| 41 #include "components/bookmarks/common/bookmark_pref_names.h" | 43 #include "components/bookmarks/common/bookmark_pref_names.h" |
| 42 #include "components/browser_sync/browser/profile_sync_service.h" | 44 #include "components/browser_sync/browser/profile_sync_service.h" |
| 43 #include "components/google/core/browser/google_util.h" | 45 #include "components/google/core/browser/google_util.h" |
| 44 #include "components/prefs/pref_service.h" | 46 #include "components/prefs/pref_service.h" |
| 45 #include "components/signin/core/browser/signin_manager.h" | 47 #include "components/signin/core/browser/signin_manager.h" |
| 46 #include "components/strings/grit/components_strings.h" | 48 #include "components/strings/grit/components_strings.h" |
| 47 #include "content/public/browser/browser_thread.h" | 49 #include "content/public/browser/browser_thread.h" |
| 48 #include "content/public/browser/notification_service.h" | 50 #include "content/public/browser/notification_service.h" |
| 49 #include "content/public/browser/render_process_host.h" | 51 #include "content/public/browser/render_process_host.h" |
| 50 #include "extensions/common/extension.h" | 52 #include "extensions/common/extension.h" |
| 51 #include "extensions/common/extension_urls.h" | 53 #include "extensions/common/extension_urls.h" |
| 52 #include "grit/browser_resources.h" | |
| 53 #include "grit/components_strings.h" | |
| 54 #include "grit/theme_resources.h" | |
| 55 #include "ui/base/l10n/l10n_util.h" | 54 #include "ui/base/l10n/l10n_util.h" |
| 56 #include "ui/base/resource/resource_bundle.h" | 55 #include "ui/base/resource/resource_bundle.h" |
| 57 #include "ui/base/template_expressions.h" | 56 #include "ui/base/template_expressions.h" |
| 58 #include "ui/base/theme_provider.h" | 57 #include "ui/base/theme_provider.h" |
| 59 #include "ui/base/webui/jstemplate_builder.h" | 58 #include "ui/base/webui/jstemplate_builder.h" |
| 60 #include "ui/base/webui/web_ui_util.h" | 59 #include "ui/base/webui/web_ui_util.h" |
| 61 #include "ui/gfx/animation/animation.h" | 60 #include "ui/gfx/animation/animation.h" |
| 62 #include "ui/gfx/color_utils.h" | 61 #include "ui/gfx/color_utils.h" |
| 63 | 62 |
| 64 #if defined(OS_CHROMEOS) | 63 #if defined(OS_CHROMEOS) |
| (...skipping 538 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 603 // Get our template. | 602 // Get our template. |
| 604 static const base::StringPiece new_tab_theme_css( | 603 static const base::StringPiece new_tab_theme_css( |
| 605 ResourceBundle::GetSharedInstance().GetRawDataResource( | 604 ResourceBundle::GetSharedInstance().GetRawDataResource( |
| 606 IDR_NEW_TAB_4_THEME_CSS)); | 605 IDR_NEW_TAB_4_THEME_CSS)); |
| 607 | 606 |
| 608 // Create the string from our template and the replacements. | 607 // Create the string from our template and the replacements. |
| 609 std::string css_string = | 608 std::string css_string = |
| 610 ui::ReplaceTemplateExpressions(new_tab_theme_css, substitutions); | 609 ui::ReplaceTemplateExpressions(new_tab_theme_css, substitutions); |
| 611 new_tab_css_ = base::RefCountedString::TakeString(&css_string); | 610 new_tab_css_ = base::RefCountedString::TakeString(&css_string); |
| 612 } | 611 } |
| OLD | NEW |