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

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

Issue 138003005: Move dispatchChangeEvent to HTMLFormControlElement (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Retry Created 6 years, 11 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/Node.h ('k') | Source/core/html/HTMLFormControlElement.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 Dirk Mueller (mueller@kde.org) 4 * (C) 2001 Dirk Mueller (mueller@kde.org)
5 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All r ights reserved. 5 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All r ights reserved.
6 * Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies) 6 * Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies)
7 * Copyright (C) 2009 Torch Mobile Inc. All rights reserved. (http://www.torchmo bile.com/) 7 * Copyright (C) 2009 Torch Mobile Inc. All rights reserved. (http://www.torchmo bile.com/)
8 * 8 *
9 * This library is free software; you can redistribute it and/or 9 * This library is free software; you can redistribute it and/or
10 * modify it under the terms of the GNU Library General Public 10 * modify it under the terms of the GNU Library General Public
(...skipping 2336 matching lines...) Expand 10 before | Expand all | Expand 10 after
2347 RefPtr<BeforeLoadEvent> beforeLoadEvent = BeforeLoadEvent::create(sourceURL) ; 2347 RefPtr<BeforeLoadEvent> beforeLoadEvent = BeforeLoadEvent::create(sourceURL) ;
2348 dispatchEvent(beforeLoadEvent.get()); 2348 dispatchEvent(beforeLoadEvent.get());
2349 return !beforeLoadEvent->defaultPrevented(); 2349 return !beforeLoadEvent->defaultPrevented();
2350 } 2350 }
2351 2351
2352 bool Node::dispatchWheelEvent(const PlatformWheelEvent& event) 2352 bool Node::dispatchWheelEvent(const PlatformWheelEvent& event)
2353 { 2353 {
2354 return EventDispatcher::dispatchEvent(this, WheelEventDispatchMediator::crea te(event, document().domWindow())); 2354 return EventDispatcher::dispatchEvent(this, WheelEventDispatchMediator::crea te(event, document().domWindow()));
2355 } 2355 }
2356 2356
2357 void Node::dispatchChangeEvent()
2358 {
2359 dispatchScopedEvent(Event::createBubble(EventTypeNames::change));
2360 }
2361
2362 void Node::dispatchInputEvent() 2357 void Node::dispatchInputEvent()
2363 { 2358 {
2364 dispatchScopedEvent(Event::createBubble(EventTypeNames::input)); 2359 dispatchScopedEvent(Event::createBubble(EventTypeNames::input));
2365 } 2360 }
2366 2361
2367 void Node::defaultEventHandler(Event* event) 2362 void Node::defaultEventHandler(Event* event)
2368 { 2363 {
2369 if (event->target() != this) 2364 if (event->target() != this)
2370 return; 2365 return;
2371 const AtomicString& eventType = event->type(); 2366 const AtomicString& eventType = event->type();
(...skipping 269 matching lines...) Expand 10 before | Expand all | Expand 10 after
2641 node->showTreeForThis(); 2636 node->showTreeForThis();
2642 } 2637 }
2643 2638
2644 void showNodePath(const WebCore::Node* node) 2639 void showNodePath(const WebCore::Node* node)
2645 { 2640 {
2646 if (node) 2641 if (node)
2647 node->showNodePathForThis(); 2642 node->showNodePathForThis();
2648 } 2643 }
2649 2644
2650 #endif 2645 #endif
OLDNEW
« no previous file with comments | « Source/core/dom/Node.h ('k') | Source/core/html/HTMLFormControlElement.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698