Change document.title used for keyboard overlay

The window title should be "Settings - Keyboard settings", but that
prefix is missing.

This doesn't change the title display within the overlay itself
("Keyboard settings").

R=stevenjb@chromium.org

Review URL: https://codereview.chromium.org/442583002

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@287702 0039d316-1c4b-4281-b951-d872f2087c98
parent a210052d
<div id="keyboard-overlay" class="page" hidden> <div id="keyboard-overlay" class="page" hidden>
<div class="close-button"></div> <div class="close-button"></div>
<h1 i18n-content="keyboardOverlayTitle"></h1> <h1 i18n-content="keyboardOverlay"></h1>
<div class="content-area"> <div class="content-area">
<table class="option-control-table"> <table class="option-control-table">
<tr> <tr>
......
...@@ -30,7 +30,7 @@ cr.define('options', function() { ...@@ -30,7 +30,7 @@ cr.define('options', function() {
*/ */
function KeyboardOverlay() { function KeyboardOverlay() {
options.SettingsDialog.call(this, 'keyboard-overlay', options.SettingsDialog.call(this, 'keyboard-overlay',
loadTimeData.getString('keyboardOverlayTitle'), loadTimeData.getString('keyboardOverlayTabTitle'),
'keyboard-overlay', 'keyboard-overlay',
$('keyboard-confirm'), $('keyboard-cancel')); $('keyboard-confirm'), $('keyboard-cancel'));
} }
......
...@@ -56,9 +56,9 @@ KeyboardHandler::~KeyboardHandler() { ...@@ -56,9 +56,9 @@ KeyboardHandler::~KeyboardHandler() {
void KeyboardHandler::GetLocalizedValues( void KeyboardHandler::GetLocalizedValues(
base::DictionaryValue* localized_strings) { base::DictionaryValue* localized_strings) {
DCHECK(localized_strings); DCHECK(localized_strings);
RegisterTitle(localized_strings, "keyboardOverlay",
IDS_OPTIONS_KEYBOARD_OVERLAY_TITLE);
localized_strings->SetString("keyboardOverlayTitle",
l10n_util::GetStringUTF16(IDS_OPTIONS_KEYBOARD_OVERLAY_TITLE));
localized_strings->SetString("remapSearchKeyToContent", localized_strings->SetString("remapSearchKeyToContent",
l10n_util::GetStringUTF16( l10n_util::GetStringUTF16(
IDS_OPTIONS_SETTINGS_LANGUAGES_KEY_SEARCH_LABEL)); IDS_OPTIONS_SETTINGS_LANGUAGES_KEY_SEARCH_LABEL));
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment