OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2009 Google Inc. All rights reserved. | 2 * Copyright (C) 2009 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 are | 5 * modification, are permitted provided that the following conditions are |
6 * met: | 6 * met: |
7 * | 7 * |
8 * * Redistributions of source code must retain the above copyright | 8 * * 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 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
(...skipping 224 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
235 { | 235 { |
236 DOMWindow* window = V8DOMWrapper::convertToNativeObject<DOMWindow>(V8ClassIn
dex::DOMWINDOW, info.Holder()); | 236 DOMWindow* window = V8DOMWrapper::convertToNativeObject<DOMWindow>(V8ClassIn
dex::DOMWINDOW, info.Holder()); |
237 return V8DOMWrapper::getConstructor(V8ClassIndex::AUDIO, window); | 237 return V8DOMWrapper::getConstructor(V8ClassIndex::AUDIO, window); |
238 } | 238 } |
239 | 239 |
240 ACCESSOR_RUNTIME_ENABLER(DOMWindowAudio) | 240 ACCESSOR_RUNTIME_ENABLER(DOMWindowAudio) |
241 { | 241 { |
242 return MediaPlayer::isAvailable(); | 242 return MediaPlayer::isAvailable(); |
243 } | 243 } |
244 | 244 |
| 245 ACCESSOR_RUNTIME_ENABLER(DOMWindowHTMLMediaElement) |
| 246 { |
| 247 return MediaPlayer::isAvailable(); |
| 248 } |
| 249 |
| 250 ACCESSOR_RUNTIME_ENABLER(DOMWindowHTMLAudioElement) |
| 251 { |
| 252 return MediaPlayer::isAvailable(); |
| 253 } |
| 254 |
| 255 ACCESSOR_RUNTIME_ENABLER(DOMWindowHTMLVideoElement) |
| 256 { |
| 257 return MediaPlayer::isAvailable(); |
| 258 } |
| 259 |
| 260 ACCESSOR_RUNTIME_ENABLER(DOMWindowMediaError) |
| 261 { |
| 262 return MediaPlayer::isAvailable(); |
| 263 } |
| 264 |
245 #endif | 265 #endif |
246 | 266 |
247 #if ENABLE(SHARED_WORKERS) | 267 #if ENABLE(SHARED_WORKERS) |
248 ACCESSOR_RUNTIME_ENABLER(DOMWindowSharedWorker) | 268 ACCESSOR_RUNTIME_ENABLER(DOMWindowSharedWorker) |
249 { | 269 { |
250 return SharedWorkerRepository::isAvailable(); | 270 return SharedWorkerRepository::isAvailable(); |
251 } | 271 } |
252 #endif | 272 #endif |
253 | 273 |
254 ACCESSOR_GETTER(DOMWindowImage) | 274 ACCESSOR_GETTER(DOMWindowImage) |
(...skipping 659 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
914 return false; | 934 return false; |
915 | 935 |
916 // Allow access of GET and HAS if index is a subframe. | 936 // Allow access of GET and HAS if index is a subframe. |
917 if ((type == v8::ACCESS_GET || type == v8::ACCESS_HAS) && target->tree()->ch
ild(index)) | 937 if ((type == v8::ACCESS_GET || type == v8::ACCESS_HAS) && target->tree()->ch
ild(index)) |
918 return true; | 938 return true; |
919 | 939 |
920 return V8Proxy::canAccessFrame(target, false); | 940 return V8Proxy::canAccessFrame(target, false); |
921 } | 941 } |
922 | 942 |
923 } // namespace WebCore | 943 } // namespace WebCore |
OLD | NEW |