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

Unified Diff: Source/modules/presentation/NavigatorPresentation.idl

Issue 408663002: Add the Presentation API module and a single event target (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Fixed my fix for the layout tests Created 6 years, 3 months 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/presentation/NavigatorPresentation.cpp ('k') | Source/modules/presentation/Presentation.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/modules/presentation/NavigatorPresentation.idl
diff --git a/Source/modules/battery/NavigatorBattery.idl b/Source/modules/presentation/NavigatorPresentation.idl
similarity index 54%
copy from Source/modules/battery/NavigatorBattery.idl
copy to Source/modules/presentation/NavigatorPresentation.idl
index c5bff09da1473e835b8de2b1f59997117385b2c6..4cf7e1e3de71c4d96955ed98163dc25c1b05eb33 100644
--- a/Source/modules/battery/NavigatorBattery.idl
+++ b/Source/modules/presentation/NavigatorPresentation.idl
@@ -2,9 +2,10 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
+// http://webscreens.github.io/presentation-api/#presentation-extension-to-navigator
+
[
- RuntimeEnabled=BatteryStatus,
+ RuntimeEnabled=Presentation
] partial interface Navigator {
- [CallWith=ScriptState] Promise getBattery();
+ readonly attribute Presentation presentation;
};
-
« no previous file with comments | « Source/modules/presentation/NavigatorPresentation.cpp ('k') | Source/modules/presentation/Presentation.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698