| Index: ash/keyboard/keyboard_ui_mus.h
|
| diff --git a/ash/keyboard/keyboard_ui_mus.h b/ash/keyboard/keyboard_ui_mus.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..0a6b2c5dd2de090743f88ea28496193acca2378d
|
| --- /dev/null
|
| +++ b/ash/keyboard/keyboard_ui_mus.h
|
| @@ -0,0 +1,43 @@
|
| +// 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.
|
| +
|
| +#ifndef ASH_KEYBOARD_KEYBOARD_UI_MUS_H_
|
| +#define ASH_KEYBOARD_KEYBOARD_UI_MUS_H_
|
| +
|
| +#include "ash/keyboard/keyboard_ui.h"
|
| +#include "base/macros.h"
|
| +#include "mojo/public/cpp/bindings/binding.h"
|
| +#include "ui/keyboard/keyboard.mojom.h"
|
| +
|
| +namespace ash {
|
| +
|
| +class KeyboardUIMus : public KeyboardUI,
|
| + public keyboard::mojom::KeyboardObserver {
|
| + public:
|
| + KeyboardUIMus();
|
| + ~KeyboardUIMus() override;
|
| +
|
| + // KeyboardUI:
|
| + void Hide() override;
|
| + void Show() override;
|
| + bool IsEnabled() override;
|
| +
|
| + // keyboard::mojom::KeyboardObserver:
|
| + void OnKeyboardStateChanged(bool is_enabled,
|
| + bool is_visible,
|
| + uint64_t display_id,
|
| + mojo::RectPtr bounds) override;
|
| +
|
| + private:
|
| + bool is_enabled_;
|
| +
|
| + keyboard::mojom::KeyboardPtr keyboard_;
|
| + mojo::Binding<keyboard::mojom::KeyboardObserver> observer_binding_;
|
| +
|
| + DISALLOW_COPY_AND_ASSIGN(KeyboardUIMus);
|
| +};
|
| +
|
| +} // namespace ash
|
| +
|
| +#endif // ASH_KEYBOARD_KEYBOARD_UI_MUS_H_
|
|
|