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

Side by Side Diff: third_party/WebKit/public/web/WebDOMMessageEvent.h

Issue 2422793002: HTML MessagePort as mojo::MessagePipeHandle (Closed)
Patch Set: Add missing ScopedAsyncTaskScheduler instance for the new unit tests; required by a recent change t… Created 3 years, 10 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 /* 1 /*
2 * Copyright (C) 2011 Google Inc. All rights reserved. 2 * Copyright (C) 2011 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 // An interface for posting message events to the target frame. The message 47 // An interface for posting message events to the target frame. The message
48 // events are used for communication between documents and described here: 48 // events are used for communication between documents and described here:
49 // http://www.w3.org/TR/2012/WD-webmessaging-20120313/#terminology 49 // http://www.w3.org/TR/2012/WD-webmessaging-20120313/#terminology
50 class WebDOMMessageEvent : public WebDOMEvent { 50 class WebDOMMessageEvent : public WebDOMEvent {
51 public: 51 public:
52 BLINK_EXPORT WebDOMMessageEvent( 52 BLINK_EXPORT WebDOMMessageEvent(
53 const WebSerializedScriptValue& messageData, 53 const WebSerializedScriptValue& messageData,
54 const WebString& origin = WebString(), 54 const WebString& origin = WebString(),
55 const WebFrame* sourceFrame = nullptr, 55 const WebFrame* sourceFrame = nullptr,
56 const WebDocument& targetDocument = WebDocument(), 56 const WebDocument& targetDocument = WebDocument(),
57 const WebMessagePortChannelArray& channels = 57 WebMessagePortChannelArray channels = WebMessagePortChannelArray());
58 WebMessagePortChannelArray());
59 WebDOMMessageEvent() {} 58 WebDOMMessageEvent() {}
60 59
61 BLINK_EXPORT WebSerializedScriptValue data() const; 60 BLINK_EXPORT WebSerializedScriptValue data() const;
62 BLINK_EXPORT WebString origin() const; 61 BLINK_EXPORT WebString origin() const;
63 62
64 BLINK_EXPORT WebMessagePortChannelArray releaseChannels(); 63 BLINK_EXPORT WebMessagePortChannelArray releaseChannels();
65 64
66 #if BLINK_IMPLEMENTATION 65 #if BLINK_IMPLEMENTATION
67 explicit WebDOMMessageEvent(MessageEvent* e) : WebDOMEvent(e) {} 66 explicit WebDOMMessageEvent(MessageEvent* e) : WebDOMEvent(e) {}
68 #endif 67 #endif
69 }; 68 };
70 69
71 } // namespace blink 70 } // namespace blink
72 71
73 #endif 72 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698