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

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

Issue 696123002: Revert of Use Shadow DOM to display fallback content for images (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 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 | Annotate | Revision Log
« no previous file with comments | « Source/core/html/HTMLImageLoader.cpp ('k') | Source/core/html/HTMLInputElement.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 136 matching lines...) Expand 10 before | Expand all | Expand 10 after
147 virtual RenderObject* createRenderer(RenderStyle*) override; 147 virtual RenderObject* createRenderer(RenderStyle*) override;
148 virtual void detach(const AttachContext& = AttachContext()) override final; 148 virtual void detach(const AttachContext& = AttachContext()) override final;
149 virtual void updateFocusAppearance(bool restorePreviousSelection) override f inal; 149 virtual void updateFocusAppearance(bool restorePreviousSelection) override f inal;
150 150
151 // FIXME: For isActivatedSubmit and setActivatedSubmit, we should use the NV I-idiom here by making 151 // FIXME: For isActivatedSubmit and setActivatedSubmit, we should use the NV I-idiom here by making
152 // it private virtual in all classes and expose a public method in HTMLFormC ontrolElement to call 152 // it private virtual in all classes and expose a public method in HTMLFormC ontrolElement to call
153 // the private virtual method. 153 // the private virtual method.
154 virtual bool isActivatedSubmit() const override final; 154 virtual bool isActivatedSubmit() const override final;
155 virtual void setActivatedSubmit(bool flag) override final; 155 virtual void setActivatedSubmit(bool flag) override final;
156 156
157 virtual String altText() const override final; 157 String altText() const;
158 158
159 int maxResults() const { return m_maxResults; } 159 int maxResults() const { return m_maxResults; }
160 160
161 const AtomicString& defaultValue() const; 161 const AtomicString& defaultValue() const;
162 162
163 Vector<String> acceptMIMETypes(); 163 Vector<String> acceptMIMETypes();
164 Vector<String> acceptFileExtensions(); 164 Vector<String> acceptFileExtensions();
165 const AtomicString& alt() const; 165 const AtomicString& alt() const;
166 166
167 void setSize(unsigned); 167 void setSize(unsigned);
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
245 245
246 bool setupDateTimeChooserParameters(DateTimeChooserParameters&); 246 bool setupDateTimeChooserParameters(DateTimeChooserParameters&);
247 247
248 bool supportsInputModeAttribute() const; 248 bool supportsInputModeAttribute() const;
249 249
250 void setShouldRevealPassword(bool value); 250 void setShouldRevealPassword(bool value);
251 bool shouldRevealPassword() const { return m_shouldRevealPassword; } 251 bool shouldRevealPassword() const { return m_shouldRevealPassword; }
252 AXObject* popupRootAXObject(); 252 AXObject* popupRootAXObject();
253 virtual void didNotifySubtreeInsertionsToDocument() override; 253 virtual void didNotifySubtreeInsertionsToDocument() override;
254 254
255 virtual void ensureFallbackContent() override final;
256 virtual void ensurePrimaryContent() override final;
257 protected: 255 protected:
258 HTMLInputElement(Document&, HTMLFormElement*, bool createdByParser); 256 HTMLInputElement(Document&, HTMLFormElement*, bool createdByParser);
259 257
260 virtual void defaultEventHandler(Event*) override; 258 virtual void defaultEventHandler(Event*) override;
261 259
262 private: 260 private:
263 enum AutoCompleteSetting { Uninitialized, On, Off }; 261 enum AutoCompleteSetting { Uninitialized, On, Off };
264 262
265 virtual void didAddUserAgentShadowRoot(ShadowRoot&) override final; 263 virtual void didAddUserAgentShadowRoot(ShadowRoot&) override final;
266 virtual void willAddFirstAuthorShadowRoot() override final; 264 virtual void willAddFirstAuthorShadowRoot() override final;
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
343 void setListAttributeTargetObserver(PassOwnPtrWillBeRawPtr<ListAttributeTarg etObserver>); 341 void setListAttributeTargetObserver(PassOwnPtrWillBeRawPtr<ListAttributeTarg etObserver>);
344 void resetListAttributeTargetObserver(); 342 void resetListAttributeTargetObserver();
345 void parseMaxLengthAttribute(const AtomicString&); 343 void parseMaxLengthAttribute(const AtomicString&);
346 void parseMinLengthAttribute(const AtomicString&); 344 void parseMinLengthAttribute(const AtomicString&);
347 void updateValueIfNeeded(); 345 void updateValueIfNeeded();
348 346
349 // Returns null if this isn't associated with any radio button group. 347 // Returns null if this isn't associated with any radio button group.
350 RadioButtonGroupScope* radioButtonGroupScope() const; 348 RadioButtonGroupScope* radioButtonGroupScope() const;
351 void addToRadioButtonGroup(); 349 void addToRadioButtonGroup();
352 void removeFromRadioButtonGroup(); 350 void removeFromRadioButtonGroup();
351 #if ENABLE(INPUT_MULTIPLE_FIELDS_UI)
353 virtual PassRefPtr<RenderStyle> customStyleForRenderer() override; 352 virtual PassRefPtr<RenderStyle> customStyleForRenderer() override;
353 #endif
354 354
355 virtual bool shouldDispatchFormControlChangeEvent(String&, String&) override ; 355 virtual bool shouldDispatchFormControlChangeEvent(String&, String&) override ;
356 356
357 AtomicString m_name; 357 AtomicString m_name;
358 String m_valueIfDirty; 358 String m_valueIfDirty;
359 String m_suggestedValue; 359 String m_suggestedValue;
360 int m_size; 360 int m_size;
361 int m_maxLength; 361 int m_maxLength;
362 int m_minLength; 362 int m_minLength;
363 short m_maxResults; 363 short m_maxResults;
(...skipping 15 matching lines...) Expand all
379 // The ImageLoader must be owned by this element because the loader code ass umes 379 // The ImageLoader must be owned by this element because the loader code ass umes
380 // that it lives as long as its owning element lives. If we move the loader into 380 // that it lives as long as its owning element lives. If we move the loader into
381 // the ImageInput object we may delete the loader while this element lives o n. 381 // the ImageInput object we may delete the loader while this element lives o n.
382 OwnPtrWillBeMember<HTMLImageLoader> m_imageLoader; 382 OwnPtrWillBeMember<HTMLImageLoader> m_imageLoader;
383 OwnPtrWillBeMember<ListAttributeTargetObserver> m_listAttributeTargetObserve r; 383 OwnPtrWillBeMember<ListAttributeTargetObserver> m_listAttributeTargetObserve r;
384 }; 384 };
385 385
386 } // namespace blink 386 } // namespace blink
387 387
388 #endif // HTMLInputElement_h 388 #endif // HTMLInputElement_h
OLDNEW
« no previous file with comments | « Source/core/html/HTMLImageLoader.cpp ('k') | Source/core/html/HTMLInputElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698