OLD | NEW |
---|---|
(Empty) | |
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 | |
3 // found in the LICENSE file. | |
4 | |
5 #ifndef PresentationController_h | |
6 #define PresentationController_h | |
7 | |
8 #include "modules/presentation/Presentation.h" | |
9 #include "platform/Supplementable.h" | |
10 #include "platform/heap/Handle.h" | |
11 #include "public/platform/WebPresentationController.h" | |
12 | |
13 namespace blink { | |
14 | |
15 class LocalFrame; | |
16 class WebPresentationClient; | |
17 | |
18 class PresentationController final : public NoBaseWillBeGarbageCollectedFinalize d<PresentationController>, public WillBeHeapSupplement<LocalFrame>, public WebPr esentationController { | |
19 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(PresentationController); | |
20 WTF_MAKE_NONCOPYABLE(PresentationController); | |
21 public: | |
22 virtual ~PresentationController(); | |
23 | |
24 static PassOwnPtrWillBeRawPtr<PresentationController> create(LocalFrame&, We bPresentationClient*); | |
25 | |
26 static const char* supplementName(); | |
27 static PresentationController* from(LocalFrame&); | |
28 | |
29 static void provideTo(LocalFrame&, WebPresentationClient*); | |
30 | |
31 // Inherited from Supplement. | |
Peter Beverloo
2015/01/07 14:29:09
If you override it, then you're not inheriting it.
whywhat
2015/01/07 16:22:16
Done.
| |
32 virtual void trace(Visitor*) override; | |
33 | |
34 // Implementation of WebPresentationController | |
35 virtual void deviceAvailabilityChanged(bool available) override; | |
36 | |
37 void addDeviceAvailabilityListener(); | |
38 void removeDeviceAvailabilityListener(); | |
39 | |
40 void setPresentation(Presentation*); | |
41 | |
42 private: | |
43 PresentationController(LocalFrame&, WebPresentationClient*); | |
44 | |
45 WebPresentationClient* m_client; | |
46 PersistentWillBeMember<Presentation> m_presentation; | |
47 }; | |
48 | |
49 } // namespace blink | |
50 | |
51 #endif // PresentationController_h | |
OLD | NEW |