Index: third_party/WebKit/Source/modules/keyboard_lock/NavigatorKeyboardLock.idl |
diff --git a/third_party/WebKit/Source/modules/keyboard_lock/NavigatorKeyboardLock.idl b/third_party/WebKit/Source/modules/keyboard_lock/NavigatorKeyboardLock.idl |
new file mode 100644 |
index 0000000000000000000000000000000000000000..9a46622302c73d3b3abb964eefb73a33fa0fa572 |
--- /dev/null |
+++ b/third_party/WebKit/Source/modules/keyboard_lock/NavigatorKeyboardLock.idl |
@@ -0,0 +1,8 @@ |
+// 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. |
+ |
+partial interface Navigator { |
whywhat
2017/04/12 16:02:13
nit: put a comment above the interface with at lea
Hzj_jie
2017/04/13 00:38:54
The spec is still under discussion; should I use a
whywhat
2017/04/13 02:34:36
I thought you can just point to https://garykac.gi
Hzj_jie
2017/04/13 22:24:24
Done.
|
+ [RuntimeEnabled=KeyboardLock, CallWith=ScriptState] Promise<void> requestKeyLock(DOMString[] keyCodes); |
+ [RuntimeEnabled=KeyboardLock] void cancelKeyLock(); |
+}; |