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

Side by Side Diff: third_party/WebKit/Source/core/html/TextControlElement.h

Issue 2623513005: Introduce Element::AttributeModificationParams (Closed)
Patch Set: Created 3 years, 11 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
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) 2000 Dirk Mueller (mueller@kde.org) 4 * (C) 2000 Dirk Mueller (mueller@kde.org)
5 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010 Apple Inc. All rights 5 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010 Apple Inc. All rights
6 * reserved. 6 * reserved.
7 * Copyright (C) 2009, 2010, 2011 Google Inc. All rights reserved. 7 * Copyright (C) 2009, 2010, 2011 Google Inc. All rights reserved.
8 * 8 *
9 * This library is free software; you can redistribute it and/or 9 * This library is free software; you can redistribute it and/or
10 * modify it under the terms of the GNU Library General Public 10 * modify it under the terms of the GNU Library General Public
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after
144 static Position startOfWord(const Position&); 144 static Position startOfWord(const Position&);
145 static Position endOfWord(const Position&); 145 static Position endOfWord(const Position&);
146 static Position startOfSentence(const Position&); 146 static Position startOfSentence(const Position&);
147 static Position endOfSentence(const Position&); 147 static Position endOfSentence(const Position&);
148 148
149 protected: 149 protected:
150 TextControlElement(const QualifiedName&, Document&); 150 TextControlElement(const QualifiedName&, Document&);
151 bool isPlaceholderEmpty() const; 151 bool isPlaceholderEmpty() const;
152 virtual void updatePlaceholderText() = 0; 152 virtual void updatePlaceholderText() = 0;
153 153
154 void parseAttribute(const QualifiedName&, 154 void parseAttribute(const AttributeModificationParams&) override;
155 const AtomicString&,
156 const AtomicString&) override;
157 155
158 void restoreCachedSelection(); 156 void restoreCachedSelection();
159 157
160 void defaultEventHandler(Event*) override; 158 void defaultEventHandler(Event*) override;
161 virtual void subtreeHasChanged() = 0; 159 virtual void subtreeHasChanged() = 0;
162 160
163 void setLastChangeWasNotUserEdit() { m_lastChangeWasUserEdit = false; } 161 void setLastChangeWasNotUserEdit() { m_lastChangeWasUserEdit = false; }
164 void addPlaceholderBreakElementIfNecessary(); 162 void addPlaceholderBreakElementIfNecessary();
165 String valueWithHardLineBreaks() const; 163 String valueWithHardLineBreaks() const;
166 164
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
221 } 219 }
222 220
223 DEFINE_HTMLELEMENT_TYPE_CASTS_WITH_FUNCTION(TextControlElement); 221 DEFINE_HTMLELEMENT_TYPE_CASTS_WITH_FUNCTION(TextControlElement);
224 222
225 TextControlElement* enclosingTextControl(const Position&); 223 TextControlElement* enclosingTextControl(const Position&);
226 TextControlElement* enclosingTextControl(const Node*); 224 TextControlElement* enclosingTextControl(const Node*);
227 225
228 } // namespace blink 226 } // namespace blink
229 227
230 #endif 228 #endif
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/html/HTMLVideoElement.cpp ('k') | third_party/WebKit/Source/core/html/TextControlElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698