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

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

Issue 1002293005: [PresentationAPI] Plumbing send() from PresentationSession IDL 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/LocalFrameLifecycleObserver.h" 8 #include "core/frame/LocalFrameLifecycleObserver.h"
9 #include "modules/presentation/Presentation.h" 9 #include "modules/presentation/Presentation.h"
10 #include "platform/Supplementable.h" 10 #include "platform/Supplementable.h"
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 // Called when the first listener was added to or the last listener was remo ved from the 49 // Called when the first listener was added to or the last listener was remo ved from the
50 // |availablechange| event. 50 // |availablechange| event.
51 void updateAvailableChangeWatched(bool watched); 51 void updateAvailableChangeWatched(bool watched);
52 52
53 // Called when the frame wants to start a new presentation. 53 // Called when the frame wants to start a new presentation.
54 void startSession(const String& presentationUrl, const String& presentationI d, WebPresentationSessionClientCallbacks*); 54 void startSession(const String& presentationUrl, const String& presentationI d, WebPresentationSessionClientCallbacks*);
55 55
56 // Called when the frame wants to join an existing presentation. 56 // Called when the frame wants to join an existing presentation.
57 void joinSession(const String& presentationUrl, const String& presentationId , WebPresentationSessionClientCallbacks*); 57 void joinSession(const String& presentationUrl, const String& presentationId , WebPresentationSessionClientCallbacks*);
58 58
59 // Called when the frame wants to post DOMString message to an existing pres entation.
60 void postMessage(const String& url, const String& presentationId, const Stri ng& message);
61
59 // Called when the frame wants to close an existing presentation. 62 // Called when the frame wants to close an existing presentation.
60 void closeSession(const String& url, const String& presentationId); 63 void closeSession(const String& url, const String& presentationId);
61 64
62 // Connects the |Presentation| object with this controller. 65 // Connects the |Presentation| object with this controller.
63 void setPresentation(Presentation*); 66 void setPresentation(Presentation*);
64 67
65 private: 68 private:
66 PresentationController(LocalFrame&, WebPresentationClient*); 69 PresentationController(LocalFrame&, WebPresentationClient*);
67 70
68 // Implementation of LocalFrameLifecycleObserver. 71 // Implementation of LocalFrameLifecycleObserver.
69 virtual void willDetachFrameHost() override; 72 virtual void willDetachFrameHost() override;
70 73
71 WebPresentationClient* m_client; 74 WebPresentationClient* m_client;
72 PersistentWillBeMember<Presentation> m_presentation; 75 PersistentWillBeMember<Presentation> m_presentation;
73 }; 76 };
74 77
75 } // namespace blink 78 } // namespace blink
76 79
77 #endif // PresentationController_h 80 #endif // PresentationController_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698