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

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

Issue 1222623003: Presentation API: implement .getAvalability() (Blink side). (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: fix tests Created 5 years, 5 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/DEPS ('k') | Source/modules/presentation/Presentation.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/modules/presentation/Presentation.h
diff --git a/Source/modules/presentation/Presentation.h b/Source/modules/presentation/Presentation.h
index 8aaf55c7bff88ded31526a3552f77db9f3847503..40f70a53d1d0dfa6b238204f24b9dc1e742d2f02 100644
--- a/Source/modules/presentation/Presentation.h
+++ b/Source/modules/presentation/Presentation.h
@@ -46,21 +46,10 @@ public:
ScriptPromise startSession(ScriptState*, const String& presentationUrl, const String& presentationId);
ScriptPromise joinSession(ScriptState*, const String& presentationUrl, const String& presentationId);
+ ScriptPromise getAvailability(ScriptState*, const String& presentationUrl);
- DEFINE_ATTRIBUTE_EVENT_LISTENER(availablechange);
DEFINE_ATTRIBUTE_EVENT_LISTENER(defaultsessionstart);
- // The embedder needs to keep track if anything is listening to the event so it could stop the
- // might be expensive screen discovery process.
- virtual bool addEventListener(const AtomicString& eventType, PassRefPtr<EventListener>, bool useCapture) override;
- virtual bool removeEventListener(const AtomicString& eventType, PassRefPtr<EventListener>, bool useCapture) override;
- virtual void removeAllEventListeners() override;
-
- // Called when the |availablechange| event needs to be fired.
- void didChangeAvailability(bool available);
- // Queried by the controller if |availablechange| event has any listeners.
- bool isAvailableChangeWatched() const;
-
// Called when the |defaultsessionstart| event needs to be fired.
void didStartDefaultSession(PresentationSession*);
« no previous file with comments | « Source/modules/presentation/DEPS ('k') | Source/modules/presentation/Presentation.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698