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

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: new tests + esprehn is smart. 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);
esprehn 2013/07/10 02:13:56 You need tests for this. You had them and then los
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 374 matching lines...) Expand 10 before | Expand all | Expand 10 after
641 void setHoverNode(PassRefPtr<Node>); 643 void setHoverNode(PassRefPtr<Node>);
642 Node* hoverNode() const { return m_hoverNode.get(); } 644 Node* hoverNode() const { return m_hoverNode.get(); }
643 645
644 void setActiveElement(PassRefPtr<Element>); 646 void setActiveElement(PassRefPtr<Element>);
645 Element* activeElement() const { return m_activeElement.get(); } 647 Element* activeElement() const { return m_activeElement.get(); }
646 648
647 void removeFocusedNodeOfSubtree(Node*, bool amongChildrenOnly = false); 649 void removeFocusedNodeOfSubtree(Node*, bool amongChildrenOnly = false);
648 void hoveredNodeDetached(Node*); 650 void hoveredNodeDetached(Node*);
649 void activeChainNodeDetached(Node*); 651 void activeChainNodeDetached(Node*);
650 652
651 void updateHoverActiveState(const HitTestRequest&, Element*); 653 void updateHoverActiveState(const HitTestRequest&, Element*, const PlatformM ouseEvent* = 0);
652 654
653 // Updates for :target (CSS3 selector). 655 // Updates for :target (CSS3 selector).
654 void setCSSTarget(Element*); 656 void setCSSTarget(Element*);
655 Element* cssTarget() const { return m_cssTarget; } 657 Element* cssTarget() const { return m_cssTarget; }
656 658
657 void scheduleForcedStyleRecalc(); 659 void scheduleForcedStyleRecalc();
658 void scheduleStyleRecalc(); 660 void scheduleStyleRecalc();
659 void unscheduleStyleRecalc(); 661 void unscheduleStyleRecalc();
660 bool hasPendingStyleRecalc() const; 662 bool hasPendingStyleRecalc() const;
661 bool hasPendingForcedStyleRecalc() const; 663 bool hasPendingForcedStyleRecalc() const;
(...skipping 762 matching lines...) Expand 10 before | Expand all | Expand 10 after
1424 inline bool Node::isDocumentNode() const 1426 inline bool Node::isDocumentNode() const
1425 { 1427 {
1426 return this == documentInternal(); 1428 return this == documentInternal();
1427 } 1429 }
1428 1430
1429 Node* eventTargetNodeForDocument(Document*); 1431 Node* eventTargetNodeForDocument(Document*);
1430 1432
1431 } // namespace WebCore 1433 } // namespace WebCore
1432 1434
1433 #endif // Document_h 1435 #endif // Document_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698