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

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

Issue 14280004: Revert removal of events (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 8 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 | Annotate | Revision Log
« no previous file with comments | « Source/core/dom/EventRetargeter.cpp ('k') | Source/core/dom/Node.cpp » ('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, 2009 Torch Mobile Inc. All rights reserved. (http://www.t orchmobile.com/) 6 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t orchmobile.com/)
7 * 7 *
8 * This library is free software; you can redistribute it and/or 8 * This library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Library General Public 9 * modify it under the terms of the GNU Library General Public
10 * License as published by the Free Software Foundation; either 10 * License as published by the Free Software Foundation; either
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
74 class QualifiedName; 74 class QualifiedName;
75 class RadioNodeList; 75 class RadioNodeList;
76 class RegisteredEventListener; 76 class RegisteredEventListener;
77 class RenderArena; 77 class RenderArena;
78 class RenderBox; 78 class RenderBox;
79 class RenderBoxModelObject; 79 class RenderBoxModelObject;
80 class RenderObject; 80 class RenderObject;
81 class RenderStyle; 81 class RenderStyle;
82 class ShadowRoot; 82 class ShadowRoot;
83 class TagNodeList; 83 class TagNodeList;
84
85 #if ENABLE(TOUCH_EVENTS)
84 class TouchEvent; 86 class TouchEvent;
87 #endif
85 88
86 typedef int ExceptionCode; 89 typedef int ExceptionCode;
87 90
88 const int nodeStyleChangeShift = 15; 91 const int nodeStyleChangeShift = 15;
89 92
90 // SyntheticStyleChange means that we need to go through the entire style change logic even though 93 // SyntheticStyleChange means that we need to go through the entire style change logic even though
91 // no style property has actually changed. It is used to restructure the tree wh en, for instance, 94 // no style property has actually changed. It is used to restructure the tree wh en, for instance,
92 // RenderLayers are created or destroyed due to animation changes. 95 // RenderLayers are created or destroyed due to animation changes.
93 enum StyleChangeType { 96 enum StyleChangeType {
94 NoStyleChange = 0, 97 NoStyleChange = 0,
(...skipping 528 matching lines...) Expand 10 before | Expand all | Expand 10 after
623 626
624 void dispatchSubtreeModifiedEvent(); 627 void dispatchSubtreeModifiedEvent();
625 bool dispatchDOMActivateEvent(int detail, PassRefPtr<Event> underlyingEvent) ; 628 bool dispatchDOMActivateEvent(int detail, PassRefPtr<Event> underlyingEvent) ;
626 void dispatchFocusInEvent(const AtomicString& eventType, PassRefPtr<Node> ol dFocusedNode); 629 void dispatchFocusInEvent(const AtomicString& eventType, PassRefPtr<Node> ol dFocusedNode);
627 void dispatchFocusOutEvent(const AtomicString& eventType, PassRefPtr<Node> n ewFocusedNode); 630 void dispatchFocusOutEvent(const AtomicString& eventType, PassRefPtr<Node> n ewFocusedNode);
628 631
629 bool dispatchKeyEvent(const PlatformKeyboardEvent&); 632 bool dispatchKeyEvent(const PlatformKeyboardEvent&);
630 bool dispatchWheelEvent(const PlatformWheelEvent&); 633 bool dispatchWheelEvent(const PlatformWheelEvent&);
631 bool dispatchMouseEvent(const PlatformMouseEvent&, const AtomicString& event Type, int clickCount = 0, Node* relatedTarget = 0); 634 bool dispatchMouseEvent(const PlatformMouseEvent&, const AtomicString& event Type, int clickCount = 0, Node* relatedTarget = 0);
632 bool dispatchGestureEvent(const PlatformGestureEvent&); 635 bool dispatchGestureEvent(const PlatformGestureEvent&);
636 #if ENABLE(TOUCH_EVENTS)
633 bool dispatchTouchEvent(PassRefPtr<TouchEvent>); 637 bool dispatchTouchEvent(PassRefPtr<TouchEvent>);
638 #endif
634 639
635 void dispatchSimulatedClick(Event* underlyingEvent, SimulatedClickMouseEvent Options = SendNoEvents, SimulatedClickVisualOptions = ShowPressedLook); 640 void dispatchSimulatedClick(Event* underlyingEvent, SimulatedClickMouseEvent Options = SendNoEvents, SimulatedClickVisualOptions = ShowPressedLook);
636 641
637 virtual bool dispatchBeforeLoadEvent(const String& sourceURL); 642 virtual bool dispatchBeforeLoadEvent(const String& sourceURL);
638 virtual void dispatchFocusEvent(PassRefPtr<Node> oldFocusedNode, FocusDirect ion); 643 virtual void dispatchFocusEvent(PassRefPtr<Node> oldFocusedNode, FocusDirect ion);
639 virtual void dispatchBlurEvent(PassRefPtr<Node> newFocusedNode); 644 virtual void dispatchBlurEvent(PassRefPtr<Node> newFocusedNode);
640 virtual void dispatchChangeEvent(); 645 virtual void dispatchChangeEvent();
641 virtual void dispatchInputEvent(); 646 virtual void dispatchInputEvent();
642 647
643 // Perform the default action for an event. 648 // Perform the default action for an event.
(...skipping 228 matching lines...) Expand 10 before | Expand all | Expand 10 after
872 877
873 } //namespace 878 } //namespace
874 879
875 #ifndef NDEBUG 880 #ifndef NDEBUG
876 // Outside the WebCore namespace for ease of invocation from gdb. 881 // Outside the WebCore namespace for ease of invocation from gdb.
877 void showTree(const WebCore::Node*); 882 void showTree(const WebCore::Node*);
878 void showNodePath(const WebCore::Node*); 883 void showNodePath(const WebCore::Node*);
879 #endif 884 #endif
880 885
881 #endif 886 #endif
OLDNEW
« no previous file with comments | « Source/core/dom/EventRetargeter.cpp ('k') | Source/core/dom/Node.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698