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

Side by Side Diff: chrome/browser/ui/webui/settings/md_settings_localized_strings_provider.cc

Issue 1380743003: [MD settings] adding web content settings strings (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: changed case of page title Created 5 years, 2 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
« no previous file with comments | « chrome/app/settings_strings.grdp ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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/browser/ui/webui/settings/md_settings_localized_strings_provide r.h" 5 #include "chrome/browser/ui/webui/settings/md_settings_localized_strings_provide r.h"
6 6
7 #include "base/strings/utf_string_conversions.h" 7 #include "base/strings/utf_string_conversions.h"
8 #include "chrome/browser/profiles/profile.h" 8 #include "chrome/browser/profiles/profile.h"
9 #include "chrome/browser/ui/webui/policy_indicator_localized_strings_provider.h" 9 #include "chrome/browser/ui/webui/policy_indicator_localized_strings_provider.h"
10 #include "chrome/common/url_constants.h" 10 #include "chrome/common/url_constants.h"
(...skipping 514 matching lines...) Expand 10 before | Expand all | Expand 10 after
525 html_source->AddLocalizedString("supervisedUsersLabel", 525 html_source->AddLocalizedString("supervisedUsersLabel",
526 IDS_SETTINGS_USERS_SUPERVISED_USERS_LABEL); 526 IDS_SETTINGS_USERS_SUPERVISED_USERS_LABEL);
527 html_source->AddLocalizedString("showOnSigninLabel", 527 html_source->AddLocalizedString("showOnSigninLabel",
528 IDS_SETTINGS_USERS_SHOW_ON_SIGNIN_LABEL); 528 IDS_SETTINGS_USERS_SHOW_ON_SIGNIN_LABEL);
529 html_source->AddLocalizedString("restrictSigninLabel", 529 html_source->AddLocalizedString("restrictSigninLabel",
530 IDS_SETTINGS_USERS_RESTRICT_SIGNIN_LABEL); 530 IDS_SETTINGS_USERS_RESTRICT_SIGNIN_LABEL);
531 html_source->AddLocalizedString("addUsersLabel", 531 html_source->AddLocalizedString("addUsersLabel",
532 IDS_SETTINGS_USERS_ADD_USERS_LABEL); 532 IDS_SETTINGS_USERS_ADD_USERS_LABEL);
533 } 533 }
534 534
535 void AddWebContentStrings(content::WebUIDataSource* html_source) {
536 html_source->AddLocalizedString("webContent", IDS_SETTINGS_WEB_CONTENT);
537 html_source->AddLocalizedString("pageZoom", IDS_SETTINGS_PAGE_ZOOM_LABEL);
538 html_source->AddLocalizedString("fontSize", IDS_SETTINGS_FONT_SIZE_LABEL);
539 html_source->AddLocalizedString("verySmall", IDS_SETTINGS_VERY_SMALL_FONT);
540 html_source->AddLocalizedString("small", IDS_SETTINGS_SMALL_FONT);
541 html_source->AddLocalizedString("medium", IDS_SETTINGS_MEDIUM_FONT);
542 html_source->AddLocalizedString("large", IDS_SETTINGS_LARGE_FONT);
543 html_source->AddLocalizedString("veryLarge", IDS_SETTINGS_VERY_LARGE_FONT);
544 html_source->AddLocalizedString("custom", IDS_SETTINGS_CUSTOM);
545 html_source->AddLocalizedString("customizeFonts",
546 IDS_SETTINGS_CUSTOMIZE_FONTS);
547 html_source->AddLocalizedString("fontsAndEncoding",
548 IDS_SETTINGS_FONTS_AND_ENCODING);
549 html_source->AddLocalizedString("standardFont",
550 IDS_SETTINGS_STANDARD_FONT_LABEL);
551 html_source->AddLocalizedString("serifFont", IDS_SETTINGS_SERIF_FONT_LABEL);
552 html_source->AddLocalizedString("sansSerifFont",
553 IDS_SETTINGS_SANS_SERIF_FONT_LABEL);
554 html_source->AddLocalizedString("fixedWidthFont",
555 IDS_SETTINGS_FIXED_WIDTH_FONT_LABEL);
556 html_source->AddLocalizedString("minimumFont",
557 IDS_SETTINGS_MINIMUM_FONT_SIZE_LABEL);
558 html_source->AddLocalizedString("encoding", IDS_SETTINGS_ENCODING_LABEL);
559 html_source->AddLocalizedString("tiny", IDS_SETTINGS_TINY_FONT_SIZE);
560 html_source->AddLocalizedString("huge", IDS_SETTINGS_HUGE_FONT_SIZE);
561 html_source->AddLocalizedString("loremIpsum", IDS_SETTINGS_LOREM_IPSUM);
562 html_source->AddLocalizedString("loading", IDS_SETTINGS_LOADING);
563 html_source->AddLocalizedString("advancedFontSettings",
564 IDS_SETTINGS_ADVANCED_FONT_SETTINGS);
565 }
566
535 } // namespace 567 } // namespace
536 568
537 namespace settings { 569 namespace settings {
538 570
539 void AddLocalizedStrings(content::WebUIDataSource* html_source, 571 void AddLocalizedStrings(content::WebUIDataSource* html_source,
540 Profile* profile) { 572 Profile* profile) {
541 AddCommonStrings(html_source); 573 AddCommonStrings(html_source);
542 574
543 #if defined(OS_CHROMEOS) 575 #if defined(OS_CHROMEOS)
544 AddA11yStrings(html_source); 576 AddA11yStrings(html_source);
(...skipping 14 matching lines...) Expand all
559 AddOnStartupStrings(html_source); 591 AddOnStartupStrings(html_source);
560 AddPrivacyStrings(html_source); 592 AddPrivacyStrings(html_source);
561 AddSearchEnginesStrings(html_source); 593 AddSearchEnginesStrings(html_source);
562 AddSearchStrings(html_source); 594 AddSearchStrings(html_source);
563 #if !defined(OS_CHROMEOS) 595 #if !defined(OS_CHROMEOS)
564 AddSigninSettingsStrings(html_source); 596 AddSigninSettingsStrings(html_source);
565 #endif 597 #endif
566 AddSiteSettingsStrings(html_source); 598 AddSiteSettingsStrings(html_source);
567 AddSyncStrings(html_source); 599 AddSyncStrings(html_source);
568 AddUsersStrings(html_source); 600 AddUsersStrings(html_source);
601 AddWebContentStrings(html_source);
569 602
570 policy_indicator::AddLocalizedStrings(html_source); 603 policy_indicator::AddLocalizedStrings(html_source);
571 604
572 html_source->SetJsonPath(kLocalizedStringsFile); 605 html_source->SetJsonPath(kLocalizedStringsFile);
573 } 606 }
574 607
575 } // namespace settings 608 } // namespace settings
OLDNEW
« no previous file with comments | « chrome/app/settings_strings.grdp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698