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

Side by Side Diff: sky/engine/core/loader/ImageLoader.h

Issue 1228463002: Remove RenderImage (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 5 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
« no previous file with comments | « sky/engine/core/frame/LocalDOMWindow.cpp ('k') | sky/engine/core/loader/ImageLoader.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 * 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 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 43
44 // Determines whether the observed ImageResource should have higher priority in the decoded resources cache. 44 // Determines whether the observed ImageResource should have higher priority in the decoded resources cache.
45 virtual bool requestsHighLiveResourceCachePriority() { return false; } 45 virtual bool requestsHighLiveResourceCachePriority() { return false; }
46 46
47 protected: 47 protected:
48 ImageLoaderClient() { } 48 ImageLoaderClient() { }
49 }; 49 };
50 50
51 class Element; 51 class Element;
52 class ImageLoader; 52 class ImageLoader;
53 class RenderImageResource;
54 53
55 template<typename T> class EventSender; 54 template<typename T> class EventSender;
56 typedef EventSender<ImageLoader> ImageEventSender; 55 typedef EventSender<ImageLoader> ImageEventSender;
57 56
58 class ImageLoader : public ImageResourceClient { 57 class ImageLoader : public ImageResourceClient {
59 public: 58 public:
60 explicit ImageLoader(Element*); 59 explicit ImageLoader(Element*);
61 virtual ~ImageLoader(); 60 virtual ~ImageLoader();
62 61
63 enum LoadType { 62 enum LoadType {
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
113 void doUpdateFromElement(UpdateFromElementBehavior); 112 void doUpdateFromElement(UpdateFromElementBehavior);
114 113
115 virtual void dispatchLoadEvent() = 0; 114 virtual void dispatchLoadEvent() = 0;
116 virtual String sourceURI(const AtomicString&) const = 0; 115 virtual String sourceURI(const AtomicString&) const = 0;
117 116
118 void updatedHasPendingEvent(); 117 void updatedHasPendingEvent();
119 118
120 void dispatchPendingLoadEvent(); 119 void dispatchPendingLoadEvent();
121 void dispatchPendingErrorEvent(); 120 void dispatchPendingErrorEvent();
122 121
123 RenderImageResource* renderImageResource();
124 void updateRenderer(); 122 void updateRenderer();
125 123
126 void setImageWithoutConsideringPendingLoadEvent(ImageResource*); 124 void setImageWithoutConsideringPendingLoadEvent(ImageResource*);
127 void sourceImageChanged(); 125 void sourceImageChanged();
128 void clearFailedLoadURL(); 126 void clearFailedLoadURL();
129 void crossSiteOrCSPViolationOccured(AtomicString); 127 void crossSiteOrCSPViolationOccured(AtomicString);
130 void enqueueImageLoadingMicroTask(UpdateFromElementBehavior); 128 void enqueueImageLoadingMicroTask(UpdateFromElementBehavior);
131 129
132 void timerFired(Timer<ImageLoader>*); 130 void timerFired(Timer<ImageLoader>*);
133 131
(...skipping 16 matching lines...) Expand all
150 bool m_hasPendingLoadEvent : 1; 148 bool m_hasPendingLoadEvent : 1;
151 bool m_hasPendingErrorEvent : 1; 149 bool m_hasPendingErrorEvent : 1;
152 bool m_imageComplete : 1; 150 bool m_imageComplete : 1;
153 bool m_elementIsProtected : 1; 151 bool m_elementIsProtected : 1;
154 unsigned m_highPriorityClientCount; 152 unsigned m_highPriorityClientCount;
155 }; 153 };
156 154
157 } 155 }
158 156
159 #endif // SKY_ENGINE_CORE_LOADER_IMAGELOADER_H_ 157 #endif // SKY_ENGINE_CORE_LOADER_IMAGELOADER_H_
OLDNEW
« no previous file with comments | « sky/engine/core/frame/LocalDOMWindow.cpp ('k') | sky/engine/core/loader/ImageLoader.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698