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

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: Attribute tests. 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
« no previous file with comments | « Source/bindings/scripts/CodeGeneratorV8.pm ('k') | Source/core/dom/Document.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 * (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 229 matching lines...) Expand 10 before | Expand all | Expand 10 after
240 DEFINE_ATTRIBUTE_EVENT_LISTENER(drop); 240 DEFINE_ATTRIBUTE_EVENT_LISTENER(drop);
241 DEFINE_ATTRIBUTE_EVENT_LISTENER(dragstart); 241 DEFINE_ATTRIBUTE_EVENT_LISTENER(dragstart);
242 DEFINE_ATTRIBUTE_EVENT_LISTENER(drag); 242 DEFINE_ATTRIBUTE_EVENT_LISTENER(drag);
243 DEFINE_ATTRIBUTE_EVENT_LISTENER(dragend); 243 DEFINE_ATTRIBUTE_EVENT_LISTENER(dragend);
244 DEFINE_ATTRIBUTE_EVENT_LISTENER(input); 244 DEFINE_ATTRIBUTE_EVENT_LISTENER(input);
245 DEFINE_ATTRIBUTE_EVENT_LISTENER(invalid); 245 DEFINE_ATTRIBUTE_EVENT_LISTENER(invalid);
246 DEFINE_ATTRIBUTE_EVENT_LISTENER(keydown); 246 DEFINE_ATTRIBUTE_EVENT_LISTENER(keydown);
247 DEFINE_ATTRIBUTE_EVENT_LISTENER(keypress); 247 DEFINE_ATTRIBUTE_EVENT_LISTENER(keypress);
248 DEFINE_ATTRIBUTE_EVENT_LISTENER(keyup); 248 DEFINE_ATTRIBUTE_EVENT_LISTENER(keyup);
249 DEFINE_ATTRIBUTE_EVENT_LISTENER(mousedown); 249 DEFINE_ATTRIBUTE_EVENT_LISTENER(mousedown);
250 DEFINE_ATTRIBUTE_EVENT_LISTENER(mouseenter);
251 DEFINE_ATTRIBUTE_EVENT_LISTENER(mouseleave);
250 DEFINE_ATTRIBUTE_EVENT_LISTENER(mousemove); 252 DEFINE_ATTRIBUTE_EVENT_LISTENER(mousemove);
251 DEFINE_ATTRIBUTE_EVENT_LISTENER(mouseout); 253 DEFINE_ATTRIBUTE_EVENT_LISTENER(mouseout);
252 DEFINE_ATTRIBUTE_EVENT_LISTENER(mouseover); 254 DEFINE_ATTRIBUTE_EVENT_LISTENER(mouseover);
253 DEFINE_ATTRIBUTE_EVENT_LISTENER(mouseup); 255 DEFINE_ATTRIBUTE_EVENT_LISTENER(mouseup);
254 DEFINE_ATTRIBUTE_EVENT_LISTENER(mousewheel); 256 DEFINE_ATTRIBUTE_EVENT_LISTENER(mousewheel);
255 DEFINE_ATTRIBUTE_EVENT_LISTENER(scroll); 257 DEFINE_ATTRIBUTE_EVENT_LISTENER(scroll);
256 DEFINE_ATTRIBUTE_EVENT_LISTENER(select); 258 DEFINE_ATTRIBUTE_EVENT_LISTENER(select);
257 DEFINE_ATTRIBUTE_EVENT_LISTENER(submit); 259 DEFINE_ATTRIBUTE_EVENT_LISTENER(submit);
258 260
259 DEFINE_ATTRIBUTE_EVENT_LISTENER(blur); 261 DEFINE_ATTRIBUTE_EVENT_LISTENER(blur);
(...skipping 374 matching lines...) Expand 10 before | Expand all | Expand 10 after
634 void setHoverNode(PassRefPtr<Node>); 636 void setHoverNode(PassRefPtr<Node>);
635 Node* hoverNode() const { return m_hoverNode.get(); } 637 Node* hoverNode() const { return m_hoverNode.get(); }
636 638
637 void setActiveElement(PassRefPtr<Element>); 639 void setActiveElement(PassRefPtr<Element>);
638 Element* activeElement() const { return m_activeElement.get(); } 640 Element* activeElement() const { return m_activeElement.get(); }
639 641
640 void removeFocusedNodeOfSubtree(Node*, bool amongChildrenOnly = false); 642 void removeFocusedNodeOfSubtree(Node*, bool amongChildrenOnly = false);
641 void hoveredNodeDetached(Node*); 643 void hoveredNodeDetached(Node*);
642 void activeChainNodeDetached(Node*); 644 void activeChainNodeDetached(Node*);
643 645
644 void updateHoverActiveState(const HitTestRequest&, Element*); 646 void updateHoverActiveState(const HitTestRequest&, Element*, const PlatformM ouseEvent* = 0);
645 647
646 // Updates for :target (CSS3 selector). 648 // Updates for :target (CSS3 selector).
647 void setCSSTarget(Element*); 649 void setCSSTarget(Element*);
648 Element* cssTarget() const { return m_cssTarget; } 650 Element* cssTarget() const { return m_cssTarget; }
649 651
650 void scheduleForcedStyleRecalc(); 652 void scheduleForcedStyleRecalc();
651 void scheduleStyleRecalc(); 653 void scheduleStyleRecalc();
652 void unscheduleStyleRecalc(); 654 void unscheduleStyleRecalc();
653 bool hasPendingStyleRecalc() const; 655 bool hasPendingStyleRecalc() const;
654 bool hasPendingForcedStyleRecalc() const; 656 bool hasPendingForcedStyleRecalc() const;
(...skipping 743 matching lines...) Expand 10 before | Expand all | Expand 10 after
1398 inline bool Node::isDocumentNode() const 1400 inline bool Node::isDocumentNode() const
1399 { 1401 {
1400 return this == documentInternal(); 1402 return this == documentInternal();
1401 } 1403 }
1402 1404
1403 Node* eventTargetNodeForDocument(Document*); 1405 Node* eventTargetNodeForDocument(Document*);
1404 1406
1405 } // namespace WebCore 1407 } // namespace WebCore
1406 1408
1407 #endif // Document_h 1409 #endif // Document_h
OLDNEW
« no previous file with comments | « Source/bindings/scripts/CodeGeneratorV8.pm ('k') | Source/core/dom/Document.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698