| Index: Source/bindings/v8/Dictionary.cpp
|
| diff --git a/Source/bindings/v8/Dictionary.cpp b/Source/bindings/v8/Dictionary.cpp
|
| index 4d2bb39cc6ac6f320af20d5b12e0cb400b7aa3d4..8d79d38e4839b505ace58de51a44afb3903ca33c 100644
|
| --- a/Source/bindings/v8/Dictionary.cpp
|
| +++ b/Source/bindings/v8/Dictionary.cpp
|
| @@ -28,6 +28,7 @@
|
|
|
| #include "V8DOMError.h"
|
| #include "V8EventTarget.h"
|
| +#include "V8Gamepad.h"
|
| #include "V8IDBKeyRange.h"
|
| #include "V8MIDIPort.h"
|
| #include "V8MediaKeyError.h"
|
| @@ -44,6 +45,7 @@
|
| #include "bindings/v8/V8Binding.h"
|
| #include "bindings/v8/custom/V8ArrayBufferViewCustom.h"
|
| #include "bindings/v8/custom/V8Uint8ArrayCustom.h"
|
| +#include "modules/gamepad/Gamepad.h"
|
| #include "modules/indexeddb/IDBKeyRange.h"
|
| #include "modules/speech/SpeechRecognitionError.h"
|
| #include "modules/speech/SpeechRecognitionResult.h"
|
| @@ -508,6 +510,16 @@ bool Dictionary::get(const String& key, RefPtrWillBeRawPtr<SpeechRecognitionResu
|
| return true;
|
| }
|
|
|
| +bool Dictionary::get(const String& key, RefPtrWillBeRawPtr<Gamepad>& value) const
|
| +{
|
| + v8::Local<v8::Value> v8Value;
|
| + if (!getKey(key, v8Value))
|
| + return false;
|
| +
|
| + value = V8Gamepad::toNativeWithTypeCheck(m_isolate, v8Value);
|
| + return true;
|
| +}
|
| +
|
| bool Dictionary::get(const String& key, RefPtr<MediaStream>& value) const
|
| {
|
| v8::Local<v8::Value> v8Value;
|
|
|