Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(239)

Side by Side Diff: ui/webui/jstemplate_builder.h

Issue 14272007: Update the remaining include paths of base/string_piece.h to its new location. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « ui/gfx/platform_font_pango.cc ('k') | ui/webui/web_ui_util.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 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 // This provides some helper methods for building and rendering an 5 // This provides some helper methods for building and rendering an
6 // internal html page. The flow is as follows: 6 // internal html page. The flow is as follows:
7 // - instantiate a builder given a webframe that we're going to render content 7 // - instantiate a builder given a webframe that we're going to render content
8 // into 8 // into
9 // - load the template html and load the jstemplate javascript into the frame 9 // - load the template html and load the jstemplate javascript into the frame
10 // - given a json data object, run the jstemplate javascript which fills in 10 // - given a json data object, run the jstemplate javascript which fills in
11 // template values 11 // template values
12 12
13 #ifndef UI_WEBUI_JSTEMPLATE_BUILDER_H_ 13 #ifndef UI_WEBUI_JSTEMPLATE_BUILDER_H_
14 #define UI_WEBUI_JSTEMPLATE_BUILDER_H_ 14 #define UI_WEBUI_JSTEMPLATE_BUILDER_H_
15 15
16 #include <string> 16 #include <string>
17 17
18 #include "base/string_piece.h" 18 #include "base/strings/string_piece.h"
19 #include "ui/base/ui_export.h" 19 #include "ui/base/ui_export.h"
20 20
21 namespace base { 21 namespace base {
22 class DictionaryValue; 22 class DictionaryValue;
23 } 23 }
24 24
25 namespace webui { 25 namespace webui {
26 26
27 // While an object of this class is in scope, the template builder will output 27 // While an object of this class is in scope, the template builder will output
28 // version 2 html. Version 2 uses load_time_data.js and i18n_template2.js, and 28 // version 2 html. Version 2 uses load_time_data.js and i18n_template2.js, and
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
82 UI_EXPORT void AppendI18nTemplateSourceHtml(std::string* output); 82 UI_EXPORT void AppendI18nTemplateSourceHtml(std::string* output);
83 83
84 // Appends the code that processes the i18n Template with the JSON. You 84 // Appends the code that processes the i18n Template with the JSON. You
85 // should call AppendJsTemplateSourceHtml and AppendJsonHtml before calling 85 // should call AppendJsTemplateSourceHtml and AppendJsonHtml before calling
86 // this. 86 // this.
87 UI_EXPORT void AppendI18nTemplateProcessHtml(std::string* output); 87 UI_EXPORT void AppendI18nTemplateProcessHtml(std::string* output);
88 88
89 } // namespace webui 89 } // namespace webui
90 90
91 #endif // UI_WEBUI_JSTEMPLATE_BUILDER_H_ 91 #endif // UI_WEBUI_JSTEMPLATE_BUILDER_H_
OLDNEW
« no previous file with comments | « ui/gfx/platform_font_pango.cc ('k') | ui/webui/web_ui_util.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698