OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 // A helper function for using JsTemplate. See jstemplate_builder.h for more | 5 // A helper function for using JsTemplate. See jstemplate_builder.h for more |
6 // info. | 6 // info. |
7 | 7 |
8 #include "ui/base/webui/jstemplate_builder.h" | 8 #include "ui/base/webui/jstemplate_builder.h" |
9 | 9 |
10 #include "base/json/json_file_value_serializer.h" | 10 #include "base/json/json_file_value_serializer.h" |
11 #include "base/json/json_string_value_serializer.h" | 11 #include "base/json/json_string_value_serializer.h" |
12 #include "base/logging.h" | 12 #include "base/logging.h" |
13 #include "base/strings/string_util.h" | 13 #include "base/strings/string_util.h" |
14 #include "grit/webui_resources.h" | |
15 #include "ui/base/layout.h" | 14 #include "ui/base/layout.h" |
16 #include "ui/base/resource/resource_bundle.h" | 15 #include "ui/base/resource/resource_bundle.h" |
| 16 #include "ui/resources/grit/webui_resources.h" |
17 | 17 |
18 namespace { | 18 namespace { |
19 | 19 |
20 // Non-zero when building version 2 templates. See UseVersion2 class. | 20 // Non-zero when building version 2 templates. See UseVersion2 class. |
21 int g_version2 = 0; | 21 int g_version2 = 0; |
22 | 22 |
23 } // namespace | 23 } // namespace |
24 | 24 |
25 namespace webui { | 25 namespace webui { |
26 | 26 |
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
147 NOTREACHED() << "Unable to get i18n process src"; | 147 NOTREACHED() << "Unable to get i18n process src"; |
148 return; | 148 return; |
149 } | 149 } |
150 | 150 |
151 output->append("<script>"); | 151 output->append("<script>"); |
152 output->append(i18n_process_src.data(), i18n_process_src.size()); | 152 output->append(i18n_process_src.data(), i18n_process_src.size()); |
153 output->append("</script>"); | 153 output->append("</script>"); |
154 } | 154 } |
155 | 155 |
156 } // namespace webui | 156 } // namespace webui |
OLD | NEW |