OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) | 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) |
3 * (C) 1999 Antti Koivisto (koivisto@kde.org) | 3 * (C) 1999 Antti Koivisto (koivisto@kde.org) |
4 * (C) 2001 Peter Kelly (pmk@post.com) | 4 * (C) 2001 Peter Kelly (pmk@post.com) |
5 * (C) 2001 Dirk Mueller (mueller@kde.org) | 5 * (C) 2001 Dirk Mueller (mueller@kde.org) |
6 * (C) 2007 David Smith (catfish.man@gmail.com) | 6 * (C) 2007 David Smith (catfish.man@gmail.com) |
7 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2012, 2013 Apple Inc.
All rights reserved. | 7 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2012, 2013 Apple Inc.
All rights reserved. |
8 * (C) 2007 Eric Seidel (eric@webkit.org) | 8 * (C) 2007 Eric Seidel (eric@webkit.org) |
9 * | 9 * |
10 * This library is free software; you can redistribute it and/or | 10 * This library is free software; you can redistribute it and/or |
(...skipping 2129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2140 RefPtrWillBeRawPtr<FocusEvent> event = FocusEvent::create(EventTypeNames::fo
cus, false, false, document().domWindow(), 0, oldFocusedElement); | 2140 RefPtrWillBeRawPtr<FocusEvent> event = FocusEvent::create(EventTypeNames::fo
cus, false, false, document().domWindow(), 0, oldFocusedElement); |
2141 EventDispatcher::dispatchEvent(this, FocusEventDispatchMediator::create(even
t.release())); | 2141 EventDispatcher::dispatchEvent(this, FocusEventDispatchMediator::create(even
t.release())); |
2142 } | 2142 } |
2143 | 2143 |
2144 void Element::dispatchBlurEvent(Element* newFocusedElement) | 2144 void Element::dispatchBlurEvent(Element* newFocusedElement) |
2145 { | 2145 { |
2146 RefPtrWillBeRawPtr<FocusEvent> event = FocusEvent::create(EventTypeNames::bl
ur, false, false, document().domWindow(), 0, newFocusedElement); | 2146 RefPtrWillBeRawPtr<FocusEvent> event = FocusEvent::create(EventTypeNames::bl
ur, false, false, document().domWindow(), 0, newFocusedElement); |
2147 EventDispatcher::dispatchEvent(this, BlurEventDispatchMediator::create(event
.release())); | 2147 EventDispatcher::dispatchEvent(this, BlurEventDispatchMediator::create(event
.release())); |
2148 } | 2148 } |
2149 | 2149 |
2150 void Element::dispatchFocusInEvent(const AtomicString& eventType, Element* oldFo
cusedElement) | 2150 void Element::dispatchFocusInEvent(const AtomicString& eventType, Element* oldFo
cusedElement, FocusType) |
2151 { | 2151 { |
2152 ASSERT(!EventDispatchForbiddenScope::isEventDispatchForbidden()); | 2152 ASSERT(!EventDispatchForbiddenScope::isEventDispatchForbidden()); |
2153 ASSERT(eventType == EventTypeNames::focusin || eventType == EventTypeNames::
DOMFocusIn); | 2153 ASSERT(eventType == EventTypeNames::focusin || eventType == EventTypeNames::
DOMFocusIn); |
2154 dispatchScopedEventDispatchMediator(FocusInEventDispatchMediator::create(Foc
usEvent::create(eventType, true, false, document().domWindow(), 0, oldFocusedEle
ment))); | 2154 dispatchScopedEventDispatchMediator(FocusInEventDispatchMediator::create(Foc
usEvent::create(eventType, true, false, document().domWindow(), 0, oldFocusedEle
ment))); |
2155 } | 2155 } |
2156 | 2156 |
2157 void Element::dispatchFocusOutEvent(const AtomicString& eventType, Element* newF
ocusedElement) | 2157 void Element::dispatchFocusOutEvent(const AtomicString& eventType, Element* newF
ocusedElement) |
2158 { | 2158 { |
2159 ASSERT(!EventDispatchForbiddenScope::isEventDispatchForbidden()); | 2159 ASSERT(!EventDispatchForbiddenScope::isEventDispatchForbidden()); |
2160 ASSERT(eventType == EventTypeNames::focusout || eventType == EventTypeNames:
:DOMFocusOut); | 2160 ASSERT(eventType == EventTypeNames::focusout || eventType == EventTypeNames:
:DOMFocusOut); |
(...skipping 1087 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3248 return v8::Handle<v8::Object>(); | 3248 return v8::Handle<v8::Object>(); |
3249 | 3249 |
3250 wrapper->SetPrototype(binding->prototype()); | 3250 wrapper->SetPrototype(binding->prototype()); |
3251 | 3251 |
3252 wrapperType->refObject(toScriptWrappableBase()); | 3252 wrapperType->refObject(toScriptWrappableBase()); |
3253 V8DOMWrapper::associateObjectWithWrapperNonTemplate(this, wrapperType, wrapp
er, isolate); | 3253 V8DOMWrapper::associateObjectWithWrapperNonTemplate(this, wrapperType, wrapp
er, isolate); |
3254 return wrapper; | 3254 return wrapper; |
3255 } | 3255 } |
3256 | 3256 |
3257 } // namespace blink | 3257 } // namespace blink |
OLD | NEW |