OLD | NEW |
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 } |
OLD | NEW |