diff options
author | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2020-10-12 14:27:29 +0200 |
---|---|---|
committer | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2020-10-13 09:35:20 +0000 |
commit | c30a6232df03e1efbd9f3b226777b07e087a1122 (patch) | |
tree | e992f45784689f373bcc38d1b79a239ebe17ee23 /chromium/ui/base/template_expressions.h | |
parent | 7b5b123ac58f58ffde0f4f6e488bcd09aa4decd3 (diff) | |
download | qtwebengine-chromium-85-based.tar.gz |
BASELINE: Update Chromium to 85.0.4183.14085-based
Change-Id: Iaa42f4680837c57725b1344f108c0196741f6057
Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
Diffstat (limited to 'chromium/ui/base/template_expressions.h')
-rw-r--r-- | chromium/ui/base/template_expressions.h | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/chromium/ui/base/template_expressions.h b/chromium/ui/base/template_expressions.h index a12f5b2fad8..470d54b3734 100644 --- a/chromium/ui/base/template_expressions.h +++ b/chromium/ui/base/template_expressions.h @@ -11,8 +11,8 @@ #include <map> #include <string> +#include "base/component_export.h" #include "base/strings/string_piece.h" -#include "ui/base/ui_base_export.h" namespace base { class DictionaryValue; @@ -26,14 +26,16 @@ typedef std::map<const std::string, std::string> TemplateReplacements; // Convert a dictionary to a replacement map. This helper function is to assist // migration to using TemplateReplacements directly (which is preferred). // TODO(dschuyler): remove this function by using TemplateReplacements directly. -UI_BASE_EXPORT void TemplateReplacementsFromDictionaryValue( +COMPONENT_EXPORT(UI_BASE) +void TemplateReplacementsFromDictionaryValue( const base::DictionaryValue& dictionary, TemplateReplacements* replacements); // Replace $i18n*{foo} in the format string with the value for the foo key in // |replacements|. If the key is not found in the |replacements| that item will // be unaltered. -UI_BASE_EXPORT std::string ReplaceTemplateExpressions( +COMPONENT_EXPORT(UI_BASE) +std::string ReplaceTemplateExpressions( base::StringPiece source, const TemplateReplacements& replacements, bool skip_unexpected_placeholder_check = false); @@ -51,10 +53,10 @@ UI_BASE_EXPORT std::string ReplaceTemplateExpressions( // backticks or "${" within the HTML string). // Note: Currently, this only supports the legacy Polymer syntax, i.e.: // _template: html` ... `, -UI_BASE_EXPORT bool ReplaceTemplateExpressionsInJS( - base::StringPiece source, - const TemplateReplacements& replacements, - std::string* output); +COMPONENT_EXPORT(UI_BASE) +bool ReplaceTemplateExpressionsInJS(base::StringPiece source, + const TemplateReplacements& replacements, + std::string* output); } // namespace ui |