OLD | NEW |
1 // Copyright 2017 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include <string> | 5 #include <string> |
6 #include <vector> | 6 #include <vector> |
7 | 7 |
8 #include "content/common/content_export.h" | 8 #include "content/common/content_export.h" |
9 #include "mojo/public/cpp/bindings/strong_binding.h" | 9 #include "mojo/public/cpp/bindings/strong_binding.h" |
10 #include "third_party/WebKit/public/platform/modules/keyboard_lock/keyboard_lock
.mojom.h" | 10 #include "third_party/WebKit/public/platform/modules/keyboard_lock/keyboard_lock
.mojom.h" |
11 | 11 |
12 namespace content { | 12 namespace content { |
13 | 13 |
14 class CONTENT_EXPORT KeyboardLockServiceImpl | 14 class CONTENT_EXPORT KeyboardLockServiceImpl |
15 : public NON_EXPORTED_BASE(blink::mojom::KeyboardLockService) { | 15 : public NON_EXPORTED_BASE(blink::mojom::KeyboardLockService) { |
16 public: | 16 public: |
17 KeyboardLockServiceImpl(); | 17 KeyboardLockServiceImpl(); |
18 ~KeyboardLockServiceImpl() override; | 18 ~KeyboardLockServiceImpl() override; |
19 | 19 |
20 static void CreateMojoService( | 20 static void CreateMojoService( |
21 blink::mojom::KeyboardLockServiceRequest request); | 21 blink::mojom::KeyboardLockServiceRequest request); |
22 | 22 |
23 // blink::mojom::KeyboardLockService implementations. | 23 // blink::mojom::KeyboardLockService implementations. |
24 void RequestKeyLock(const std::vector<std::string>& key_codes, | 24 void RequestKeyboardLock(const std::vector<std::string>& key_codes, |
25 const RequestKeyLockCallback& callback) override; | 25 const RequestKeyboardLockCallback& callback) override; |
26 void CancelKeyLock() override; | 26 void CancelKeyboardLock() override; |
27 }; | 27 }; |
28 | 28 |
29 } // namespace | 29 } // namespace |
OLD | NEW |