Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(25)

Side by Side Diff: Source/core/dom/Element.cpp

Issue 541993003: Generate focusin for input type=date/time when selected by tab (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Updated to latest master and updated test Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « Source/core/dom/Element.h ('k') | Source/core/html/HTMLInputElement.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « Source/core/dom/Element.h ('k') | Source/core/html/HTMLInputElement.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698