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

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: 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..a4edb9164f8ad3cc1f9fb693954df0344ebddcde 100644
--- a/Source/modules/presentation/Presentation.h
+++ b/Source/modules/presentation/Presentation.h
@@ -5,8 +5,11 @@
#ifndef Presentation_h
#define Presentation_h
+#include "bindings/core/v8/ScriptPromise.h"
+#include "bindings/core/v8/ScriptState.h"
Peter Beverloo 2014/10/29 20:51:19 You can forward declare this.
whywhat 2014/10/29 22:09:26 Done.
#include "core/dom/ContextLifecycleObserver.h"
#include "core/events/EventTarget.h"
+#include "modules/presentation/PresentationSession.h"
namespace blink {
@@ -27,10 +30,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*);
+
+ PersistentWillBeMember<PresentationSession> m_session;
Peter Beverloo 2014/10/29 20:51:19 This should be a Member<>.
whywhat 2014/10/29 22:09:27 Done.
};
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698