| 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 2175 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2186 RefPtrWillBeRawPtr<FocusEvent> event = FocusEvent::create(EventTypeNames::fo
cus, false, false, document().domWindow(), 0, oldFocusedElement); | 2186 RefPtrWillBeRawPtr<FocusEvent> event = FocusEvent::create(EventTypeNames::fo
cus, false, false, document().domWindow(), 0, oldFocusedElement); |
| 2187 EventDispatcher::dispatchEvent(this, FocusEventDispatchMediator::create(even
t.release())); | 2187 EventDispatcher::dispatchEvent(this, FocusEventDispatchMediator::create(even
t.release())); |
| 2188 } | 2188 } |
| 2189 | 2189 |
| 2190 void Element::dispatchBlurEvent(Element* newFocusedElement) | 2190 void Element::dispatchBlurEvent(Element* newFocusedElement) |
| 2191 { | 2191 { |
| 2192 RefPtrWillBeRawPtr<FocusEvent> event = FocusEvent::create(EventTypeNames::bl
ur, false, false, document().domWindow(), 0, newFocusedElement); | 2192 RefPtrWillBeRawPtr<FocusEvent> event = FocusEvent::create(EventTypeNames::bl
ur, false, false, document().domWindow(), 0, newFocusedElement); |
| 2193 EventDispatcher::dispatchEvent(this, BlurEventDispatchMediator::create(event
.release())); | 2193 EventDispatcher::dispatchEvent(this, BlurEventDispatchMediator::create(event
.release())); |
| 2194 } | 2194 } |
| 2195 | 2195 |
| 2196 void Element::dispatchFocusInEvent(const AtomicString& eventType, Element* oldFo
cusedElement) | 2196 void Element::dispatchFocusInEvent(const AtomicString& eventType, Element* oldFo
cusedElement, FocusType) |
| 2197 { | 2197 { |
| 2198 ASSERT(!EventDispatchForbiddenScope::isEventDispatchForbidden()); | 2198 ASSERT(!EventDispatchForbiddenScope::isEventDispatchForbidden()); |
| 2199 ASSERT(eventType == EventTypeNames::focusin || eventType == EventTypeNames::
DOMFocusIn); | 2199 ASSERT(eventType == EventTypeNames::focusin || eventType == EventTypeNames::
DOMFocusIn); |
| 2200 dispatchScopedEventDispatchMediator(FocusInEventDispatchMediator::create(Foc
usEvent::create(eventType, true, false, document().domWindow(), 0, oldFocusedEle
ment))); | 2200 dispatchScopedEventDispatchMediator(FocusInEventDispatchMediator::create(Foc
usEvent::create(eventType, true, false, document().domWindow(), 0, oldFocusedEle
ment))); |
| 2201 } | 2201 } |
| 2202 | 2202 |
| 2203 void Element::dispatchFocusOutEvent(const AtomicString& eventType, Element* newF
ocusedElement) | 2203 void Element::dispatchFocusOutEvent(const AtomicString& eventType, Element* newF
ocusedElement) |
| 2204 { | 2204 { |
| 2205 ASSERT(!EventDispatchForbiddenScope::isEventDispatchForbidden()); | 2205 ASSERT(!EventDispatchForbiddenScope::isEventDispatchForbidden()); |
| 2206 ASSERT(eventType == EventTypeNames::focusout || eventType == EventTypeNames:
:DOMFocusOut); | 2206 ASSERT(eventType == EventTypeNames::focusout || eventType == EventTypeNames:
:DOMFocusOut); |
| (...skipping 1092 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3299 return v8::Handle<v8::Object>(); | 3299 return v8::Handle<v8::Object>(); |
| 3300 | 3300 |
| 3301 wrapper->SetPrototype(binding->prototype()); | 3301 wrapper->SetPrototype(binding->prototype()); |
| 3302 | 3302 |
| 3303 wrapperType->refObject(toScriptWrappableBase()); | 3303 wrapperType->refObject(toScriptWrappableBase()); |
| 3304 V8DOMWrapper::associateObjectWithWrapperNonTemplate(this, wrapperType, wrapp
er, isolate); | 3304 V8DOMWrapper::associateObjectWithWrapperNonTemplate(this, wrapperType, wrapp
er, isolate); |
| 3305 return wrapper; | 3305 return wrapper; |
| 3306 } | 3306 } |
| 3307 | 3307 |
| 3308 } // namespace blink | 3308 } // namespace blink |
| OLD | NEW |