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

Side by Side 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 unified diff | Download patch
« no previous file with comments | « ui/keyboard/BUILD.gn ('k') | ui/keyboard/keyboard_controller.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(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 };
OLDNEW
« 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