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

Unified Diff: Source/modules/presentation/PresentationSession.h

Issue 1002293005: [PresentationAPI] Plumbing send() from PresentationSession IDL to platform/. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Added ASSERTs. 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 side-by-side diff with in-line comments
Download patch
Index: Source/modules/presentation/PresentationSession.h
diff --git a/Source/modules/presentation/PresentationSession.h b/Source/modules/presentation/PresentationSession.h
index 1fc4c309f8a8c8b0dbfa5ba1515fba0a31d0da8d..9f3fd3dce516574ff22b990a03b4d13cf50923c8 100644
--- a/Source/modules/presentation/PresentationSession.h
+++ b/Source/modules/presentation/PresentationSession.h
@@ -6,6 +6,7 @@
#define PresentationSession_h
#include "core/events/EventTarget.h"
+#include "core/fileapi/Blob.h"
mark a. foltz 2015/04/10 18:31:09 You can forward declare this instead of including
USE s.singapati at gmail.com 2015/04/13 09:38:23 Done.
#include "core/frame/DOMWindowProperty.h"
#include "public/platform/modules/presentation/WebPresentationSessionClient.h"
#include "wtf/text/WTFString.h"
@@ -16,6 +17,8 @@ class AtomicString;
namespace blink {
+class DOMArrayBuffer;
+class DOMArrayBufferView;
class Presentation;
class PresentationController;
@@ -39,7 +42,10 @@ public:
const String id() const { return m_id; }
const WTF::AtomicString& state() const;
- void postMessage(const String& message);
+ void send(const String& message, ExceptionState&);
+ void send(Blob* data, ExceptionState&);
+ void send(PassRefPtr<DOMArrayBuffer> data, ExceptionState&);
+ void send(PassRefPtr<DOMArrayBufferView> data, ExceptionState&);
void close();
DEFINE_ATTRIBUTE_EVENT_LISTENER(message);
« no previous file with comments | « Source/modules/presentation/PresentationController.cpp ('k') | Source/modules/presentation/PresentationSession.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698