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/bitmap_header.h" | 12 #include "base/gfx/gdi_util.h" |
13 #include "base/gfx/bitmap_platform_device_win.h" | 13 #include "base/gfx/bitmap_platform_device_win.h" |
14 #include "base/gfx/image_operations.h" | 14 #include "base/gfx/image_operations.h" |
15 #include "base/gfx/native_theme.h" | 15 #include "base/gfx/native_theme.h" |
16 #include "base/gfx/vector_canvas.h" | 16 #include "base/gfx/vector_canvas.h" |
17 #include "base/gfx/png_encoder.h" | 17 #include "base/gfx/png_encoder.h" |
18 #include "base/string_piece.h" | 18 #include "base/string_piece.h" |
19 #include "base/string_util.h" | 19 #include "base/string_util.h" |
20 #include "chrome/app/theme/theme_resources.h" | 20 #include "chrome/app/theme/theme_resources.h" |
21 #include "chrome/common/chrome_switches.h" | 21 #include "chrome/common/chrome_switches.h" |
22 #include "chrome/common/gfx/emf.h" | 22 #include "chrome/common/gfx/emf.h" |
(...skipping 2540 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2563 | 2563 |
2564 if (template_html.empty()) { | 2564 if (template_html.empty()) { |
2565 NOTREACHED() << "unable to load template. ID: " << template_resource_id; | 2565 NOTREACHED() << "unable to load template. ID: " << template_resource_id; |
2566 return ""; | 2566 return ""; |
2567 } | 2567 } |
2568 // "t" is the id of the templates root node. | 2568 // "t" is the id of the templates root node. |
2569 return jstemplate_builder::GetTemplateHtml( | 2569 return jstemplate_builder::GetTemplateHtml( |
2570 template_html, &error_strings, "t"); | 2570 template_html, &error_strings, "t"); |
2571 } | 2571 } |
2572 | 2572 |
OLD | NEW |