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

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

Issue 1420693006: Introduce a struct to store arguments of Element::focus(). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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) 2000 Dirk Mueller (mueller@kde.org) 4 * (C) 2000 Dirk Mueller (mueller@kde.org)
5 * Copyright (C) 2004, 2005, 2006, 2007, 2010 Apple Inc. All rights reserved. 5 * Copyright (C) 2004, 2005, 2006, 2007, 2010 Apple Inc. All rights reserved.
6 * 6 *
7 * This library is free software; you can redistribute it and/or 7 * This library is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU Library General Public 8 * modify it under the terms of the GNU Library General Public
9 * License as published by the Free Software Foundation; either 9 * License as published by the Free Software Foundation; either
10 * version 2 of the License, or (at your option) any later version. 10 * version 2 of the License, or (at your option) any later version.
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
118 void childrenChanged(const ChildrenChange&) override; 118 void childrenChanged(const ChildrenChange&) override;
119 void parseAttribute(const QualifiedName&, const AtomicString&) override; 119 void parseAttribute(const QualifiedName&, const AtomicString&) override;
120 bool isPresentationAttribute(const QualifiedName&) const override; 120 bool isPresentationAttribute(const QualifiedName&) const override;
121 void collectStyleForPresentationAttribute(const QualifiedName&, const Atomic String&, MutableStylePropertySet*) override; 121 void collectStyleForPresentationAttribute(const QualifiedName&, const Atomic String&, MutableStylePropertySet*) override;
122 LayoutObject* createLayoutObject(const ComputedStyle&) override; 122 LayoutObject* createLayoutObject(const ComputedStyle&) override;
123 void appendToFormData(FormData&) override; 123 void appendToFormData(FormData&) override;
124 void resetImpl() override; 124 void resetImpl() override;
125 bool hasCustomFocusLogic() const override; 125 bool hasCustomFocusLogic() const override;
126 bool shouldShowFocusRingOnMouseFocus() const override; 126 bool shouldShowFocusRingOnMouseFocus() const override;
127 bool isKeyboardFocusable() const override; 127 bool isKeyboardFocusable() const override;
128 void updateFocusAppearance(bool restorePreviousSelection) override; 128 void updateFocusAppearance(SelectionBehaviorOnFocus) override;
129 129
130 void accessKeyAction(bool sendMouseEvents) override; 130 void accessKeyAction(bool sendMouseEvents) override;
131 131
132 bool matchesReadOnlyPseudoClass() const override; 132 bool matchesReadOnlyPseudoClass() const override;
133 bool matchesReadWritePseudoClass() const override; 133 bool matchesReadWritePseudoClass() const override;
134 void copyNonAttributePropertiesFromElement(const Element&) final; 134 void copyNonAttributePropertiesFromElement(const Element&) final;
135 135
136 // If the String* argument is 0, apply this->value(). 136 // If the String* argument is 0, apply this->value().
137 bool valueMissing(const String*) const; 137 bool valueMissing(const String*) const;
138 bool tooLong(const String*, NeedsToCheckDirtyFlag) const; 138 bool tooLong(const String*, NeedsToCheckDirtyFlag) const;
139 bool tooShort(const String*, NeedsToCheckDirtyFlag) const; 139 bool tooShort(const String*, NeedsToCheckDirtyFlag) const;
140 140
141 unsigned m_rows; 141 unsigned m_rows;
142 unsigned m_cols; 142 unsigned m_cols;
143 WrapMethod m_wrap; 143 WrapMethod m_wrap;
144 mutable String m_value; 144 mutable String m_value;
145 mutable bool m_isDirty; 145 mutable bool m_isDirty;
146 bool m_valueIsUpToDate; 146 bool m_valueIsUpToDate;
147 unsigned m_isPlaceholderVisible : 1; 147 unsigned m_isPlaceholderVisible : 1;
148 String m_suggestedValue; 148 String m_suggestedValue;
149 }; 149 };
150 150
151 } // namespace blink 151 } // namespace blink
152 152
153 #endif // HTMLTextAreaElement_h 153 #endif // HTMLTextAreaElement_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/html/HTMLSelectElement.cpp ('k') | third_party/WebKit/Source/core/html/HTMLTextAreaElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698