Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1975)

Unified Diff: Source/modules/navigatorconnect/NavigatorConnect.idl

Issue 782463002: Expose navigator.connect client side API in blink. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: also expose to workers Created 6 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/modules/navigatorconnect/NavigatorConnect.cpp ('k') | Source/modules/navigatorconnect/OWNERS » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/modules/navigatorconnect/NavigatorConnect.idl
diff --git a/Source/modules/battery/NavigatorBattery.idl b/Source/modules/navigatorconnect/NavigatorConnect.idl
similarity index 53%
copy from Source/modules/battery/NavigatorBattery.idl
copy to Source/modules/navigatorconnect/NavigatorConnect.idl
index c5bff09da1473e835b8de2b1f59997117385b2c6..38c3ea98bcbc22384e5ce4a52897db46a2cb31c4 100644
--- a/Source/modules/battery/NavigatorBattery.idl
+++ b/Source/modules/navigatorconnect/NavigatorConnect.idl
@@ -2,9 +2,9 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
+// https://mkruisselbrink.github.io/navigator-connect/#idl-def-NavigatorConnect
[
- RuntimeEnabled=BatteryStatus,
+ RuntimeEnabled=NavigatorConnect,
] partial interface Navigator {
- [CallWith=ScriptState] Promise getBattery();
+ [CallWith=ScriptState] Promise connect(USVString url);
};
-
« no previous file with comments | « Source/modules/navigatorconnect/NavigatorConnect.cpp ('k') | Source/modules/navigatorconnect/OWNERS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698