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

Unified Diff: services/keyboard_native/keyboard_service_impl.h

Issue 1139453002: Initial native keyboard proof of concept. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Addressed comments. Created 5 years, 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « services/keyboard_native/BUILD.gn ('k') | services/keyboard_native/keyboard_service_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/keyboard_native/keyboard_service_impl.h
diff --git a/services/keyboard_native/keyboard_service_impl.h b/services/keyboard_native/keyboard_service_impl.h
new file mode 100644
index 0000000000000000000000000000000000000000..5ffbe70e2c0230b8bd6e918323b4fdb646ad8f78
--- /dev/null
+++ b/services/keyboard_native/keyboard_service_impl.h
@@ -0,0 +1,28 @@
+// Copyright 2015 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 "base/macros.h"
+#include "mojo/public/cpp/bindings/interface_request.h"
+#include "mojo/public/cpp/bindings/strong_binding.h"
+#include "mojo/services/keyboard/public/interfaces/keyboard.mojom.h"
+
+namespace keyboard {
+
+class KeyboardServiceImpl : public KeyboardService {
+ public:
+ explicit KeyboardServiceImpl(mojo::InterfaceRequest<KeyboardService> request);
+ ~KeyboardServiceImpl() override;
+
+ // KeyboardService implementation.
+ void Show(KeyboardClientPtr client) override;
+ void ShowByRequest() override;
+ void Hide() override;
+
+ private:
+ mojo::StrongBinding<KeyboardService> strong_binding_;
+
+ DISALLOW_COPY_AND_ASSIGN(KeyboardServiceImpl);
+};
+
+} // namespace keyboard
« no previous file with comments | « services/keyboard_native/BUILD.gn ('k') | services/keyboard_native/keyboard_service_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698