| Index: ash/sysui/keyboard_ui_mus.cc
|
| diff --git a/ash/sysui/keyboard_ui_mus.cc b/ash/sysui/keyboard_ui_mus.cc
|
| deleted file mode 100644
|
| index 6b859a99e0def20029a47e2f62e2c1cc2f972f1d..0000000000000000000000000000000000000000
|
| --- a/ash/sysui/keyboard_ui_mus.cc
|
| +++ /dev/null
|
| @@ -1,52 +0,0 @@
|
| -// 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.
|
| -
|
| -#include "ash/sysui/keyboard_ui_mus.h"
|
| -
|
| -#include "ash/common/keyboard/keyboard_ui_observer.h"
|
| -#include "base/memory/ptr_util.h"
|
| -#include "services/shell/public/cpp/connector.h"
|
| -
|
| -namespace ash {
|
| -
|
| -KeyboardUIMus::KeyboardUIMus(::shell::Connector* connector)
|
| - : is_enabled_(false), observer_binding_(this) {
|
| - // TODO(sky): should be something like mojo:keyboard, but need mapping.
|
| - connector->ConnectToInterface("exe:chrome", &keyboard_);
|
| - keyboard_->AddObserver(observer_binding_.CreateInterfacePtrAndBind());
|
| -}
|
| -
|
| -KeyboardUIMus::~KeyboardUIMus() {}
|
| -
|
| -// static
|
| -std::unique_ptr<KeyboardUI> KeyboardUIMus::Create(
|
| - ::shell::Connector* connector) {
|
| - return base::WrapUnique(new KeyboardUIMus(connector));
|
| -}
|
| -
|
| -void KeyboardUIMus::Hide() {
|
| - keyboard_->Hide();
|
| -}
|
| -
|
| -void KeyboardUIMus::Show() {
|
| - keyboard_->Show();
|
| -}
|
| -
|
| -bool KeyboardUIMus::IsEnabled() {
|
| - return is_enabled_;
|
| -}
|
| -
|
| -void KeyboardUIMus::OnKeyboardStateChanged(bool is_enabled,
|
| - bool is_visible,
|
| - uint64_t display_id,
|
| - const gfx::Rect& bounds) {
|
| - if (is_enabled_ == is_enabled)
|
| - return;
|
| -
|
| - is_enabled_ = is_enabled;
|
| - FOR_EACH_OBSERVER(KeyboardUIObserver, *observers(),
|
| - OnKeyboardEnabledStateChanged(is_enabled));
|
| -}
|
| -
|
| -} // namespace ash
|
|
|