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

Side by Side Diff: Source/core/loader/ImageLoader.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 * Copyright (C) 2004, 2009 Apple Inc. All rights reserved. 4 * Copyright (C) 2004, 2009 Apple Inc. All rights reserved.
5 * 5 *
6 * This library is free software; you can redistribute it and/or 6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Library General Public 7 * modify it under the terms of the GNU Library General Public
8 * License as published by the Free Software Foundation; either 8 * License as published by the Free Software Foundation; either
9 * version 2 of the License, or (at your option) any later version. 9 * version 2 of the License, or (at your option) any later version.
10 * 10 *
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after
117 virtual void notifyFinished(Resource*) OVERRIDE; 117 virtual void notifyFinished(Resource*) OVERRIDE;
118 118
119 private: 119 private:
120 class Task; 120 class Task;
121 121
122 // Called from the task or from updateFromElement to initiate the load. 122 // Called from the task or from updateFromElement to initiate the load.
123 void doUpdateFromElement(BypassMainWorldBehavior, UpdateFromElementBehavior) ; 123 void doUpdateFromElement(BypassMainWorldBehavior, UpdateFromElementBehavior) ;
124 124
125 virtual void dispatchLoadEvent() = 0; 125 virtual void dispatchLoadEvent() = 0;
126 virtual String sourceURI(const AtomicString&) const = 0; 126 virtual String sourceURI(const AtomicString&) const = 0;
127 virtual void noImageResourceToLoad() { };
127 128
128 void updatedHasPendingEvent(); 129 void updatedHasPendingEvent();
129 130
130 void dispatchPendingLoadEvent(); 131 void dispatchPendingLoadEvent();
131 void dispatchPendingErrorEvent(); 132 void dispatchPendingErrorEvent();
132 133
133 RenderImageResource* renderImageResource(); 134 RenderImageResource* renderImageResource();
134 void updateRenderer(); 135 void updateRenderer();
135 136
136 void setImageWithoutConsideringPendingLoadEvent(ImageResource*); 137 void setImageWithoutConsideringPendingLoadEvent(ImageResource*);
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
185 bool m_hasPendingErrorEvent : 1; 186 bool m_hasPendingErrorEvent : 1;
186 bool m_imageComplete : 1; 187 bool m_imageComplete : 1;
187 bool m_loadingImageDocument : 1; 188 bool m_loadingImageDocument : 1;
188 bool m_elementIsProtected : 1; 189 bool m_elementIsProtected : 1;
189 unsigned m_highPriorityClientCount; 190 unsigned m_highPriorityClientCount;
190 }; 191 };
191 192
192 } 193 }
193 194
194 #endif 195 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698