Revision b55e29597d92ab89063673f031151e2bdb4b9479 authored by Joe Downing on 22 March 2018, 07:35:35 UTC, committed by Chromium WPT Sync on 22 March 2018, 07:35:35 UTC
This change moves the KeyboardLock API methods to a 'keyboard'
namespace on the Navigator object.  We are doing this work now as
there has been a request for additional keyboard functionality that
would also be placed on the new keyboard object and we wanted to
move the KeyboardLock methods there for consistency before we launch.

KeyboardLock API Spec is here:
https://w3c.github.io/keyboard-lock/#API

Old calling pattern:
Navigator.keyboardLock();
Navigator.keyboardUnlock();

New calling pattern:
Navigator.keyboard.lock();
Navigator.keyboard.unlock();

Note: The main logic in the KeyboardLock.cpp class and tests is the
same as it was, however the file changed enough that git does not
recognize it as a file move.

BUG=680809

Change-Id: I234b2ab12d5ecd44c894ed5103863fd96fd548d4
Reviewed-on: https://chromium-review.googlesource.com/969656
Reviewed-by: Philip Jägenstedt <foolip@chromium.org>
Reviewed-by: Gary Kacmarcik <garykac@chromium.org>
Reviewed-by: Daniel Cheng <dcheng@chromium.org>
Commit-Queue: Daniel Cheng <dcheng@chromium.org>
Cr-Commit-Position: refs/heads/master@{#544996}
1 parent 1a8c195
History
File Mode Size
broadcastchannel
message-channels
support
with-ports
without-ports
Channel_postMessage_Blob.htm -rw-r--r-- 1.3 KB
Channel_postMessage_DataCloneErr.htm -rw-r--r-- 636 bytes
Channel_postMessage_clone_port.htm -rw-r--r-- 1.3 KB
Channel_postMessage_clone_port_error.htm -rw-r--r-- 656 bytes
Channel_postMessage_event_properties.htm -rw-r--r-- 1.0 KB
Channel_postMessage_ports_readonly_array.htm -rw-r--r-- 1.0 KB
Channel_postMessage_target_source.htm -rw-r--r-- 906 bytes
MessageEvent-trusted-worker.js -rw-r--r-- 98 bytes
MessageEvent-trusted.html -rw-r--r-- 1.2 KB
MessageEvent.html -rw-r--r-- 799 bytes
MessageEvent_onmessage_postMessage_infinite_loop.html -rw-r--r-- 1003 bytes
MessageEvent_properties.htm -rw-r--r-- 946 bytes
MessagePort_initial_disabled.htm -rw-r--r-- 446 bytes
MessagePort_onmessage_start.htm -rw-r--r-- 419 bytes
OWNERS -rw-r--r-- 48 bytes
README.md -rw-r--r-- 193 bytes
Transferred_objects_unusable.sub.htm -rw-r--r-- 1.6 KB
event.data.sub.htm -rw-r--r-- 1.7 KB
event.origin.sub.htm -rw-r--r-- 2.1 KB
event.ports.sub.htm -rw-r--r-- 1.5 KB
event.source.htm -rw-r--r-- 1.3 KB
event.source.xorigin.sub.htm -rw-r--r-- 1.5 KB
messageerror.html -rw-r--r-- 1.5 KB
postMessage_ArrayBuffer.sub.htm -rw-r--r-- 1.1 KB
postMessage_Date.sub.htm -rw-r--r-- 1.0 KB
postMessage_Document.htm -rw-r--r-- 882 bytes
postMessage_Function.htm -rw-r--r-- 888 bytes
postMessage_MessagePorts_sorigin.htm -rw-r--r-- 1.9 KB
postMessage_MessagePorts_xorigin.sub.htm -rw-r--r-- 2.0 KB
postMessage_arrays.sub.htm -rw-r--r-- 965 bytes
postMessage_asterisk_xorigin.sub.htm -rw-r--r-- 2.1 KB
postMessage_dup_transfer_objects.htm -rw-r--r-- 1.0 KB
postMessage_invalid_targetOrigin.htm -rw-r--r-- 1.1 KB
postMessage_objects.sub.htm -rw-r--r-- 1.0 KB
postMessage_origin_mismatch.sub.htm -rw-r--r-- 1.5 KB
postMessage_origin_mismatch_xorigin.sub.htm -rw-r--r-- 1.6 KB
postMessage_solidus_sorigin.htm -rw-r--r-- 1.1 KB
postMessage_solidus_xorigin.sub.htm -rw-r--r-- 1.4 KB

README.md

back to top