| OLD | NEW |
| 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 Loading... |
| 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 |
| OLD | NEW |