Index: third_party/WebKit/public/platform/modules/keyboard_lock/keyboard_lock.mojom |
diff --git a/third_party/WebKit/public/platform/modules/keyboard_lock/keyboard_lock.mojom b/third_party/WebKit/public/platform/modules/keyboard_lock/keyboard_lock.mojom |
new file mode 100644 |
index 0000000000000000000000000000000000000000..97daf5437df56a29d515bc3b0caa7bdc581be04d |
--- /dev/null |
+++ b/third_party/WebKit/public/platform/modules/keyboard_lock/keyboard_lock.mojom |
@@ -0,0 +1,12 @@ |
+// 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. |
+ |
+module blink.mojom; |
+ |
+interface KeyboardLockService { |
whywhat
2017/04/12 16:02:13
nit: add some comments to the interface and method
Hzj_jie
2017/04/13 00:38:54
Updated. But in Chrome, we never reject the reques
|
+ RequestKeyLock(array<string> key_codes) |
+ => (bool allowed_by_user_or_browser, string reason); |
+ |
+ CancelKeyLock() => (); |
+}; |