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

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

Issue 16081007: Introduce toHTMLInputElement(Node*), and use it. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 6 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/css/resolver/StyleResolver.cpp ('k') | Source/core/editing/FrameSelection.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 599 matching lines...) Expand 10 before | Expand all | Expand 10 after
610 unsigned short compareDocumentPosition(const Node*) const; 610 unsigned short compareDocumentPosition(const Node*) const;
611 611
612 enum ShadowTreesTreatment { 612 enum ShadowTreesTreatment {
613 TreatShadowTreesAsDisconnected, 613 TreatShadowTreesAsDisconnected,
614 TreatShadowTreesAsComposed 614 TreatShadowTreesAsComposed
615 }; 615 };
616 616
617 unsigned short compareDocumentPositionInternal(const Node*, ShadowTreesTreat ment) const; 617 unsigned short compareDocumentPositionInternal(const Node*, ShadowTreesTreat ment) const;
618 618
619 virtual Node* toNode(); 619 virtual Node* toNode();
620 // Obsolete. Use toHTMLInputElement.
620 virtual HTMLInputElement* toInputElement(); 621 virtual HTMLInputElement* toInputElement();
621 622
622 virtual const AtomicString& interfaceName() const; 623 virtual const AtomicString& interfaceName() const;
623 virtual ScriptExecutionContext* scriptExecutionContext() const; 624 virtual ScriptExecutionContext* scriptExecutionContext() const;
624 625
625 virtual bool addEventListener(const AtomicString& eventType, PassRefPtr<Even tListener>, bool useCapture); 626 virtual bool addEventListener(const AtomicString& eventType, PassRefPtr<Even tListener>, bool useCapture);
626 virtual bool removeEventListener(const AtomicString& eventType, EventListene r*, bool useCapture); 627 virtual bool removeEventListener(const AtomicString& eventType, EventListene r*, bool useCapture);
627 628
628 // Handlers to do/undo actions on the target node before an event is dispatc hed to it and after the event 629 // Handlers to do/undo actions on the target node before an event is dispatc hed to it and after the event
629 // has been dispatched. The data pointer is handed back by the preDispatch and passed to postDispatch. 630 // has been dispatched. The data pointer is handed back by the preDispatch and passed to postDispatch.
(...skipping 277 matching lines...) Expand 10 before | Expand all | Expand 10 after
907 908
908 } //namespace 909 } //namespace
909 910
910 #ifndef NDEBUG 911 #ifndef NDEBUG
911 // Outside the WebCore namespace for ease of invocation from gdb. 912 // Outside the WebCore namespace for ease of invocation from gdb.
912 void showTree(const WebCore::Node*); 913 void showTree(const WebCore::Node*);
913 void showNodePath(const WebCore::Node*); 914 void showNodePath(const WebCore::Node*);
914 #endif 915 #endif
915 916
916 #endif 917 #endif
OLDNEW
« no previous file with comments | « Source/core/css/resolver/StyleResolver.cpp ('k') | Source/core/editing/FrameSelection.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698