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

Unified Diff: third_party/google_input_tools/src/chrome/os/inputview/config/contextlayoututil.js

Issue 1257313003: Update Google Input Tools (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Free up grd resources. Created 5 years, 5 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/config/contextlayoututil.js
diff --git a/third_party/google_input_tools/src/chrome/os/inputview/config/contextlayoututil.js b/third_party/google_input_tools/src/chrome/os/inputview/config/contextlayoututil.js
index 3cc5de100bdd126e30b88ec6d7cc5aef714a6eff..15d2cd7eebddd36cc6c86d5313aa0a3ac8ef71a7 100644
--- a/third_party/google_input_tools/src/chrome/os/inputview/config/contextlayoututil.js
+++ b/third_party/google_input_tools/src/chrome/os/inputview/config/contextlayoututil.js
@@ -13,6 +13,7 @@
//
goog.provide('i18n.input.chrome.inputview.content.ContextlayoutUtil');
+goog.require('i18n.input.chrome.inputview.SpecNodeName');
goog.require('i18n.input.chrome.inputview.content.compact.util');
goog.require('i18n.input.chrome.inputview.content.compact.util.CompactKeysetSpec');
goog.require('i18n.input.chrome.message.ContextType');
@@ -22,6 +23,7 @@ var ContextType = i18n.input.chrome.message.ContextType;
var util = i18n.input.chrome.inputview.content.ContextlayoutUtil;
var compact = i18n.input.chrome.inputview.content.compact.util;
var keysetSpecNode = compact.CompactKeysetSpec;
+var SpecNodeName = i18n.input.chrome.inputview.SpecNodeName;
/**
@@ -40,10 +42,10 @@ util.generateContextLayouts = function(inputTypeToKeysetSpecMap, onLoaded) {
var spec = inputTypeToKeysetSpecMap[inputType];
var data = compact.createCompactData(
spec, 'compactkbd-k-', 'compactkbd-k-key-');
- data['id'] = spec[keysetSpecNode.ID];
- data['showMenuKey'] = false;
- data['noShift'] = true;
- data['onContext'] = inputType;
+ data[SpecNodeName.ID] = spec[keysetSpecNode.ID];
+ data[SpecNodeName.SHOW_MENU_KEY] = false;
+ data[SpecNodeName.NO_SHIFT] = true;
+ data[SpecNodeName.ON_CONTEXT] = inputType;
onLoaded(data);
}
}

Powered by Google App Engine
This is Rietveld 408576698