OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2013 Google Inc. All rights reserved. | 2 * Copyright (C) 2013 Google Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions are met: | 5 * modification, are permitted provided that the following conditions are met: |
6 * | 6 * |
7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
148 void incrementCount() { m_count++; } | 148 void incrementCount() { m_count++; } |
149 void updateStatus(FontFace*); | 149 void updateStatus(FontFace*); |
150 void record(); | 150 void record(); |
151 | 151 |
152 private: | 152 private: |
153 Status m_status; | 153 Status m_status; |
154 int m_count; | 154 int m_count; |
155 bool m_recorded; | 155 bool m_recorded; |
156 }; | 156 }; |
157 | 157 |
158 FontFaceSet(Document&); | 158 explicit FontFaceSet(Document&); |
159 | 159 |
160 bool inActiveDocumentContext() const; | 160 bool inActiveDocumentContext() const; |
161 void addToLoadingFonts(FontFace*); | 161 void addToLoadingFonts(FontFace*); |
162 void removeFromLoadingFonts(FontFace*); | 162 void removeFromLoadingFonts(FontFace*); |
163 void fireLoadingEvent(); | 163 void fireLoadingEvent(); |
164 void fireDoneEventIfPossible(); | 164 void fireDoneEventIfPossible(); |
165 bool resolveFontStyle(const String&, Font&); | 165 bool resolveFontStyle(const String&, Font&); |
166 void handlePendingEventsAndPromisesSoon(); | 166 void handlePendingEventsAndPromisesSoon(); |
167 void handlePendingEventsAndPromises(); | 167 void handlePendingEventsAndPromises(); |
168 const HeapListHashSet<Member<FontFace>>& cssConnectedFontFaceList() const; | 168 const HeapListHashSet<Member<FontFace>>& cssConnectedFontFaceList() const; |
(...skipping 13 matching lines...) Expand all Loading... |
182 HeapListHashSet<Member<FontFace>> m_nonCSSConnectedFaces; | 182 HeapListHashSet<Member<FontFace>> m_nonCSSConnectedFaces; |
183 | 183 |
184 Member<AsyncMethodRunner<FontFaceSet>> m_asyncRunner; | 184 Member<AsyncMethodRunner<FontFaceSet>> m_asyncRunner; |
185 | 185 |
186 FontLoadHistogram m_histogram; | 186 FontLoadHistogram m_histogram; |
187 }; | 187 }; |
188 | 188 |
189 } // namespace blink | 189 } // namespace blink |
190 | 190 |
191 #endif // FontFaceSet_h | 191 #endif // FontFaceSet_h |
OLD | NEW |