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

Side by Side Diff: ui/keyboard/resources/webui/api_adapter.js

Issue 14674004: DRAFT: Add setKeyboardVisibility API. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 7 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 function sendKeyEvent(keyEvent) { 5 function sendKeyEvent(keyEvent) {
6 keyEvent.type = 'keydown'; 6 keyEvent.type = 'keydown';
7 chrome.send('sendKeyEvent', [ keyEvent ]); 7 chrome.send('sendKeyEvent', [ keyEvent ]);
8 keyEvent.type = 'keyup'; 8 keyEvent.type = 'keyup';
9 chrome.send('sendKeyEvent', [ keyEvent ]); 9 chrome.send('sendKeyEvent', [ keyEvent ]);
10 } 10 }
11
12 function setKeyboardVisibility(visible) {
13 chrome.send('setKeyboardVisibility', [ visible ]);
14 }
OLDNEW
« ui/keyboard/keyboard_ui_handler.cc ('K') | « ui/keyboard/resources/layout_us.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698