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

Side by Side Diff: Source/core/css/FontFaceSet.h

Issue 1163253003: Clean up macros around DEFINE_EVENT_TARGET_REFCOUNTING (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 6 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
« no previous file with comments | « no previous file | Source/core/css/MediaQueryList.h » ('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) 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 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 class FontResource; 56 class FontResource;
57 class FontsReadyPromiseResolver; 57 class FontsReadyPromiseResolver;
58 class ExecutionContext; 58 class ExecutionContext;
59 59
60 #if ENABLE(OILPAN) 60 #if ENABLE(OILPAN)
61 class FontFaceSet final : public EventTargetWithInlineData, public HeapSupplemen t<Document>, public ActiveDOMObject { 61 class FontFaceSet final : public EventTargetWithInlineData, public HeapSupplemen t<Document>, public ActiveDOMObject {
62 USING_GARBAGE_COLLECTED_MIXIN(FontFaceSet); 62 USING_GARBAGE_COLLECTED_MIXIN(FontFaceSet);
63 typedef HeapSupplement<Document> SupplementType; 63 typedef HeapSupplement<Document> SupplementType;
64 #else 64 #else
65 class FontFaceSet final : public EventTargetWithInlineData, public RefCountedSup plement<Document, FontFaceSet>, public ActiveDOMObject { 65 class FontFaceSet final : public EventTargetWithInlineData, public RefCountedSup plement<Document, FontFaceSet>, public ActiveDOMObject {
66 DEFINE_EVENT_TARGET_REFCOUNTING(RefCounted<FontFaceSet>); 66 REFCOUNTED_EVENT_TARGET(FontFaceSet);
67 typedef RefCountedSupplement<Document, FontFaceSet> SupplementType; 67 typedef RefCountedSupplement<Document, FontFaceSet> SupplementType;
68 #endif 68 #endif
69 DEFINE_WRAPPERTYPEINFO(); 69 DEFINE_WRAPPERTYPEINFO();
70 public: 70 public:
71 virtual ~FontFaceSet(); 71 virtual ~FontFaceSet();
72 72
73 DEFINE_ATTRIBUTE_EVENT_LISTENER(loading); 73 DEFINE_ATTRIBUTE_EVENT_LISTENER(loading);
74 DEFINE_ATTRIBUTE_EVENT_LISTENER(loadingdone); 74 DEFINE_ATTRIBUTE_EVENT_LISTENER(loadingdone);
75 DEFINE_ATTRIBUTE_EVENT_LISTENER(loadingerror); 75 DEFINE_ATTRIBUTE_EVENT_LISTENER(loadingerror);
76 76
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
154 WillBeHeapListHashSet<RefPtrWillBeMember<FontFace>> m_nonCSSConnectedFaces; 154 WillBeHeapListHashSet<RefPtrWillBeMember<FontFace>> m_nonCSSConnectedFaces;
155 155
156 AsyncMethodRunner<FontFaceSet> m_asyncRunner; 156 AsyncMethodRunner<FontFaceSet> m_asyncRunner;
157 157
158 FontLoadHistogram m_histogram; 158 FontLoadHistogram m_histogram;
159 }; 159 };
160 160
161 } // namespace blink 161 } // namespace blink
162 162
163 #endif // FontFaceSet_h 163 #endif // FontFaceSet_h
OLDNEW
« no previous file with comments | « no previous file | Source/core/css/MediaQueryList.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698