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

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: Fix layout test: change postMessage to send. Created 5 years, 8 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 send String message to an existing present ation.
60 void send(const String& presentationUrl, const String& presentationId, const String& message);
61
62 // Called when the frame wants to send ArrayBuffer/View data to an existing presentation.
63 void send(const String& presentationUrl, const String& presentationId, const uint8_t* data, size_t length);
64
59 // Called when the frame wants to close an existing presentation. 65 // Called when the frame wants to close an existing presentation.
60 void closeSession(const String& url, const String& presentationId); 66 void closeSession(const String& url, const String& presentationId);
61 67
62 // Connects the |Presentation| object with this controller. 68 // Connects the |Presentation| object with this controller.
63 void setPresentation(Presentation*); 69 void setPresentation(Presentation*);
64 70
65 private: 71 private:
66 PresentationController(LocalFrame&, WebPresentationClient*); 72 PresentationController(LocalFrame&, WebPresentationClient*);
67 73
68 // Implementation of LocalFrameLifecycleObserver. 74 // Implementation of LocalFrameLifecycleObserver.
69 virtual void willDetachFrameHost() override; 75 virtual void willDetachFrameHost() override;
70 76
71 WebPresentationClient* m_client; 77 WebPresentationClient* m_client;
72 PersistentWillBeMember<Presentation> m_presentation; 78 PersistentWillBeMember<Presentation> m_presentation;
73 }; 79 };
74 80
75 } // namespace blink 81 } // namespace blink
76 82
77 #endif // PresentationController_h 83 #endif // PresentationController_h
OLDNEW
« no previous file with comments | « LayoutTests/webexposed/global-interface-listing-expected.txt ('k') | Source/modules/presentation/PresentationController.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698