OLD | NEW |
(Empty) | |
| 1 // Copyright 2015 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 #include "base/macros.h" |
| 6 #include "mojo/public/cpp/bindings/interface_request.h" |
| 7 #include "mojo/public/cpp/bindings/strong_binding.h" |
| 8 #include "mojo/services/keyboard/public/interfaces/keyboard.mojom.h" |
| 9 |
| 10 namespace keyboard { |
| 11 |
| 12 class KeyboardServiceImpl : public KeyboardService { |
| 13 public: |
| 14 explicit KeyboardServiceImpl(mojo::InterfaceRequest<KeyboardService> request); |
| 15 ~KeyboardServiceImpl() override; |
| 16 |
| 17 // KeyboardService implementation. |
| 18 void Show(KeyboardClientPtr client) override; |
| 19 void ShowByRequest() override; |
| 20 void Hide() override; |
| 21 |
| 22 private: |
| 23 mojo::StrongBinding<KeyboardService> strong_binding_; |
| 24 |
| 25 DISALLOW_COPY_AND_ASSIGN(KeyboardServiceImpl); |
| 26 }; |
| 27 |
| 28 } // namespace keyboard |
OLD | NEW |