| OLD | NEW |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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/renderer/render_view.h" | 5 #include "chrome/renderer/render_view.h" |
| 6 | 6 |
| 7 #include <algorithm> | 7 #include <algorithm> |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| 11 #include "base/command_line.h" | 11 #include "base/command_line.h" |
| 12 #include "base/gfx/gdi_util.h" | 12 #include "base/gfx/gdi_util.h" |
| 13 #include "base/gfx/image_operations.h" | |
| 14 #include "base/gfx/native_theme.h" | 13 #include "base/gfx/native_theme.h" |
| 15 #include "base/gfx/png_encoder.h" | 14 #include "base/gfx/png_encoder.h" |
| 16 #include "base/string_piece.h" | 15 #include "base/string_piece.h" |
| 17 #include "base/string_util.h" | 16 #include "base/string_util.h" |
| 18 #include "chrome/app/theme/theme_resources.h" | 17 #include "chrome/app/theme/theme_resources.h" |
| 19 #include "chrome/common/chrome_switches.h" | 18 #include "chrome/common/chrome_switches.h" |
| 20 #include "chrome/common/gfx/emf.h" | 19 #include "chrome/common/gfx/emf.h" |
| 21 #include "chrome/common/gfx/favicon_size.h" | 20 #include "chrome/common/gfx/favicon_size.h" |
| 22 #include "chrome/common/gfx/color_utils.h" | 21 #include "chrome/common/gfx/color_utils.h" |
| 23 #include "chrome/common/jstemplate_builder.h" | 22 #include "chrome/common/jstemplate_builder.h" |
| 24 #include "chrome/common/l10n_util.h" | 23 #include "chrome/common/l10n_util.h" |
| 25 #include "chrome/common/page_zoom.h" | 24 #include "chrome/common/page_zoom.h" |
| 26 #include "chrome/common/resource_bundle.h" | 25 #include "chrome/common/resource_bundle.h" |
| 27 #include "chrome/common/thumbnail_score.h" | 26 #include "chrome/common/thumbnail_score.h" |
| 28 #include "chrome/common/chrome_plugin_lib.h" | 27 #include "chrome/common/chrome_plugin_lib.h" |
| 29 #include "chrome/renderer/about_handler.h" | 28 #include "chrome/renderer/about_handler.h" |
| 30 #include "chrome/renderer/chrome_plugin_host.h" | 29 #include "chrome/renderer/chrome_plugin_host.h" |
| 31 #include "chrome/renderer/debug_message_handler.h" | 30 #include "chrome/renderer/debug_message_handler.h" |
| 32 #include "chrome/renderer/greasemonkey_slave.h" | 31 #include "chrome/renderer/greasemonkey_slave.h" |
| 33 #include "chrome/renderer/localized_error.h" | 32 #include "chrome/renderer/localized_error.h" |
| 34 #include "chrome/renderer/renderer_resources.h" | 33 #include "chrome/renderer/renderer_resources.h" |
| 35 #include "chrome/renderer/visitedlink_slave.h" | 34 #include "chrome/renderer/visitedlink_slave.h" |
| 36 #include "chrome/renderer/webplugin_delegate_proxy.h" | 35 #include "chrome/renderer/webplugin_delegate_proxy.h" |
| 37 #include "chrome/views/message_box_view.h" | 36 #include "chrome/views/message_box_view.h" |
| 38 #include "net/base/escape.h" | 37 #include "net/base/escape.h" |
| 39 #include "net/base/net_errors.h" | 38 #include "net/base/net_errors.h" |
| 40 #include "skia/ext/bitmap_platform_device.h" | 39 #include "skia/ext/bitmap_platform_device.h" |
| 40 #include "skia/ext/image_operations.h" |
| 41 #include "skia/ext/vector_canvas.h" | 41 #include "skia/ext/vector_canvas.h" |
| 42 #include "webkit/default_plugin/default_plugin_shared.h" | 42 #include "webkit/default_plugin/default_plugin_shared.h" |
| 43 #include "webkit/glue/dom_operations.h" | 43 #include "webkit/glue/dom_operations.h" |
| 44 #include "webkit/glue/dom_serializer.h" | 44 #include "webkit/glue/dom_serializer.h" |
| 45 #include "webkit/glue/password_form.h" | 45 #include "webkit/glue/password_form.h" |
| 46 #include "webkit/glue/plugins/plugin_list.h" | 46 #include "webkit/glue/plugins/plugin_list.h" |
| 47 #include "webkit/glue/searchable_form_data.h" | 47 #include "webkit/glue/searchable_form_data.h" |
| 48 #include "webkit/glue/webdatasource.h" | 48 #include "webkit/glue/webdatasource.h" |
| 49 #include "webkit/glue/webdropdata.h" | 49 #include "webkit/glue/webdropdata.h" |
| 50 #include "webkit/glue/weberror.h" | 50 #include "webkit/glue/weberror.h" |
| (...skipping 2688 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2739 template_resource_id)); | 2739 template_resource_id)); |
| 2740 | 2740 |
| 2741 if (template_html.empty()) { | 2741 if (template_html.empty()) { |
| 2742 NOTREACHED() << "unable to load template. ID: " << template_resource_id; | 2742 NOTREACHED() << "unable to load template. ID: " << template_resource_id; |
| 2743 return ""; | 2743 return ""; |
| 2744 } | 2744 } |
| 2745 // "t" is the id of the templates root node. | 2745 // "t" is the id of the templates root node. |
| 2746 return jstemplate_builder::GetTemplateHtml( | 2746 return jstemplate_builder::GetTemplateHtml( |
| 2747 template_html, &error_strings, "t"); | 2747 template_html, &error_strings, "t"); |
| 2748 } | 2748 } |
| OLD | NEW |