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

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

Issue 1046933003: Updates google-input-tools. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 9 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/keysetview.js
diff --git a/third_party/google_input_tools/src/chrome/os/inputview/elements/content/keysetview.js b/third_party/google_input_tools/src/chrome/os/inputview/elements/content/keysetview.js
index b7abdb7407c14a83b4f5530e4c386db46b977c59..465528af2d75ab5e7d2c1310689d2e7af2f0df2c 100644
--- a/third_party/google_input_tools/src/chrome/os/inputview/elements/content/keysetview.js
+++ b/third_party/google_input_tools/src/chrome/os/inputview/elements/content/keysetview.js
@@ -20,6 +20,7 @@ goog.require('goog.style');
goog.require('goog.ui.Container');
goog.require('i18n.input.chrome.inputview.ConditionName');
goog.require('i18n.input.chrome.inputview.Css');
+goog.require('i18n.input.chrome.inputview.GlobalFlags');
goog.require('i18n.input.chrome.inputview.SpecNodeName');
goog.require('i18n.input.chrome.inputview.elements.ElementType');
goog.require('i18n.input.chrome.inputview.elements.content.BackspaceKey');
@@ -30,6 +31,7 @@ goog.require('i18n.input.chrome.inputview.elements.content.CompactKey');
goog.require('i18n.input.chrome.inputview.elements.content.CompactKeyModel');
goog.require('i18n.input.chrome.inputview.elements.content.EmojiKey');
goog.require('i18n.input.chrome.inputview.elements.content.EnSwitcherKey');
+goog.require('i18n.input.chrome.inputview.elements.content.EnterKey');
goog.require('i18n.input.chrome.inputview.elements.content.FunctionalKey');
goog.require('i18n.input.chrome.inputview.elements.content.KeyboardView');
goog.require('i18n.input.chrome.inputview.elements.content.MenuKey');
@@ -237,6 +239,14 @@ KeysetView.prototype.spaceKey;
/**
+ * The backspace key.
+ *
+ * @type {!content.BackspaceKey}
+ */
+KeysetView.prototype.backspaceKey;
+
+
+/**
* The outer height of the view.
*
* @protected {number}
@@ -470,9 +480,6 @@ KeysetView.prototype.createElement_ = function(spec, opt_eventTarget) {
SpecNodeName.WIDTH_IN_WEIGHT];
var heightInWeight = spec[
SpecNodeName.HEIGHT_IN_WEIGHT];
- var width = spec[SpecNodeName.WIDTH];
- var height = spec[SpecNodeName.HEIGHT];
- var padding = spec[SpecNodeName.PADDING];
var elem = null;
switch (type) {
case ElementType.SOFT_KEY_VIEW:
@@ -618,8 +625,11 @@ KeysetView.prototype.createKey_ = function(spec, hasAltGrCharacterInTheKeyset) {
break;
case ElementType.BACKSPACE_KEY:
elem = new content.BackspaceKey(id, type, name, iconCssClass);
+ this.backspaceKey = elem;
break;
case ElementType.ENTER_KEY:
+ elem = new content.EnterKey(id, iconCssClass);
+ break;
case ElementType.TAB_KEY:
case ElementType.ARROW_UP:
case ElementType.ARROW_DOWN:

Powered by Google App Engine
This is Rietveld 408576698