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

Unified Diff: chrome/browser/resources/keyboard/ime.js

Issue 8570026: Rearrange the input APIs into more suitable groupings. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Code Review Created 9 years, 1 month 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: chrome/browser/resources/keyboard/ime.js
diff --git a/chrome/browser/resources/keyboard/ime.js b/chrome/browser/resources/keyboard/ime.js
index 2c94e051b1ed8d28264defb3ad5de41cc78a27c2..3652bf0a7262129ea746f686d0f5ee823aae6723 100644
--- a/chrome/browser/resources/keyboard/ime.js
+++ b/chrome/browser/resources/keyboard/ime.js
@@ -206,7 +206,7 @@ ImeUi.prototype = {
* @return {void}
*/
candidateClicked: function(index) {
- chrome.experimental.inputUI.candidateClicked(index, 1);
+ chrome.experimental.input.ui.candidateClicked(index, 1);
},
/**
@@ -214,7 +214,7 @@ ImeUi.prototype = {
* @return {void}
*/
pageUp: function() {
- chrome.experimental.inputUI.pageUp();
+ chrome.experimental.input.ui.pageUp();
},
/**
@@ -222,7 +222,7 @@ ImeUi.prototype = {
* @return {void}
*/
pageDown: function() {
- chrome.experimental.inputUI.pageDown();
+ chrome.experimental.input.ui.pageDown();
},
};
@@ -241,7 +241,7 @@ function initIme(element) {
try {
// Register self to receive input method UI events.
- chrome.experimental.inputUI.register();
+ chrome.experimental.input.ui.register();
} catch (e) {
// The ime is not enabled in chromium.
return;
@@ -257,15 +257,15 @@ function initIme(element) {
element.appendChild(clearingDiv);
// Install events handlers.
- chrome.experimental.inputUI.onSetCursorLocation.addListener(
+ chrome.experimental.input.ui.onSetCursorLocation.addListener(
function(x, y, w, h) {
imeui.setCursorLocation(x, y, w, h);
});
- chrome.experimental.inputUI.onUpdateAuxiliaryText.addListener(
+ chrome.experimental.input.ui.onUpdateAuxiliaryText.addListener(
function(text) {
imeui.updateAuxiliaryText(text);
});
- chrome.experimental.inputUI.onUpdateLookupTable.addListener(
+ chrome.experimental.input.ui.onUpdateLookupTable.addListener(
function(table) {
imeui.updateLookupTable(table);
});
« no previous file with comments | « chrome/browser/resources/keyboard/common.js ('k') | chrome/browser/resources/keyboard/layout_handwriting_vk.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698