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

Unified Diff: ui/keyboard/keyboard.mojom

Issue 1684823004: Refactors keyboard related code so mash can use a keyboard (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: merge to trunk Created 4 years, 10 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/keyboard/BUILD.gn ('k') | ui/keyboard/keyboard_controller.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
+};
« no previous file with comments | « ui/keyboard/BUILD.gn ('k') | ui/keyboard/keyboard_controller.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698