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

Side by Side Diff: Source/core/html/MediaKeyEvent.h

Issue 799733002: Use event init dictionaries in core/{css,html} (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years 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
« no previous file with comments | « Source/core/css/MediaQueryListEventInit.idl ('k') | Source/core/html/MediaKeyEvent.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2012 Google Inc. All rights reserved. 2 * Copyright (C) 2012 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 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 11 matching lines...) Expand all
22 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 22 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
23 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 23 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
24 */ 24 */
25 25
26 #ifndef MediaKeyEvent_h 26 #ifndef MediaKeyEvent_h
27 #define MediaKeyEvent_h 27 #define MediaKeyEvent_h
28 28
29 #include "core/dom/DOMTypedArray.h" 29 #include "core/dom/DOMTypedArray.h"
30 #include "core/events/Event.h" 30 #include "core/events/Event.h"
31 #include "core/html/MediaKeyError.h" 31 #include "core/html/MediaKeyError.h"
32 #include "core/html/MediaKeyEventInit.h"
32 33
33 namespace blink { 34 namespace blink {
34 35
35 struct MediaKeyEventInit : public EventInit {
36 MediaKeyEventInit();
37
38 String keySystem;
39 String sessionId;
40 RefPtr<DOMUint8Array> initData;
41 RefPtr<DOMUint8Array> message;
42 String defaultURL;
43 RefPtrWillBeMember<MediaKeyError> errorCode;
44 unsigned short systemCode;
45 };
46
47 class MediaKeyEvent final : public Event { 36 class MediaKeyEvent final : public Event {
48 DEFINE_WRAPPERTYPEINFO(); 37 DEFINE_WRAPPERTYPEINFO();
49 public: 38 public:
50 virtual ~MediaKeyEvent(); 39 virtual ~MediaKeyEvent();
51 40
52 static PassRefPtrWillBeRawPtr<MediaKeyEvent> create() 41 static PassRefPtrWillBeRawPtr<MediaKeyEvent> create()
53 { 42 {
54 return adoptRefWillBeNoop(new MediaKeyEvent); 43 return adoptRefWillBeNoop(new MediaKeyEvent);
55 } 44 }
56 45
(...skipping 23 matching lines...) Expand all
80 RefPtr<DOMUint8Array> m_initData; 69 RefPtr<DOMUint8Array> m_initData;
81 RefPtr<DOMUint8Array> m_message; 70 RefPtr<DOMUint8Array> m_message;
82 String m_defaultURL; 71 String m_defaultURL;
83 RefPtrWillBeMember<MediaKeyError> m_errorCode; 72 RefPtrWillBeMember<MediaKeyError> m_errorCode;
84 unsigned short m_systemCode; 73 unsigned short m_systemCode;
85 }; 74 };
86 75
87 } // namespace blink 76 } // namespace blink
88 77
89 #endif // MediaKeyEvent_h 78 #endif // MediaKeyEvent_h
OLDNEW
« no previous file with comments | « Source/core/css/MediaQueryListEventInit.idl ('k') | Source/core/html/MediaKeyEvent.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698