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

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

Issue 52443003: Reland 160869 "Move innerHTML and outerHTML to Element" (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 7 years, 1 month 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
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 Peter Kelly (pmk@post.com) 4 * (C) 2001 Peter Kelly (pmk@post.com)
5 * (C) 2001 Dirk Mueller (mueller@kde.org) 5 * (C) 2001 Dirk Mueller (mueller@kde.org)
6 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2013 Appl e Inc. All rights reserved. 6 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2013 Appl e Inc. All rights reserved.
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 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 SpellcheckAttributeTrue, 75 SpellcheckAttributeTrue,
76 SpellcheckAttributeFalse, 76 SpellcheckAttributeFalse,
77 SpellcheckAttributeDefault 77 SpellcheckAttributeDefault
78 }; 78 };
79 79
80 class Element : public ContainerNode { 80 class Element : public ContainerNode {
81 public: 81 public:
82 static PassRefPtr<Element> create(const QualifiedName&, Document*); 82 static PassRefPtr<Element> create(const QualifiedName&, Document*);
83 virtual ~Element(); 83 virtual ~Element();
84 84
85 String innerHTML() const;
86 String outerHTML() const;
87 void setInnerHTML(const String&, ExceptionState&);
88 void setOuterHTML(const String&, ExceptionState&);
89
85 DEFINE_ATTRIBUTE_EVENT_LISTENER(beforecopy); 90 DEFINE_ATTRIBUTE_EVENT_LISTENER(beforecopy);
86 DEFINE_ATTRIBUTE_EVENT_LISTENER(beforecut); 91 DEFINE_ATTRIBUTE_EVENT_LISTENER(beforecut);
87 DEFINE_ATTRIBUTE_EVENT_LISTENER(beforepaste); 92 DEFINE_ATTRIBUTE_EVENT_LISTENER(beforepaste);
88 DEFINE_ATTRIBUTE_EVENT_LISTENER(copy); 93 DEFINE_ATTRIBUTE_EVENT_LISTENER(copy);
89 DEFINE_ATTRIBUTE_EVENT_LISTENER(cut); 94 DEFINE_ATTRIBUTE_EVENT_LISTENER(cut);
90 DEFINE_ATTRIBUTE_EVENT_LISTENER(paste); 95 DEFINE_ATTRIBUTE_EVENT_LISTENER(paste);
91 DEFINE_ATTRIBUTE_EVENT_LISTENER(search); 96 DEFINE_ATTRIBUTE_EVENT_LISTENER(search);
92 DEFINE_ATTRIBUTE_EVENT_LISTENER(selectstart); 97 DEFINE_ATTRIBUTE_EVENT_LISTENER(selectstart);
93 DEFINE_ATTRIBUTE_EVENT_LISTENER(touchcancel); 98 DEFINE_ATTRIBUTE_EVENT_LISTENER(touchcancel);
94 DEFINE_ATTRIBUTE_EVENT_LISTENER(touchend); 99 DEFINE_ATTRIBUTE_EVENT_LISTENER(touchend);
(...skipping 761 matching lines...) Expand 10 before | Expand all | Expand 10 after
856 } 861 }
857 862
858 inline bool isShadowHost(const Element* element) 863 inline bool isShadowHost(const Element* element)
859 { 864 {
860 return element && element->shadow(); 865 return element && element->shadow();
861 } 866 }
862 867
863 } // namespace 868 } // namespace
864 869
865 #endif 870 #endif
OLDNEW
« no previous file with comments | « LayoutTests/svg/css/script-tests/svg-attribute-length-parsing.js ('k') | Source/core/dom/Element.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698