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

Unified Diff: ios/web/public/web_ui_ios_data_source.h

Issue 2952743002: Add support for $i18n{} localized strings to ios/web. (Closed)
Patch Set: Respond to comments. Created 3 years, 6 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 side-by-side diff with in-line comments
Download patch
Index: ios/web/public/web_ui_ios_data_source.h
diff --git a/ios/web/public/web_ui_ios_data_source.h b/ios/web/public/web_ui_ios_data_source.h
index 8feebb25b1f7ecff82d0057abb92707975ac3639..edfcd8ab521e8cad651a83a8583b72fd4ba165a0 100644
--- a/ios/web/public/web_ui_ios_data_source.h
+++ b/ios/web/public/web_ui_ios_data_source.h
@@ -9,6 +9,10 @@
#include "base/strings/string16.h"
#include "base/supports_user_data.h"
+namespace base {
+class DictionaryValue;
+}
+
namespace web {
class BrowserState;
@@ -34,6 +38,9 @@ class WebUIIOSDataSource : public base::SupportsUserData {
// dictionary.
virtual void AddLocalizedString(const std::string& name, int ids) = 0;
+ virtual void AddLocalizedStrings(
+ const base::DictionaryValue& localized_strings) = 0;
+
// Adds a boolean keyed to its name to our dictionary.
virtual void AddBoolean(const std::string& name, bool value) = 0;
« no previous file with comments | « no previous file | ios/web/webui/web_ui_ios_data_source_impl.h » ('j') | ios/web/webui/web_ui_ios_data_source_impl.mm » ('J')

Powered by Google App Engine
This is Rietveld 408576698