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 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
52 DECLARE_GC_INFO | 52 DECLARE_GC_INFO |
53 public: | 53 public: |
54 static PassRefPtr<FontLoader> create(Document* document) | 54 static PassRefPtr<FontLoader> create(Document* document) |
55 { | 55 { |
56 return adoptRef<FontLoader>(new FontLoader(document)); | 56 return adoptRef<FontLoader>(new FontLoader(document)); |
57 } | 57 } |
58 virtual ~FontLoader(); | 58 virtual ~FontLoader(); |
59 | 59 |
60 virtual void trace(Visitor*) { } | 60 virtual void trace(Visitor*) { } |
61 | 61 |
62 virtual void visitWith(Visitor* visitor) const OVERRIDE | 62 virtual void adjustAndMark(Visitor* visitor) const OVERRIDE |
63 { | 63 { |
64 visitor->visit(this); | 64 visitor->mark(this); |
65 } | 65 } |
66 | 66 |
67 DEFINE_ATTRIBUTE_EVENT_LISTENER(loading); | 67 DEFINE_ATTRIBUTE_EVENT_LISTENER(loading); |
68 DEFINE_ATTRIBUTE_EVENT_LISTENER(loadingdone); | 68 DEFINE_ATTRIBUTE_EVENT_LISTENER(loadingdone); |
69 DEFINE_ATTRIBUTE_EVENT_LISTENER(loadstart); | 69 DEFINE_ATTRIBUTE_EVENT_LISTENER(loadstart); |
70 DEFINE_ATTRIBUTE_EVENT_LISTENER(load); | 70 DEFINE_ATTRIBUTE_EVENT_LISTENER(load); |
71 DEFINE_ATTRIBUTE_EVENT_LISTENER(error); | 71 DEFINE_ATTRIBUTE_EVENT_LISTENER(error); |
72 | 72 |
73 bool checkFont(const String&, const String&); | 73 bool checkFont(const String&, const String&); |
74 void loadFont(const Dictionary&); | 74 void loadFont(const Dictionary&); |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
109 Vector<RefPtr<Event> > m_pendingEvents; | 109 Vector<RefPtr<Event> > m_pendingEvents; |
110 Vector<RefPtr<VoidCallback> > m_pendingCallbacks; | 110 Vector<RefPtr<VoidCallback> > m_pendingCallbacks; |
111 Vector<RefPtr<VoidCallback> > m_fontsReadyCallbacks; | 111 Vector<RefPtr<VoidCallback> > m_fontsReadyCallbacks; |
112 RefPtr<Event> m_pendingDoneEvent; | 112 RefPtr<Event> m_pendingDoneEvent; |
113 Timer<FontLoader> m_timer; | 113 Timer<FontLoader> m_timer; |
114 }; | 114 }; |
115 | 115 |
116 } // namespace WebCore | 116 } // namespace WebCore |
117 | 117 |
118 #endif // FontLoader_h | 118 #endif // FontLoader_h |
OLD | NEW |