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

Side by Side Diff: Source/modules/encryptedmedia/NavigatorRequestMediaKeySystemAccess.h

Issue 759893002: IDL: Auto-generate NativeValueTraits for IDL dictionaries (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/bindings/tests/results/core/V8TestInterfaceEventInit.cpp ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 NavigatorRequestMediaKeySystemAccess_h 5 #ifndef NavigatorRequestMediaKeySystemAccess_h
6 #define NavigatorRequestMediaKeySystemAccess_h 6 #define NavigatorRequestMediaKeySystemAccess_h
7 7
8 #include "bindings/core/v8/Dictionary.h" 8 #include "bindings/core/v8/Dictionary.h"
9 #include "bindings/core/v8/ScriptPromise.h" 9 #include "bindings/core/v8/ScriptPromise.h"
10 #include "bindings/core/v8/V8Binding.h" 10 #include "bindings/core/v8/V8Binding.h"
(...skipping 27 matching lines...) Expand all
38 const String& keySystem, 38 const String& keySystem,
39 const Vector<MediaKeySystemOptions>& supportedConfigurations); 39 const Vector<MediaKeySystemOptions>& supportedConfigurations);
40 40
41 virtual void trace(Visitor*) override; 41 virtual void trace(Visitor*) override;
42 42
43 private: 43 private:
44 NavigatorRequestMediaKeySystemAccess(); 44 NavigatorRequestMediaKeySystemAccess();
45 static const char* supplementName(); 45 static const char* supplementName();
46 }; 46 };
47 47
48 // This is needed by the generated code for Navigator to convert a JavaScript
49 // object into a MediaKeySystemOptions object.
50 template <>
51 struct NativeValueTraits<MediaKeySystemOptions> {
52 static inline MediaKeySystemOptions nativeValue(const v8::Handle<v8::Value>& value, v8::Isolate* isolate, ExceptionState& exceptionState)
53 {
54 MediaKeySystemOptions impl;
55 V8MediaKeySystemOptions::toImpl(isolate, value, impl, exceptionState);
56 return impl;
57 }
58 };
59
60 } // namespace blink 48 } // namespace blink
61 49
62 #endif // NavigatorRequestMediaKeySystemAccess_h 50 #endif // NavigatorRequestMediaKeySystemAccess_h
OLDNEW
« no previous file with comments | « Source/bindings/tests/results/core/V8TestInterfaceEventInit.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698