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

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

Issue 18836002: Implement 'mouseenter' and 'mouseleave' from DOM Level 3 Events. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 5 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
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 * (C) 2006 Alexey Proskuryakov (ap@webkit.org) 5 * (C) 2006 Alexey Proskuryakov (ap@webkit.org)
6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2012 Apple Inc. All r ights reserved. 6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2012 Apple Inc. All r ights reserved.
7 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t orchmobile.com/) 7 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t orchmobile.com/)
8 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies) 8 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies)
9 * Copyright (C) 2011 Google Inc. All rights reserved. 9 * Copyright (C) 2011 Google Inc. All rights reserved.
10 * 10 *
(...skipping 236 matching lines...) Expand 10 before | Expand all | Expand 10 after
247 DEFINE_ATTRIBUTE_EVENT_LISTENER(drop); 247 DEFINE_ATTRIBUTE_EVENT_LISTENER(drop);
248 DEFINE_ATTRIBUTE_EVENT_LISTENER(dragstart); 248 DEFINE_ATTRIBUTE_EVENT_LISTENER(dragstart);
249 DEFINE_ATTRIBUTE_EVENT_LISTENER(drag); 249 DEFINE_ATTRIBUTE_EVENT_LISTENER(drag);
250 DEFINE_ATTRIBUTE_EVENT_LISTENER(dragend); 250 DEFINE_ATTRIBUTE_EVENT_LISTENER(dragend);
251 DEFINE_ATTRIBUTE_EVENT_LISTENER(input); 251 DEFINE_ATTRIBUTE_EVENT_LISTENER(input);
252 DEFINE_ATTRIBUTE_EVENT_LISTENER(invalid); 252 DEFINE_ATTRIBUTE_EVENT_LISTENER(invalid);
253 DEFINE_ATTRIBUTE_EVENT_LISTENER(keydown); 253 DEFINE_ATTRIBUTE_EVENT_LISTENER(keydown);
254 DEFINE_ATTRIBUTE_EVENT_LISTENER(keypress); 254 DEFINE_ATTRIBUTE_EVENT_LISTENER(keypress);
255 DEFINE_ATTRIBUTE_EVENT_LISTENER(keyup); 255 DEFINE_ATTRIBUTE_EVENT_LISTENER(keyup);
256 DEFINE_ATTRIBUTE_EVENT_LISTENER(mousedown); 256 DEFINE_ATTRIBUTE_EVENT_LISTENER(mousedown);
257 DEFINE_ATTRIBUTE_EVENT_LISTENER(mouseenter);
258 DEFINE_ATTRIBUTE_EVENT_LISTENER(mouseleave);
257 DEFINE_ATTRIBUTE_EVENT_LISTENER(mousemove); 259 DEFINE_ATTRIBUTE_EVENT_LISTENER(mousemove);
258 DEFINE_ATTRIBUTE_EVENT_LISTENER(mouseout); 260 DEFINE_ATTRIBUTE_EVENT_LISTENER(mouseout);
259 DEFINE_ATTRIBUTE_EVENT_LISTENER(mouseover); 261 DEFINE_ATTRIBUTE_EVENT_LISTENER(mouseover);
260 DEFINE_ATTRIBUTE_EVENT_LISTENER(mouseup); 262 DEFINE_ATTRIBUTE_EVENT_LISTENER(mouseup);
261 DEFINE_ATTRIBUTE_EVENT_LISTENER(mousewheel); 263 DEFINE_ATTRIBUTE_EVENT_LISTENER(mousewheel);
262 DEFINE_ATTRIBUTE_EVENT_LISTENER(scroll); 264 DEFINE_ATTRIBUTE_EVENT_LISTENER(scroll);
263 DEFINE_ATTRIBUTE_EVENT_LISTENER(select); 265 DEFINE_ATTRIBUTE_EVENT_LISTENER(select);
264 DEFINE_ATTRIBUTE_EVENT_LISTENER(submit); 266 DEFINE_ATTRIBUTE_EVENT_LISTENER(submit);
265 267
266 DEFINE_ATTRIBUTE_EVENT_LISTENER(blur); 268 DEFINE_ATTRIBUTE_EVENT_LISTENER(blur);
(...skipping 385 matching lines...) Expand 10 before | Expand all | Expand 10 after
652 void setHoverNode(PassRefPtr<Node>); 654 void setHoverNode(PassRefPtr<Node>);
653 Node* hoverNode() const { return m_hoverNode.get(); } 655 Node* hoverNode() const { return m_hoverNode.get(); }
654 656
655 void setActiveElement(PassRefPtr<Element>); 657 void setActiveElement(PassRefPtr<Element>);
656 Element* activeElement() const { return m_activeElement.get(); } 658 Element* activeElement() const { return m_activeElement.get(); }
657 659
658 void removeFocusedNodeOfSubtree(Node*, bool amongChildrenOnly = false); 660 void removeFocusedNodeOfSubtree(Node*, bool amongChildrenOnly = false);
659 void hoveredNodeDetached(Node*); 661 void hoveredNodeDetached(Node*);
660 void activeChainNodeDetached(Node*); 662 void activeChainNodeDetached(Node*);
661 663
662 void updateHoverActiveState(const HitTestRequest&, Element*); 664 void updateHoverActiveState(const HitTestRequest&, Element*, const PlatformM ouseEvent* = 0);
663 665
664 // Updates for :target (CSS3 selector). 666 // Updates for :target (CSS3 selector).
665 void setCSSTarget(Element*); 667 void setCSSTarget(Element*);
666 Element* cssTarget() const { return m_cssTarget; } 668 Element* cssTarget() const { return m_cssTarget; }
667 669
668 void scheduleForcedStyleRecalc(); 670 void scheduleForcedStyleRecalc();
669 void scheduleStyleRecalc(); 671 void scheduleStyleRecalc();
670 void unscheduleStyleRecalc(); 672 void unscheduleStyleRecalc();
671 bool hasPendingStyleRecalc() const; 673 bool hasPendingStyleRecalc() const;
672 bool hasPendingForcedStyleRecalc() const; 674 bool hasPendingForcedStyleRecalc() const;
(...skipping 769 matching lines...) Expand 10 before | Expand all | Expand 10 after
1442 inline bool Node::isDocumentNode() const 1444 inline bool Node::isDocumentNode() const
1443 { 1445 {
1444 return this == documentInternal(); 1446 return this == documentInternal();
1445 } 1447 }
1446 1448
1447 Node* eventTargetNodeForDocument(Document*); 1449 Node* eventTargetNodeForDocument(Document*);
1448 1450
1449 } // namespace WebCore 1451 } // namespace WebCore
1450 1452
1451 #endif // Document_h 1453 #endif // Document_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698