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

Side by Side Diff: sky/engine/core/css/FontFace.h

Issue 679113005: Hollow out more of the tracing system in oilpan (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years, 1 month 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/bindings/core/v8/V8Binding.h ('k') | sky/engine/core/css/FontFace.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) 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 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
87 87
88 ScriptPromise load(ScriptState*); 88 ScriptPromise load(ScriptState*);
89 89
90 LoadStatus loadStatus() const { return m_status; } 90 LoadStatus loadStatus() const { return m_status; }
91 void setLoadStatus(LoadStatus); 91 void setLoadStatus(LoadStatus);
92 void setError(PassRefPtr<DOMException> = nullptr); 92 void setError(PassRefPtr<DOMException> = nullptr);
93 DOMException* error() const { return m_error.get(); } 93 DOMException* error() const { return m_error.get(); }
94 FontTraits traits() const; 94 FontTraits traits() const;
95 CSSFontFace* cssFontFace() { return m_cssFontFace.get(); } 95 CSSFontFace* cssFontFace() { return m_cssFontFace.get(); }
96 96
97 void trace(Visitor*);
98
99 bool hadBlankText() const; 97 bool hadBlankText() const;
100 98
101 class LoadFontCallback : public RefCounted<LoadFontCallback> { 99 class LoadFontCallback : public RefCounted<LoadFontCallback> {
102 public: 100 public:
103 virtual ~LoadFontCallback() { } 101 virtual ~LoadFontCallback() { }
104 virtual void notifyLoaded(FontFace*) = 0; 102 virtual void notifyLoaded(FontFace*) = 0;
105 virtual void notifyError(FontFace*) = 0; 103 virtual void notifyError(FontFace*) = 0;
106 virtual void trace(Visitor*) { }
107 }; 104 };
108 void loadWithCallback(PassRefPtr<LoadFontCallback>, ExecutionContext*); 105 void loadWithCallback(PassRefPtr<LoadFontCallback>, ExecutionContext*);
109 106
110 private: 107 private:
111 FontFace(); 108 FontFace();
112 FontFace(ExecutionContext*, const AtomicString& family, const Dictionary& de scriptors); 109 FontFace(ExecutionContext*, const AtomicString& family, const Dictionary& de scriptors);
113 110
114 void initCSSFontFace(Document*, PassRefPtr<CSSValue> src); 111 void initCSSFontFace(Document*, PassRefPtr<CSSValue> src);
115 void initCSSFontFace(const unsigned char* data, unsigned size); 112 void initCSSFontFace(const unsigned char* data, unsigned size);
116 void setPropertyFromString(const Document*, const String&, CSSPropertyID, Ex ceptionState* = 0); 113 void setPropertyFromString(const Document*, const String&, CSSPropertyID, Ex ceptionState* = 0);
(...skipping 19 matching lines...) Expand all
136 Persistent<LoadedProperty> m_loadedProperty; 133 Persistent<LoadedProperty> m_loadedProperty;
137 OwnPtr<CSSFontFace> m_cssFontFace; 134 OwnPtr<CSSFontFace> m_cssFontFace;
138 Vector<RefPtr<LoadFontCallback> > m_callbacks; 135 Vector<RefPtr<LoadFontCallback> > m_callbacks;
139 }; 136 };
140 137
141 typedef Vector<RefPtr<FontFace> > FontFaceArray; 138 typedef Vector<RefPtr<FontFace> > FontFaceArray;
142 139
143 } // namespace blink 140 } // namespace blink
144 141
145 #endif // FontFace_h 142 #endif // FontFace_h
OLDNEW
« no previous file with comments | « sky/engine/bindings/core/v8/V8Binding.h ('k') | sky/engine/core/css/FontFace.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698