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

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

Issue 481753002: Use Shadow DOM to display fallback content for images (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Updated Created 6 years, 3 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 158 matching lines...) Expand 10 before | Expand all | Expand 10 after
169 virtual RenderObject* createRenderer(RenderStyle*) OVERRIDE; 169 virtual RenderObject* createRenderer(RenderStyle*) OVERRIDE;
170 virtual void detach(const AttachContext& = AttachContext()) OVERRIDE FINAL; 170 virtual void detach(const AttachContext& = AttachContext()) OVERRIDE FINAL;
171 virtual void updateFocusAppearance(bool restorePreviousSelection) OVERRIDE F INAL; 171 virtual void updateFocusAppearance(bool restorePreviousSelection) OVERRIDE F INAL;
172 172
173 // FIXME: For isActivatedSubmit and setActivatedSubmit, we should use the NV I-idiom here by making 173 // FIXME: For isActivatedSubmit and setActivatedSubmit, we should use the NV I-idiom here by making
174 // it private virtual in all classes and expose a public method in HTMLFormC ontrolElement to call 174 // it private virtual in all classes and expose a public method in HTMLFormC ontrolElement to call
175 // the private virtual method. 175 // the private virtual method.
176 virtual bool isActivatedSubmit() const OVERRIDE FINAL; 176 virtual bool isActivatedSubmit() const OVERRIDE FINAL;
177 virtual void setActivatedSubmit(bool flag) OVERRIDE FINAL; 177 virtual void setActivatedSubmit(bool flag) OVERRIDE FINAL;
178 178
179 String altText() const; 179 virtual String altText() const OVERRIDE FINAL;
180 180
181 int maxResults() const { return m_maxResults; } 181 int maxResults() const { return m_maxResults; }
182 182
183 const AtomicString& defaultValue() const; 183 const AtomicString& defaultValue() const;
184 184
185 Vector<String> acceptMIMETypes(); 185 Vector<String> acceptMIMETypes();
186 Vector<String> acceptFileExtensions(); 186 Vector<String> acceptFileExtensions();
187 const AtomicString& alt() const; 187 const AtomicString& alt() const;
188 188
189 void setSize(unsigned); 189 void setSize(unsigned);
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
264 264
265 bool setupDateTimeChooserParameters(DateTimeChooserParameters&); 265 bool setupDateTimeChooserParameters(DateTimeChooserParameters&);
266 266
267 bool supportsInputModeAttribute() const; 267 bool supportsInputModeAttribute() const;
268 268
269 void setShouldRevealPassword(bool value); 269 void setShouldRevealPassword(bool value);
270 bool shouldRevealPassword() const { return m_shouldRevealPassword; } 270 bool shouldRevealPassword() const { return m_shouldRevealPassword; }
271 AXObject* popupRootAXObject(); 271 AXObject* popupRootAXObject();
272 virtual void didNotifySubtreeInsertionsToDocument() OVERRIDE; 272 virtual void didNotifySubtreeInsertionsToDocument() OVERRIDE;
273 273
274 virtual void ensureFallbackContent() OVERRIDE FINAL;
275 virtual void ensurePrimaryContent() OVERRIDE FINAL;
274 protected: 276 protected:
275 HTMLInputElement(Document&, HTMLFormElement*, bool createdByParser); 277 HTMLInputElement(Document&, HTMLFormElement*, bool createdByParser);
276 278
277 virtual void defaultEventHandler(Event*) OVERRIDE; 279 virtual void defaultEventHandler(Event*) OVERRIDE;
278 280
279 private: 281 private:
280 enum AutoCompleteSetting { Uninitialized, On, Off }; 282 enum AutoCompleteSetting { Uninitialized, On, Off };
281 283
282 virtual void didAddUserAgentShadowRoot(ShadowRoot&) OVERRIDE FINAL; 284 virtual void didAddUserAgentShadowRoot(ShadowRoot&) OVERRIDE FINAL;
283 virtual void willAddFirstAuthorShadowRoot() OVERRIDE FINAL; 285 virtual void willAddFirstAuthorShadowRoot() OVERRIDE FINAL;
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
395 // The ImageLoader must be owned by this element because the loader code ass umes 397 // The ImageLoader must be owned by this element because the loader code ass umes
396 // that it lives as long as its owning element lives. If we move the loader into 398 // that it lives as long as its owning element lives. If we move the loader into
397 // the ImageInput object we may delete the loader while this element lives o n. 399 // the ImageInput object we may delete the loader while this element lives o n.
398 OwnPtrWillBeMember<HTMLImageLoader> m_imageLoader; 400 OwnPtrWillBeMember<HTMLImageLoader> m_imageLoader;
399 OwnPtrWillBeMember<ListAttributeTargetObserver> m_listAttributeTargetObserve r; 401 OwnPtrWillBeMember<ListAttributeTargetObserver> m_listAttributeTargetObserve r;
400 }; 402 };
401 403
402 } // namespace blink 404 } // namespace blink
403 405
404 #endif // HTMLInputElement_h 406 #endif // HTMLInputElement_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698