OLD | NEW |
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 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
54 class ImageLoader; | 54 class ImageLoader; |
55 class RenderImageResource; | 55 class RenderImageResource; |
56 | 56 |
57 template<typename T> class EventSender; | 57 template<typename T> class EventSender; |
58 typedef EventSender<ImageLoader> ImageEventSender; | 58 typedef EventSender<ImageLoader> ImageEventSender; |
59 | 59 |
60 class ImageLoader : public NoBaseWillBeGarbageCollectedFinalized<ImageLoader>, p
ublic ImageResourceClient { | 60 class ImageLoader : public NoBaseWillBeGarbageCollectedFinalized<ImageLoader>, p
ublic ImageResourceClient { |
61 public: | 61 public: |
62 explicit ImageLoader(Element*); | 62 explicit ImageLoader(Element*); |
63 virtual ~ImageLoader(); | 63 virtual ~ImageLoader(); |
64 void trace(Visitor*); | 64 virtual void trace(Visitor*); |
65 | 65 |
66 enum LoadType { | 66 enum LoadType { |
67 LoadNormally, | 67 LoadNormally, |
68 ForceLoadImmediately | 68 ForceLoadImmediately |
69 }; | 69 }; |
70 | 70 |
71 enum UpdateFromElementBehavior { | 71 enum UpdateFromElementBehavior { |
72 // This should be the update behavior when the element is attached to a
document, or when DOM mutations trigger a new load. | 72 // This should be the update behavior when the element is attached to a
document, or when DOM mutations trigger a new load. |
73 // Starts loading if a load hasn't already been started. | 73 // Starts loading if a load hasn't already been started. |
74 UpdateNormal, | 74 UpdateNormal, |
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
185 bool m_hasPendingErrorEvent : 1; | 185 bool m_hasPendingErrorEvent : 1; |
186 bool m_imageComplete : 1; | 186 bool m_imageComplete : 1; |
187 bool m_loadingImageDocument : 1; | 187 bool m_loadingImageDocument : 1; |
188 bool m_elementIsProtected : 1; | 188 bool m_elementIsProtected : 1; |
189 unsigned m_highPriorityClientCount; | 189 unsigned m_highPriorityClientCount; |
190 }; | 190 }; |
191 | 191 |
192 } | 192 } |
193 | 193 |
194 #endif | 194 #endif |
OLD | NEW |