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/bitmap_platform_device_win.h" | |
14 #include "base/gfx/image_operations.h" | 13 #include "base/gfx/image_operations.h" |
15 #include "base/gfx/native_theme.h" | 14 #include "base/gfx/native_theme.h" |
16 #include "base/gfx/vector_canvas.h" | |
17 #include "base/gfx/png_encoder.h" | 15 #include "base/gfx/png_encoder.h" |
18 #include "base/string_piece.h" | 16 #include "base/string_piece.h" |
19 #include "base/string_util.h" | 17 #include "base/string_util.h" |
20 #include "chrome/app/theme/theme_resources.h" | 18 #include "chrome/app/theme/theme_resources.h" |
21 #include "chrome/common/chrome_switches.h" | 19 #include "chrome/common/chrome_switches.h" |
22 #include "chrome/common/gfx/emf.h" | 20 #include "chrome/common/gfx/emf.h" |
23 #include "chrome/common/gfx/favicon_size.h" | 21 #include "chrome/common/gfx/favicon_size.h" |
24 #include "chrome/common/gfx/color_utils.h" | 22 #include "chrome/common/gfx/color_utils.h" |
25 #include "chrome/common/jstemplate_builder.h" | 23 #include "chrome/common/jstemplate_builder.h" |
26 #include "chrome/common/l10n_util.h" | 24 #include "chrome/common/l10n_util.h" |
27 #include "chrome/common/page_zoom.h" | 25 #include "chrome/common/page_zoom.h" |
28 #include "chrome/common/resource_bundle.h" | 26 #include "chrome/common/resource_bundle.h" |
29 #include "chrome/common/thumbnail_score.h" | 27 #include "chrome/common/thumbnail_score.h" |
30 #include "chrome/common/chrome_plugin_lib.h" | 28 #include "chrome/common/chrome_plugin_lib.h" |
31 #include "chrome/renderer/about_handler.h" | 29 #include "chrome/renderer/about_handler.h" |
32 #include "chrome/renderer/chrome_plugin_host.h" | 30 #include "chrome/renderer/chrome_plugin_host.h" |
33 #include "chrome/renderer/debug_message_handler.h" | 31 #include "chrome/renderer/debug_message_handler.h" |
34 #include "chrome/renderer/greasemonkey_slave.h" | 32 #include "chrome/renderer/greasemonkey_slave.h" |
35 #include "chrome/renderer/localized_error.h" | 33 #include "chrome/renderer/localized_error.h" |
36 #include "chrome/renderer/renderer_resources.h" | 34 #include "chrome/renderer/renderer_resources.h" |
37 #include "chrome/renderer/visitedlink_slave.h" | 35 #include "chrome/renderer/visitedlink_slave.h" |
38 #include "chrome/renderer/webplugin_delegate_proxy.h" | 36 #include "chrome/renderer/webplugin_delegate_proxy.h" |
39 #include "chrome/views/message_box_view.h" | 37 #include "chrome/views/message_box_view.h" |
40 #include "net/base/escape.h" | 38 #include "net/base/escape.h" |
41 #include "net/base/net_errors.h" | 39 #include "net/base/net_errors.h" |
| 40 #include "skia/ext/bitmap_platform_device.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" |
51 #include "webkit/glue/webframe.h" | 51 #include "webkit/glue/webframe.h" |
(...skipping 2674 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2726 template_resource_id)); | 2726 template_resource_id)); |
2727 | 2727 |
2728 if (template_html.empty()) { | 2728 if (template_html.empty()) { |
2729 NOTREACHED() << "unable to load template. ID: " << template_resource_id; | 2729 NOTREACHED() << "unable to load template. ID: " << template_resource_id; |
2730 return ""; | 2730 return ""; |
2731 } | 2731 } |
2732 // "t" is the id of the templates root node. | 2732 // "t" is the id of the templates root node. |
2733 return jstemplate_builder::GetTemplateHtml( | 2733 return jstemplate_builder::GetTemplateHtml( |
2734 template_html, &error_strings, "t"); | 2734 template_html, &error_strings, "t"); |
2735 } | 2735 } |
OLD | NEW |