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

Side by Side Diff: Source/bindings/modules/v8/DictionaryHelperForModules.cpp

Issue 650063002: Move MediaStream and MediaStreamTrack implementation from modules/mediastream to core/mediastream. Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebased. Created 6 years, 2 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
« no previous file with comments | « Source/bindings/core/v8/DictionaryHelperForCore.cpp ('k') | Source/core/core.gypi » ('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) 2010 Google Inc. All rights reserved. 2 * Copyright (C) 2010 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 * 7 *
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. 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 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 14 matching lines...) Expand all
25 25
26 #include "config.h" 26 #include "config.h"
27 27
28 #include "bindings/core/v8/DictionaryHelperForBindings.h" 28 #include "bindings/core/v8/DictionaryHelperForBindings.h"
29 #include "bindings/core/v8/ExceptionMessages.h" 29 #include "bindings/core/v8/ExceptionMessages.h"
30 #include "bindings/core/v8/ExceptionState.h" 30 #include "bindings/core/v8/ExceptionState.h"
31 #include "bindings/core/v8/V8Binding.h" 31 #include "bindings/core/v8/V8Binding.h"
32 #include "bindings/modules/v8/V8Gamepad.h" 32 #include "bindings/modules/v8/V8Gamepad.h"
33 #include "bindings/modules/v8/V8Headers.h" 33 #include "bindings/modules/v8/V8Headers.h"
34 #include "bindings/modules/v8/V8MIDIPort.h" 34 #include "bindings/modules/v8/V8MIDIPort.h"
35 #include "bindings/modules/v8/V8MediaStream.h"
36 #include "bindings/modules/v8/V8SpeechRecognitionResult.h" 35 #include "bindings/modules/v8/V8SpeechRecognitionResult.h"
37 #include "bindings/modules/v8/V8SpeechRecognitionResultList.h" 36 #include "bindings/modules/v8/V8SpeechRecognitionResultList.h"
38 #include "modules/gamepad/Gamepad.h" 37 #include "modules/gamepad/Gamepad.h"
39 #include "modules/mediastream/MediaStream.h"
40 #include "modules/speech/SpeechRecognitionResult.h" 38 #include "modules/speech/SpeechRecognitionResult.h"
41 #include "modules/speech/SpeechRecognitionResultList.h" 39 #include "modules/speech/SpeechRecognitionResultList.h"
42 40
43 namespace blink { 41 namespace blink {
44 42
45 template <> 43 template <>
46 struct DictionaryHelperTraits<MIDIPort> { 44 struct DictionaryHelperTraits<MIDIPort> {
47 typedef V8MIDIPort type; 45 typedef V8MIDIPort type;
48 }; 46 };
49 47
50 template <> 48 template <>
51 struct DictionaryHelperTraits<SpeechRecognitionResultList> { 49 struct DictionaryHelperTraits<SpeechRecognitionResultList> {
52 typedef V8SpeechRecognitionResultList type; 50 typedef V8SpeechRecognitionResultList type;
53 }; 51 };
54 52
55 template <> 53 template <>
56 struct DictionaryHelperTraits<Gamepad> { 54 struct DictionaryHelperTraits<Gamepad> {
57 typedef V8Gamepad type; 55 typedef V8Gamepad type;
58 }; 56 };
59 57
60 template <> 58 template <>
61 struct DictionaryHelperTraits<MediaStream> {
62 typedef V8MediaStream type;
63 };
64
65 template <>
66 struct DictionaryHelperTraits<Headers> { 59 struct DictionaryHelperTraits<Headers> {
67 typedef V8Headers type; 60 typedef V8Headers type;
68 }; 61 };
69 62
70 template bool DictionaryHelper::get(const Dictionary&, const String& key, Member <MIDIPort>& value); 63 template bool DictionaryHelper::get(const Dictionary&, const String& key, Member <MIDIPort>& value);
71 template bool DictionaryHelper::get(const Dictionary&, const String& key, Member <SpeechRecognitionResultList>& value); 64 template bool DictionaryHelper::get(const Dictionary&, const String& key, Member <SpeechRecognitionResultList>& value);
72 template bool DictionaryHelper::get(const Dictionary&, const String& key, Member <Gamepad>& value); 65 template bool DictionaryHelper::get(const Dictionary&, const String& key, Member <Gamepad>& value);
73 template bool DictionaryHelper::get(const Dictionary&, const String& key, Member <MediaStream>& value);
74 template bool DictionaryHelper::get(const Dictionary&, const String& key, Member <Headers>& value); 66 template bool DictionaryHelper::get(const Dictionary&, const String& key, Member <Headers>& value);
75 67
76 template bool DictionaryHelper::convert(const Dictionary&, Dictionary::Conversio nContext&, const String& key, Member<MIDIPort>& value); 68 template bool DictionaryHelper::convert(const Dictionary&, Dictionary::Conversio nContext&, const String& key, Member<MIDIPort>& value);
77 template bool DictionaryHelper::convert(const Dictionary&, Dictionary::Conversio nContext&, const String& key, Member<SpeechRecognitionResultList>& value); 69 template bool DictionaryHelper::convert(const Dictionary&, Dictionary::Conversio nContext&, const String& key, Member<SpeechRecognitionResultList>& value);
78 template bool DictionaryHelper::convert(const Dictionary&, Dictionary::Conversio nContext&, const String& key, Member<Gamepad>& value); 70 template bool DictionaryHelper::convert(const Dictionary&, Dictionary::Conversio nContext&, const String& key, Member<Gamepad>& value);
79 template bool DictionaryHelper::convert(const Dictionary&, Dictionary::Conversio nContext&, const String& key, Member<MediaStream>& value);
80 template bool DictionaryHelper::convert(const Dictionary&, Dictionary::Conversio nContext&, const String& key, Member<Headers>& value); 71 template bool DictionaryHelper::convert(const Dictionary&, Dictionary::Conversio nContext&, const String& key, Member<Headers>& value);
81 72
82 } // namespace blink 73 } // namespace blink
OLDNEW
« no previous file with comments | « Source/bindings/core/v8/DictionaryHelperForCore.cpp ('k') | Source/core/core.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698