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

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

Issue 137253005: [Font Load Events] Partial implementation of SetClass operations for FontFaceSet (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fix callback arguments Created 6 years, 11 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 | « Source/core/css/CSSSegmentedFontFaceCache.cpp ('k') | Source/core/css/FontFaceSet.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 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 77
78 String status() const; 78 String status() const;
79 79
80 void load(); 80 void load();
81 ScriptPromise ready(ExecutionContext*); 81 ScriptPromise ready(ExecutionContext*);
82 82
83 LoadStatus loadStatus() const { return m_status; } 83 LoadStatus loadStatus() const { return m_status; }
84 void setLoadStatus(LoadStatus); 84 void setLoadStatus(LoadStatus);
85 unsigned traitsMask() const; 85 unsigned traitsMask() const;
86 PassRefPtr<CSSFontFace> createCSSFontFace(Document*); 86 PassRefPtr<CSSFontFace> createCSSFontFace(Document*);
87 CSSFontFace* cssFontFace() { return m_cssFontFace; }
87 void cssFontFaceDestroyed() { m_cssFontFace = 0; } 88 void cssFontFaceDestroyed() { m_cssFontFace = 0; }
88 89
89 private: 90 private:
90 FontFace(PassRefPtr<CSSValue> source); 91 FontFace(PassRefPtr<CSSValue> source);
91 92
92 void setPropertyFromString(const String&, CSSPropertyID, ExceptionState&); 93 void setPropertyFromString(const String&, CSSPropertyID, ExceptionState&);
93 bool setPropertyFromStyle(const StylePropertySet*, CSSPropertyID); 94 bool setPropertyFromStyle(const StylePropertySet*, CSSPropertyID);
94 bool setPropertyValue(PassRefPtr<CSSValue>, CSSPropertyID); 95 bool setPropertyValue(PassRefPtr<CSSValue>, CSSPropertyID);
95 bool setFamilyValue(CSSValueList*); 96 bool setFamilyValue(CSSValueList*);
96 void resolveReadyPromises(); 97 void resolveReadyPromises();
(...skipping 10 matching lines...) Expand all
107 108
108 Vector<OwnPtr<FontFaceReadyPromiseResolver> > m_readyResolvers; 109 Vector<OwnPtr<FontFaceReadyPromiseResolver> > m_readyResolvers;
109 CSSFontFace* m_cssFontFace; 110 CSSFontFace* m_cssFontFace;
110 }; 111 };
111 112
112 typedef Vector<RefPtr<FontFace> > FontFaceArray; 113 typedef Vector<RefPtr<FontFace> > FontFaceArray;
113 114
114 } // namespace WebCore 115 } // namespace WebCore
115 116
116 #endif // FontFace_h 117 #endif // FontFace_h
OLDNEW
« no previous file with comments | « Source/core/css/CSSSegmentedFontFaceCache.cpp ('k') | Source/core/css/FontFaceSet.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698