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

Unified Diff: third_party/google_input_tools/src/chrome/os/inputview/elements/content/switcherkey.js

Issue 899673003: Uprev Google Input Tools. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 11 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: third_party/google_input_tools/src/chrome/os/inputview/elements/content/switcherkey.js
diff --git a/third_party/google_input_tools/src/chrome/os/inputview/elements/content/switcherkey.js b/third_party/google_input_tools/src/chrome/os/inputview/elements/content/switcherkey.js
index 978887ed005b5519bcff230befb0c5e730ed5141..9aa0fedc0859741a24cdc686997fac1de511679a 100644
--- a/third_party/google_input_tools/src/chrome/os/inputview/elements/content/switcherkey.js
+++ b/third_party/google_input_tools/src/chrome/os/inputview/elements/content/switcherkey.js
@@ -13,12 +13,14 @@
//
goog.provide('i18n.input.chrome.inputview.elements.content.SwitcherKey');
+goog.require('goog.dom.classlist');
+goog.require('i18n.input.chrome.inputview.Css');
goog.require('i18n.input.chrome.inputview.elements.content.FunctionalKey');
-
goog.scope(function() {
var FunctionalKey = i18n.input.chrome.inputview.elements.content.FunctionalKey;
+var Css = i18n.input.chrome.inputview.Css;
@@ -72,6 +74,10 @@ SwitcherKey.prototype.createDom = function() {
goog.base(this, 'createDom');
this.setAriaLabel(this.getChromeVoxMessage());
+
+ if (this.textElem) {
+ goog.dom.classlist.add(this.getElement(), Css.SWITCHER_KEY_NAME);
+ }
};

Powered by Google App Engine
This is Rietveld 408576698