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