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

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

Issue 1015903002: [Presentation API] Adds close method to Presentation session. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Addresses whywhat's comments Created 5 years, 9 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 9a28e6cf617ee0d6c7689bf308f0fd49abd7c434..e3050dc89c5a0ebc5b6af2e8949b68a74d4ee80f 100644
--- a/Source/modules/presentation/PresentationSession.h
+++ b/Source/modules/presentation/PresentationSession.h
@@ -13,6 +13,7 @@
namespace blink {
class Presentation;
+class PresentationController;
class WebPresentationSessionClient;
class WebString;
@@ -43,9 +44,15 @@ public:
DEFINE_ATTRIBUTE_EVENT_LISTENER(statechange);
private:
- PresentationSession(LocalFrame*, const WebString& id);
+ PresentationSession(LocalFrame*, const WebString& id, const WebString& url);
+
+ // Returns the |PresentationController| object associated with the frame
+ // |Presentation| corresponds to. Can return |nullptr| if the frame is
+ // detached from the document.
+ PresentationController* presentationController();
String m_id;
+ String m_url;
AtomicString m_state;
};
« no previous file with comments | « Source/modules/presentation/PresentationController.cpp ('k') | Source/modules/presentation/PresentationSession.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698