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

Unified Diff: content/browser/keyboard_lock/keyboard_lock_service_impl.h

Issue 2805763004: [System-Keyboard-Lock] Forward navigator functions to RenderFrameHost (Closed)
Patch Set: Sync latest changes Created 3 years, 8 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
Index: content/browser/keyboard_lock/keyboard_lock_service_impl.h
diff --git a/content/browser/keyboard_lock/keyboard_lock_service_impl.h b/content/browser/keyboard_lock/keyboard_lock_service_impl.h
new file mode 100644
index 0000000000000000000000000000000000000000..76c832af82548923da7c32078938de0aa66e04ca
--- /dev/null
+++ b/content/browser/keyboard_lock/keyboard_lock_service_impl.h
@@ -0,0 +1,29 @@
+// Copyright 2017 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 <string>
+#include <vector>
+
+#include "content/common/content_export.h"
+#include "mojo/public/cpp/bindings/strong_binding.h"
+#include "third_party/WebKit/public/platform/modules/keyboard_lock/keyboard_lock.mojom.h"
+
+namespace content {
+
+class CONTENT_EXPORT KeyboardLockServiceImpl
+ : public NON_EXPORTED_BASE(blink::mojom::KeyboardLockService) {
+ public:
+ KeyboardLockServiceImpl();
+ ~KeyboardLockServiceImpl() override;
+
+ static void CreateMojoService(
+ blink::mojom::KeyboardLockServiceRequest request);
+
+ // blink::mojom::KeyboardLockService implementations.
+ void RequestKeyLock(const std::vector<std::string>& key_codes,
+ const RequestKeyLockCallback& callback) override;
+ void CancelKeyLock() override;
+};
+
+} // namespace
« no previous file with comments | « content/browser/frame_host/render_frame_host_impl.cc ('k') | content/browser/keyboard_lock/keyboard_lock_service_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698