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

Side by Side Diff: Source/modules/presentation/PresentationController.h

Issue 1020303004: [PresentationAPI] Plumbing |onstatechange| event for the PresentationSession from Blink to platform/ (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: 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 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 PresentationController_h 5 #ifndef PresentationController_h
6 #define PresentationController_h 6 #define PresentationController_h
7 7
8 #include "core/frame/FrameDestructionObserver.h" 8 #include "core/frame/FrameDestructionObserver.h"
9 #include "modules/presentation/Presentation.h" 9 #include "modules/presentation/Presentation.h"
10 #include "platform/Supplementable.h" 10 #include "platform/Supplementable.h"
(...skipping 25 matching lines...) Expand all
36 36
37 static void provideTo(LocalFrame&, WebPresentationClient*); 37 static void provideTo(LocalFrame&, WebPresentationClient*);
38 38
39 // Implementation of HeapSupplement. 39 // Implementation of HeapSupplement.
40 DECLARE_VIRTUAL_TRACE(); 40 DECLARE_VIRTUAL_TRACE();
41 41
42 // Implementation of WebPresentationController. 42 // Implementation of WebPresentationController.
43 virtual void didChangeAvailability(bool available) override; 43 virtual void didChangeAvailability(bool available) override;
44 virtual bool isAvailableChangeWatched() const override; 44 virtual bool isAvailableChangeWatched() const override;
45 virtual void didStartDefaultSession(WebPresentationSessionClient*) override; 45 virtual void didStartDefaultSession(WebPresentationSessionClient*) override;
46 virtual void didChangeSessionState(WebPresentationSessionClient*, WebPresent ationSessionClient::SessionState) override;
46 47
47 // Called when the first listener was added to or the last listener was remo ved from the 48 // Called when the first listener was added to or the last listener was remo ved from the
48 // |availablechange| event. 49 // |availablechange| event.
49 void updateAvailableChangeWatched(bool watched); 50 void updateAvailableChangeWatched(bool watched);
50 51
51 // Called when the frame wants to start a new presentation. 52 // Called when the frame wants to start a new presentation.
52 void startSession(const String& presentationUrl, const String& presentationI d, WebPresentationSessionClientCallbacks*); 53 void startSession(const String& presentationUrl, const String& presentationI d, WebPresentationSessionClientCallbacks*);
53 54
54 // Called when the frame wants to join an existing presentation. 55 // Called when the frame wants to join an existing presentation.
55 void joinSession(const String& presentationUrl, const String& presentationId , WebPresentationSessionClientCallbacks*); 56 void joinSession(const String& presentationUrl, const String& presentationId , WebPresentationSessionClientCallbacks*);
(...skipping 10 matching lines...) Expand all
66 // Implementation of FrameDestructionObserver. 67 // Implementation of FrameDestructionObserver.
67 virtual void willDetachFrameHost() override; 68 virtual void willDetachFrameHost() override;
68 69
69 WebPresentationClient* m_client; 70 WebPresentationClient* m_client;
70 PersistentWillBeMember<Presentation> m_presentation; 71 PersistentWillBeMember<Presentation> m_presentation;
71 }; 72 };
72 73
73 } // namespace blink 74 } // namespace blink
74 75
75 #endif // PresentationController_h 76 #endif // PresentationController_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698