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

Side by Side Diff: Source/core/html/HTMLInputElement.h

Issue 137943002: Update more core classes to use OVERRIDE / FINAL when needed (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 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 | Annotate | Revision Log
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 * Copyright (C) 2012 Samsung Electronics. All rights reserved. 6 * Copyright (C) 2012 Samsung Electronics. 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 117 matching lines...) Expand 10 before | Expand all | Expand 10 after
128 void setIndeterminate(bool); 128 void setIndeterminate(bool);
129 // shouldAppearChecked is used by the rendering tree/CSS while checked() is used by JS to determine checked state 129 // shouldAppearChecked is used by the rendering tree/CSS while checked() is used by JS to determine checked state
130 bool shouldAppearChecked() const; 130 bool shouldAppearChecked() const;
131 virtual bool shouldAppearIndeterminate() const OVERRIDE; 131 virtual bool shouldAppearIndeterminate() const OVERRIDE;
132 132
133 int size() const; 133 int size() const;
134 bool sizeShouldIncludeDecoration(int& preferredSize) const; 134 bool sizeShouldIncludeDecoration(int& preferredSize) const;
135 135
136 void setType(const AtomicString&); 136 void setType(const AtomicString&);
137 137
138 String value() const; 138 virtual String value() const OVERRIDE;
139 void setValue(const String&, ExceptionState&, TextFieldEventBehavior = Dispa tchNoEvent); 139 void setValue(const String&, ExceptionState&, TextFieldEventBehavior = Dispa tchNoEvent);
140 void setValue(const String&, TextFieldEventBehavior = DispatchNoEvent); 140 void setValue(const String&, TextFieldEventBehavior = DispatchNoEvent);
141 void setValueForUser(const String&); 141 void setValueForUser(const String&);
142 // Checks if the specified string would be a valid value. 142 // Checks if the specified string would be a valid value.
143 // We should not call this for types with no string value such as CHECKBOX a nd RADIO. 143 // We should not call this for types with no string value such as CHECKBOX a nd RADIO.
144 bool isValidValue(const String&) const; 144 bool isValidValue(const String&) const;
145 bool hasDirtyValue() const { return !m_valueIfDirty.isNull(); }; 145 bool hasDirtyValue() const { return !m_valueIfDirty.isNull(); };
146 146
147 String sanitizeValue(const String&) const; 147 String sanitizeValue(const String&) const;
148 148
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after
270 bool hasImageLoader() const { return m_imageLoader; } 270 bool hasImageLoader() const { return m_imageLoader; }
271 HTMLImageLoader* imageLoader(); 271 HTMLImageLoader* imageLoader();
272 272
273 bool setupDateTimeChooserParameters(DateTimeChooserParameters&); 273 bool setupDateTimeChooserParameters(DateTimeChooserParameters&);
274 274
275 bool supportsInputModeAttribute() const; 275 bool supportsInputModeAttribute() const;
276 276
277 protected: 277 protected:
278 HTMLInputElement(Document&, HTMLFormElement*, bool createdByParser); 278 HTMLInputElement(Document&, HTMLFormElement*, bool createdByParser);
279 279
280 virtual void defaultEventHandler(Event*); 280 virtual void defaultEventHandler(Event*) OVERRIDE;
281 281
282 private: 282 private:
283 enum AutoCompleteSetting { Uninitialized, On, Off }; 283 enum AutoCompleteSetting { Uninitialized, On, Off };
284 284
285 virtual void didAddUserAgentShadowRoot(ShadowRoot&) OVERRIDE FINAL; 285 virtual void didAddUserAgentShadowRoot(ShadowRoot&) OVERRIDE FINAL;
286 virtual void didAddShadowRoot(ShadowRoot&) OVERRIDE FINAL; 286 virtual void didAddShadowRoot(ShadowRoot&) OVERRIDE FINAL;
287 287
288 virtual void willChangeForm() OVERRIDE FINAL; 288 virtual void willChangeForm() OVERRIDE FINAL;
289 virtual void didChangeForm() OVERRIDE FINAL; 289 virtual void didChangeForm() OVERRIDE FINAL;
290 virtual InsertionNotificationRequest insertedInto(ContainerNode*) OVERRIDE; 290 virtual InsertionNotificationRequest insertedInto(ContainerNode*) OVERRIDE;
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
392 // that it lives as long as its owning element lives. If we move the loader into 392 // that it lives as long as its owning element lives. If we move the loader into
393 // the ImageInput object we may delete the loader while this element lives o n. 393 // the ImageInput object we may delete the loader while this element lives o n.
394 OwnPtr<HTMLImageLoader> m_imageLoader; 394 OwnPtr<HTMLImageLoader> m_imageLoader;
395 OwnPtr<ListAttributeTargetObserver> m_listAttributeTargetObserver; 395 OwnPtr<ListAttributeTargetObserver> m_listAttributeTargetObserver;
396 }; 396 };
397 397
398 DEFINE_NODE_TYPE_CASTS(HTMLInputElement, hasTagName(HTMLNames::inputTag)); 398 DEFINE_NODE_TYPE_CASTS(HTMLInputElement, hasTagName(HTMLNames::inputTag));
399 399
400 } //namespace 400 } //namespace
401 #endif 401 #endif
OLDNEW
« no previous file with comments | « Source/core/frame/animation/CSSPropertyAnimation.cpp ('k') | Source/core/html/HTMLMarqueeElement.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698