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

Unified Diff: chrome/browser/resources/options/language_options.js

Issue 14197006: Open input method configuration page in new tab page. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix typo 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/browser/ui/webui/options/chromeos/cros_language_options_handler.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resources/options/language_options.js
diff --git a/chrome/browser/resources/options/language_options.js b/chrome/browser/resources/options/language_options.js
index 1e5590a2fed60f7eed5c0ede97ba15506db98043..296a9c8e0cb47731112737600ee6031dfe755965 100644
--- a/chrome/browser/resources/options/language_options.js
+++ b/chrome/browser/resources/options/language_options.js
@@ -296,6 +296,15 @@ cr.define('options', function() {
element.appendChild(button);
}
+ if (inputMethod.optionsPage) {
+ var button = document.createElement('button');
+ button.textContent = loadTimeData.getString('configure');
+ button.onclick = function(e) {
+ window.open(inputMethod.optionsPage);
+ };
+ element.appendChild(button);
+ }
+
// Listen to user clicks.
input.addEventListener('click',
this.handleCheckboxClick_.bind(this));
« no previous file with comments | « no previous file | chrome/browser/ui/webui/options/chromeos/cros_language_options_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698