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

Side by Side Diff: ash/keyboard/keyboard_ui_mus.h

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: always compile mojo_shell 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
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 #ifndef ASH_KEYBOARD_KEYBOARD_UI_MUS_H_
6 #define ASH_KEYBOARD_KEYBOARD_UI_MUS_H_
7
8 #include "ash/keyboard/keyboard_ui.h"
9 #include "base/macros.h"
10 #include "mojo/public/cpp/bindings/binding.h"
11 #include "ui/keyboard/keyboard.mojom.h"
12
13 namespace ash {
14
15 class KeyboardUIMus : public KeyboardUI,
16 public keyboard::mojom::KeyboardObserver {
17 public:
18 KeyboardUIMus();
19 ~KeyboardUIMus() override;
20
21 // KeyboardUI:
22 void Hide() override;
23 void Show() override;
24 bool IsEnabled() override;
25
26 // keyboard::mojom::KeyboardObserver:
27 void OnKeyboardStateChanged(bool is_enabled,
28 bool is_visible,
29 uint64_t display_id,
30 mojo::RectPtr bounds) override;
31
32 private:
33 bool is_enabled_;
34
35 keyboard::mojom::KeyboardPtr keyboard_;
36 mojo::Binding<keyboard::mojom::KeyboardObserver> observer_binding_;
37
38 DISALLOW_COPY_AND_ASSIGN(KeyboardUIMus);
39 };
40
41 } // namespace ash
42
43 #endif // ASH_KEYBOARD_KEYBOARD_UI_MUS_H_
OLDNEW
« no previous file with comments | « ash/keyboard/keyboard_ui.cc ('k') | ash/keyboard/keyboard_ui_mus.cc » ('j') | ash/shell.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698