OLD | NEW |
(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_ |
OLD | NEW |