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

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

Issue 940503002: [PresentationAPI] Added plumbing for start/joinSession from JS to platform (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Full change Created 5 years, 10 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/PresentationSession.h
diff --git a/Source/modules/presentation/PresentationSession.h b/Source/modules/presentation/PresentationSession.h
index d2116156c7213333d20044e7b1984041b2069b4c..9a28e6cf617ee0d6c7689bf308f0fd49abd7c434 100644
--- a/Source/modules/presentation/PresentationSession.h
+++ b/Source/modules/presentation/PresentationSession.h
@@ -5,21 +5,26 @@
#ifndef PresentationSession_h
#define PresentationSession_h
-#include "core/dom/ContextLifecycleObserver.h"
#include "core/events/EventTarget.h"
+#include "core/frame/DOMWindowProperty.h"
#include "wtf/text/AtomicString.h"
#include "wtf/text/WTFString.h"
namespace blink {
+class Presentation;
+class WebPresentationSessionClient;
+class WebString;
+
class PresentationSession final
: public RefCountedGarbageCollectedEventTargetWithInlineData<PresentationSession>
- , public ContextLifecycleObserver {
+ , public DOMWindowProperty {
DEFINE_EVENT_TARGET_REFCOUNTING_WILL_BE_REMOVED(RefCountedGarbageCollected<PresentationSession>);
WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(PresentationSession);
DEFINE_WRAPPERTYPEINFO();
public:
- static PresentationSession* create(ExecutionContext*);
+ static PresentationSession* take(WebPresentationSessionClient*, Presentation*);
+ static void dispose(WebPresentationSessionClient*);
virtual ~PresentationSession();
// EventTarget implementation.
@@ -38,7 +43,7 @@ public:
DEFINE_ATTRIBUTE_EVENT_LISTENER(statechange);
private:
- explicit PresentationSession(ExecutionContext*);
+ PresentationSession(LocalFrame*, const WebString& id);
String m_id;
AtomicString m_state;
« no previous file with comments | « Source/modules/presentation/PresentationError.cpp ('k') | Source/modules/presentation/PresentationSession.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698