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

Unified Diff: ui/keyboard/resources/api_adapter.js

Issue 730573002: Remove dead code for system VK. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 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 | « no previous file | ui/keyboard/resources/constants.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/keyboard/resources/api_adapter.js
diff --git a/ui/keyboard/resources/api_adapter.js b/ui/keyboard/resources/api_adapter.js
deleted file mode 100644
index e169b551392fd908ca9e93840ba1db46657dc16e..0000000000000000000000000000000000000000
--- a/ui/keyboard/resources/api_adapter.js
+++ /dev/null
@@ -1,76 +0,0 @@
-// Copyright 2013 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-/**
- * Queries the document for an element with a matching id.
- * @param {string} id is a case-sensitive string representing the unique ID of
- * the element being sought.
- * @return {?Element} The element with that id.
- */
-var $ = function(id) {
- return document.getElementById(id);
-}
-
-function logIfError() {
- if (chrome.runtime.lastError) {
- console.log(chrome.runtime.lastError);
- }
-}
-
-function insertText(text) {
- chrome.virtualKeyboardPrivate.insertText(text, logIfError);
-}
-
-function MoveCursor(swipe_direction, swipe_flags) {
- chrome.virtualKeyboardPrivate.moveCursor(swipe_direction, swipe_flags);
-}
-
-function sendKeyEvent(event) {
- chrome.virtualKeyboardPrivate.sendKeyEvent(event, logIfError);
-}
-
-(function(scope) {
- var keyboardLocked_ = false;
-
- /**
- * Check the lock state of virtual keyboard.
- * @return {boolean} True if virtual keyboard is locked.
- */
- function keyboardLocked() {
- return keyboardLocked_;
- }
-
- /**
- * Lock or unlock virtual keyboard.
- * @param {boolean} lock Whether or not to lock the virtual keyboard.
- */
- function lockKeyboard(lock) {
- keyboardLocked_ = lock;
- chrome.virtualKeyboardPrivate.lockKeyboard(lock);
- }
-
- scope.keyboardLocked = keyboardLocked;
- scope.lockKeyboard = lockKeyboard;
-})(this);
-
-function hideKeyboard() {
- lockKeyboard(false);
- chrome.virtualKeyboardPrivate.hideKeyboard(logIfError);
-}
-
-function keyboardLoaded() {
- chrome.virtualKeyboardPrivate.keyboardLoaded(logIfError);
-}
-
-function getKeyboardConfig(callback) {
- chrome.virtualKeyboardPrivate.getKeyboardConfig(function (config) {
- callback(config);
- });
-}
-
-chrome.virtualKeyboardPrivate.onTextInputBoxFocused.addListener(
- function (inputContext) {
- $('keyboard').inputTypeValue = inputContext.type;
- }
-);
« no previous file with comments | « no previous file | ui/keyboard/resources/constants.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698