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

Side by Side Diff: ash/mus/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: gn 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_MUS_KEYBOARD_UI_MUS_H_
6 #define ASH_MUS_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 static scoped_ptr<KeyboardUI> Create();
22
23 // KeyboardUI:
24 void Hide() override;
25 void Show() override;
26 bool IsEnabled() override;
27
28 // keyboard::mojom::KeyboardObserver:
29 void OnKeyboardStateChanged(bool is_enabled,
30 bool is_visible,
31 uint64_t display_id,
32 mojo::RectPtr bounds) override;
33
34 private:
35 bool is_enabled_;
36
37 keyboard::mojom::KeyboardPtr keyboard_;
38 mojo::Binding<keyboard::mojom::KeyboardObserver> observer_binding_;
39
40 DISALLOW_COPY_AND_ASSIGN(KeyboardUIMus);
41 };
42
43 } // namespace ash
44
45 #endif // ASH_MUS_KEYBOARD_UI_MUS_H_
OLDNEW
« no previous file with comments | « ash/mus/BUILD.gn ('k') | ash/mus/keyboard_ui_mus.cc » ('j') | ash/mus/sysui_application.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698