OLD | NEW |
(Empty) | |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 module keyboard.mojom; |
| 6 |
| 7 import "ui/mojo/geometry/geometry.mojom"; |
| 8 |
| 9 interface KeyboardObserver { |
| 10 // Sent any time state changes in the keyboard. |
| 11 OnKeyboardStateChanged(bool is_enabled, |
| 12 bool is_visible, |
| 13 uint64 display_id, |
| 14 mojo.Rect bounds); |
| 15 }; |
| 16 |
| 17 interface Keyboard { |
| 18 // TODO(sky): needs display id. |
| 19 Show(); |
| 20 Hide(); |
| 21 |
| 22 // Adds an observer. OnKeyboardStateChanged() is immediately called to give |
| 23 // the initial state. |
| 24 AddObserver(KeyboardObserver observer); |
| 25 }; |
OLD | NEW |