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

Side by Side Diff: third_party/WebKit/public/platform/modules/presentation/WebPresentationAvailabilityObserver.h

Issue 2148643002: [Presentation API] Adds DOMString[] constructor to PresentationRequest. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix LayoutTests Created 4 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 unified diff | Download patch
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef WebPresentationAvailabilityObserver_h 5 #ifndef WebPresentationAvailabilityObserver_h
6 #define WebPresentationAvailabilityObserver_h 6 #define WebPresentationAvailabilityObserver_h
7 7
8 #include "public/platform/WebCommon.h" 8 #include "public/platform/WebCommon.h"
9 #include "public/platform/WebURL.h" 9 #include "public/platform/WebURL.h"
10 10
11 namespace blink { 11 namespace blink {
12 12
13 class WebString;
14 template <typename T> class WebVector;
15
13 // WebPresentationAvailabilityObserver is an interface that is implemented by 16 // WebPresentationAvailabilityObserver is an interface that is implemented by
14 // objects that wish to be notified when there is a presentation display 17 // objects that wish to be notified when there is a presentation display
15 // availability change for a given URL. 18 // availability change for given URLs.
16 class BLINK_PLATFORM_EXPORT WebPresentationAvailabilityObserver { 19 class BLINK_PLATFORM_EXPORT WebPresentationAvailabilityObserver {
17 public: 20 public:
18 virtual ~WebPresentationAvailabilityObserver() = default; 21 virtual ~WebPresentationAvailabilityObserver() = default;
19 22
20 virtual void availabilityChanged(bool) = 0; 23 virtual void availabilityChanged(bool) = 0;
21 24
22 virtual const WebURL url() const = 0; 25 virtual const WebVector<WebURL>& urls() const = 0;
23 }; 26 };
24 27
25 } // namespace blink 28 } // namespace blink
26 29
27 #endif // WebPresentationAvailabilityObserver_h 30 #endif // WebPresentationAvailabilityObserver_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698