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

Unified Diff: chrome/browser/resources/keyboard/layout_handwriting_vk.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
« no previous file with comments | « chrome/browser/resources/keyboard/ime.js ('k') | chrome/browser/resources/keyboard/main.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resources/keyboard/layout_handwriting_vk.js
diff --git a/chrome/browser/resources/keyboard/layout_handwriting_vk.js b/chrome/browser/resources/keyboard/layout_handwriting_vk.js
index 4ff77cb491fa7ea088455dabc09fcf17310596f1..59778139259ed9c9d3c7399eea991a9d9c995fea 100644
--- a/chrome/browser/resources/keyboard/layout_handwriting_vk.js
+++ b/chrome/browser/resources/keyboard/layout_handwriting_vk.js
@@ -96,7 +96,8 @@ HandwritingCanvas.prototype = {
context.stroke();
canvas.addStroke(coords.x, coords.y);
if (chrome.experimental) {
- chrome.experimental.input.sendHandwritingStroke(canvas.stroke_);
+ chrome.experimental.input.virtualKeyboard.sendHandwritingStroke(
+ canvas.stroke_);
}
canvas.stroke_ = [];
}
@@ -110,8 +111,8 @@ HandwritingCanvas.prototype = {
canvas.ontouchcancel = canvas.onmouseup;
// Clear the canvas when an IME hides the lookup table.
- if (chrome.experimental && chrome.experimental.inputUI) {
- chrome.experimental.inputUI.onUpdateLookupTable.addListener(
+ if (chrome.experimental && chrome.experimental.input.ui) {
+ chrome.experimental.input.ui.onUpdateLookupTable.addListener(
function(table) {
if (!table.visible) {
canvas.clear();
@@ -186,7 +187,7 @@ HandwritingCanvas.prototype = {
var context = this.getContext('2d');
context.clearRect(0, 0, this.width, this.height);
if (chrome.experimental) {
- chrome.experimental.input.cancelHandwritingStrokes();
+ chrome.experimental.input.virtualKeyboard.cancelHandwritingStrokes();
}
},
« no previous file with comments | « chrome/browser/resources/keyboard/ime.js ('k') | chrome/browser/resources/keyboard/main.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698