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

Unified Diff: Source/modules/presentation/Presentation.h

Issue 685263003: The rest of the Presentation API IDL as stubs. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Specified types for the promises Created 6 years, 2 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
Index: Source/modules/presentation/Presentation.h
diff --git a/Source/modules/presentation/Presentation.h b/Source/modules/presentation/Presentation.h
index be2cdae35e86df34e2d8c50bf7aa4be53934a949..97bbe859afbf52f98cdd5632f9259410049bcea8 100644
--- a/Source/modules/presentation/Presentation.h
+++ b/Source/modules/presentation/Presentation.h
@@ -5,11 +5,15 @@
#ifndef Presentation_h
#define Presentation_h
+#include "bindings/core/v8/ScriptPromise.h"
#include "core/dom/ContextLifecycleObserver.h"
#include "core/events/EventTarget.h"
+#include "modules/presentation/PresentationSession.h"
namespace blink {
+class ScriptState;
+
class Presentation final
: public RefCountedGarbageCollectedWillBeGarbageCollectedFinalized<Presentation>
, public EventTargetWithInlineData
@@ -27,10 +31,17 @@ public:
virtual void trace(Visitor*) override;
+ PresentationSession* session() const;
+
+ ScriptPromise startSession(ScriptState*, const String& senderId, const String& presentationId);
+ ScriptPromise joinSession(ScriptState*, const String& senderId, const String& presentationId);
+
DEFINE_ATTRIBUTE_EVENT_LISTENER(availablechange);
private:
explicit Presentation(ExecutionContext*);
+
+ Member<PresentationSession> m_session;
};
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698