summaryrefslogtreecommitdiff
path: root/chromium/ui/keyboard/keyboard.mojom
diff options
context:
space:
mode:
authorAllan Sandfeld Jensen <allan.jensen@theqtcompany.com>2016-05-09 14:22:11 +0200
committerAllan Sandfeld Jensen <allan.jensen@qt.io>2016-05-09 15:11:45 +0000
commit2ddb2d3e14eef3de7dbd0cef553d669b9ac2361c (patch)
treee75f511546c5fd1a173e87c1f9fb11d7ac8d1af3 /chromium/ui/keyboard/keyboard.mojom
parenta4f3d46271c57e8155ba912df46a05559d14726e (diff)
downloadqtwebengine-chromium-2ddb2d3e14eef3de7dbd0cef553d669b9ac2361c.tar.gz
BASELINE: Update Chromium to 51.0.2704.41
Also adds in all smaller components by reversing logic for exclusion. Change-Id: Ibf90b506e7da088ea2f65dcf23f2b0992c504422 Reviewed-by: Joerg Bornemann <joerg.bornemann@theqtcompany.com>
Diffstat (limited to 'chromium/ui/keyboard/keyboard.mojom')
-rw-r--r--chromium/ui/keyboard/keyboard.mojom25
1 files changed, 25 insertions, 0 deletions
diff --git a/chromium/ui/keyboard/keyboard.mojom b/chromium/ui/keyboard/keyboard.mojom
new file mode 100644
index 00000000000..212765b17a5
--- /dev/null
+++ b/chromium/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);
+};