Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 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 | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 module blink.mojom; | |
| 6 | |
| 7 // The browser side service to process navigator.requestKeyLock() and | |
| 8 // navigator.cancelKeyLock() web APIs. See http://crbug.com/680809. | |
| 9 interface KeyboardLockService { | |
| 10 // Registers a set of string-formatted key codes | |
| 11 // (https://www.w3.org/TR/uievents/#interface-keyboardevent) to the platform | |
| 12 // dependent native API, so the web page can receive these key codes | |
| 13 // thereafter. | |
| 14 // The reason will only be provided if the request is rejected. | |
|
foolip
2017/04/17 08:46:05
Does mojo support optional arguments? In that case
Hzj_jie
2017/04/18 02:26:08
mojo supports optional array<string>?. But here we
foolip
2017/04/18 05:10:57
Acknowledged.
| |
| 15 RequestKeyLock(array<string> key_codes) | |
| 16 => (bool allowed_by_user_or_browser, string reason); | |
| 17 | |
| 18 // Removes all reserved keys. This function is expected to never fail, the | |
| 19 // callback indicates the finish of the processing only. | |
| 20 CancelKeyLock() => (); | |
| 21 }; | |
| OLD | NEW |