| Index: ui/keyboard/keyboard.mojom
|
| diff --git a/ui/keyboard/keyboard.mojom b/ui/keyboard/keyboard.mojom
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..212765b17a560e5932e569a3fdffb2015413f991
|
| --- /dev/null
|
| +++ b/ui/keyboard/keyboard.mojom
|
| @@ -0,0 +1,25 @@
|
| +// Copyright 2016 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.
|
| +
|
| +module keyboard.mojom;
|
| +
|
| +import "ui/mojo/geometry/geometry.mojom";
|
| +
|
| +interface KeyboardObserver {
|
| + // Sent any time state changes in the keyboard.
|
| + OnKeyboardStateChanged(bool is_enabled,
|
| + bool is_visible,
|
| + uint64 display_id,
|
| + mojo.Rect bounds);
|
| +};
|
| +
|
| +interface Keyboard {
|
| + // TODO(sky): needs display id.
|
| + Show();
|
| + Hide();
|
| +
|
| + // Adds an observer. OnKeyboardStateChanged() is immediately called to give
|
| + // the initial state.
|
| + AddObserver(KeyboardObserver observer);
|
| +};
|
|
|