OLD | NEW |
(Empty) | |
| 1 // Copyright 2017 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 <string> |
| 6 #include <vector> |
| 7 |
| 8 #include "content/common/content_export.h" |
| 9 #include "mojo/public/cpp/bindings/strong_binding.h" |
| 10 #include "third_party/WebKit/public/platform/modules/keyboard_lock/keyboard_lock
.mojom.h" |
| 11 |
| 12 namespace content { |
| 13 |
| 14 class RenderFrameHost; |
| 15 |
| 16 class CONTENT_EXPORT KeyboardLockServiceImpl |
| 17 : public NON_EXPORTED_BASE(blink::mojom::KeyboardLockService) { |
| 18 public: |
| 19 KeyboardLockServiceImpl(); |
| 20 ~KeyboardLockServiceImpl() override; |
| 21 |
| 22 static void CreateMojoService( |
| 23 RenderFrameHost* render_frame_host, |
| 24 blink::mojom::KeyboardLockServiceRequest request); |
| 25 |
| 26 // blink::mojom::KeyboardLockService implementations. |
| 27 void RequestKeyLock(const std::vector<std::string>& key_codes, |
| 28 const RequestKeyLockCallback& callback) override; |
| 29 void CancelKeyLock() override; |
| 30 }; |
| 31 |
| 32 } // namespace |
OLD | NEW |