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

Unified Diff: Source/core/dom/ParentNode.h

Issue 23005010: Drop [LegacyImplementedInBaseClass] from ParentNode interface (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fix build issues Created 7 years, 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/core/core.gypi ('k') | Source/core/dom/ParentNode.idl » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/dom/ParentNode.h
diff --git a/Source/core/page/DOMWindowTimers.h b/Source/core/dom/ParentNode.h
similarity index 73%
copy from Source/core/page/DOMWindowTimers.h
copy to Source/core/dom/ParentNode.h
index 2a28f81810c751f9331f6f421d0c0d57a87b7813..9fb949a35b0aefb308f11af7253806ad7167cbe8 100644
--- a/Source/core/page/DOMWindowTimers.h
+++ b/Source/core/dom/ParentNode.h
@@ -1,6 +1,4 @@
/*
- * Copyright (C) 2006, 2007, 2008, 2010 Apple Inc. All rights reserved.
- * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies)
* Copyright (C) 2013 Samsung Electronics. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -30,23 +28,36 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef DOMWindowTimers_h
-#define DOMWindowTimers_h
+#ifndef ParentNode_h
+#define ParentNode_h
-#include "wtf/Forward.h"
+#include "core/dom/ContainerNode.h"
namespace WebCore {
-class EventTarget;
-class ScheduledAction;
+class ParentNode {
+public:
+ static PassRefPtr<HTMLCollection> children(ContainerNode* node)
+ {
+ return node->children();
+ }
-namespace DOMWindowTimers {
-int setTimeout(EventTarget*, PassOwnPtr<ScheduledAction>, int timeout);
-int setInterval(EventTarget*, PassOwnPtr<ScheduledAction>, int timeout);
-void clearTimeout(EventTarget*, int timeoutId);
-void clearInterval(EventTarget*, int timeoutId);
-}
+ static Element* firstElementChild(ContainerNode* node)
+ {
+ return node->firstElementChild();
+ }
+
+ static Element* lastElementChild(ContainerNode* node)
+ {
+ return node->lastElementChild();
+ }
+
+ static unsigned childElementCount(ContainerNode* node)
+ {
+ return node->childElementCount();
+ }
+};
} // namespace WebCore
-#endif // DOMWindowTimers_h
+#endif // ParentNode_h
« no previous file with comments | « Source/core/core.gypi ('k') | Source/core/dom/ParentNode.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698