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

Unified Diff: content/public/browser/presentation_screen_availability_listener.h

Issue 883953002: Add content public APIs for Presentation API. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Removed presentation_url Created 5 years, 11 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: content/public/browser/presentation_screen_availability_listener.h
diff --git a/content/public/browser/presentation_screen_availability_listener.h b/content/public/browser/presentation_screen_availability_listener.h
new file mode 100644
index 0000000000000000000000000000000000000000..4ed8749bcfe4f49b04b17b87a187d504fcfe3ec9
--- /dev/null
+++ b/content/public/browser/presentation_screen_availability_listener.h
@@ -0,0 +1,31 @@
+// Copyright 2015 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CONTENT_PUBLIC_BROWSER_PRESENTATION_SCREEN_AVAILABILITY_LISTENER_H_
+#define CONTENT_PUBLIC_BROWSER_PRESENTATION_SCREEN_AVAILABILITY_LISTENER_H_
+
+#include <string>
+
+namespace content {
+
+// A listener interface used for receiving updates on screen availability
+// associated with a presentation URL from an embedder.
+// See also PresentationServiceDelegate.
+class PresentationScreenAvailabilityListener {
+ public:
+ // Returns the Presentation URL associated with this listener.
+ virtual std::string GetPresentationUrl() = 0;
+
+ // Called when screen availability for the associated Presentation URL has
+ // changed to |available|.
+ virtual void OnScreenAvailabilityChanged(bool available) = 0;
+
+ protected:
+ virtual ~ScreenAvailabilityListener() {}
+};
+
+} // namespace content
+
+#endif // CONTENT_PUBLIC_BROWSER_PRESENTATION_SCREEN_AVAILABILITY_LISTENER_H_
+
« no previous file with comments | « content/public/browser/content_browser_client.cc ('k') | content/public/browser/presentation_service_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698