OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2009, 2011 Google Inc. All rights reserved. | 2 * Copyright (C) 2009, 2011 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 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
53 #include "core/frame/Settings.h" | 53 #include "core/frame/Settings.h" |
54 #include "core/frame/UseCounter.h" | 54 #include "core/frame/UseCounter.h" |
55 #include "core/frame/csp/ContentSecurityPolicy.h" | 55 #include "core/frame/csp/ContentSecurityPolicy.h" |
56 #include "core/html/HTMLCollection.h" | 56 #include "core/html/HTMLCollection.h" |
57 #include "core/html/HTMLDocument.h" | 57 #include "core/html/HTMLDocument.h" |
58 #include "core/inspector/ScriptCallStack.h" | 58 #include "core/inspector/ScriptCallStack.h" |
59 #include "core/loader/FrameLoadRequest.h" | 59 #include "core/loader/FrameLoadRequest.h" |
60 #include "core/loader/FrameLoader.h" | 60 #include "core/loader/FrameLoader.h" |
61 #include "core/storage/Storage.h" | 61 #include "core/storage/Storage.h" |
62 #include "platform/PlatformScreen.h" | 62 #include "platform/PlatformScreen.h" |
63 #include "platform/graphics/media/MediaPlayer.h" | |
64 #include "wtf/Assertions.h" | 63 #include "wtf/Assertions.h" |
65 #include "wtf/OwnPtr.h" | 64 #include "wtf/OwnPtr.h" |
66 | 65 |
67 namespace blink { | 66 namespace blink { |
68 | 67 |
69 void V8Window::eventAttributeGetterCustom(const v8::PropertyCallbackInfo<v8::Val
ue>& info) | 68 void V8Window::eventAttributeGetterCustom(const v8::PropertyCallbackInfo<v8::Val
ue>& info) |
70 { | 69 { |
71 LocalFrame* frame = toLocalDOMWindow(V8Window::toImpl(info.Holder()))->frame
(); | 70 LocalFrame* frame = toLocalDOMWindow(V8Window::toImpl(info.Holder()))->frame
(); |
72 ExceptionState exceptionState(ExceptionState::GetterContext, "event", "Windo
w", info.Holder(), info.GetIsolate()); | 71 ExceptionState exceptionState(ExceptionState::GetterContext, "event", "Windo
w", info.Holder(), info.GetIsolate()); |
73 if (!BindingSecurity::shouldAllowAccessToFrame(info.GetIsolate(), frame, exc
eptionState)) { | 72 if (!BindingSecurity::shouldAllowAccessToFrame(info.GetIsolate(), frame, exc
eptionState)) { |
(...skipping 381 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
455 v8::Handle<v8::Context> context = toV8Context(frame, DOMWrapperWorld::curren
t(isolate)); | 454 v8::Handle<v8::Context> context = toV8Context(frame, DOMWrapperWorld::curren
t(isolate)); |
456 if (context.IsEmpty()) | 455 if (context.IsEmpty()) |
457 return v8Undefined(); | 456 return v8Undefined(); |
458 | 457 |
459 v8::Handle<v8::Object> global = context->Global(); | 458 v8::Handle<v8::Object> global = context->Global(); |
460 ASSERT(!global.IsEmpty()); | 459 ASSERT(!global.IsEmpty()); |
461 return global; | 460 return global; |
462 } | 461 } |
463 | 462 |
464 } // namespace blink | 463 } // namespace blink |
OLD | NEW |