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

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

Issue 1615133002: Implement API for accessing fonts installed locally on the system. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressing Nasko. Created 4 years, 10 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
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 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 public: 73 public:
74 ~FontFaceSet() override; 74 ~FontFaceSet() override;
75 75
76 DEFINE_ATTRIBUTE_EVENT_LISTENER(loading); 76 DEFINE_ATTRIBUTE_EVENT_LISTENER(loading);
77 DEFINE_ATTRIBUTE_EVENT_LISTENER(loadingdone); 77 DEFINE_ATTRIBUTE_EVENT_LISTENER(loadingdone);
78 DEFINE_ATTRIBUTE_EVENT_LISTENER(loadingerror); 78 DEFINE_ATTRIBUTE_EVENT_LISTENER(loadingerror);
79 79
80 bool check(const String& font, const String& text, ExceptionState&); 80 bool check(const String& font, const String& text, ExceptionState&);
81 ScriptPromise load(ScriptState*, const String& font, const String& text); 81 ScriptPromise load(ScriptState*, const String& font, const String& text);
82 ScriptPromise ready(ScriptState*); 82 ScriptPromise ready(ScriptState*);
83 static ScriptPromise systemFonts(ScriptState*);
83 84
84 PassRefPtrWillBeRawPtr<FontFaceSet> addForBinding(ScriptState*, FontFace*, E xceptionState&); 85 PassRefPtrWillBeRawPtr<FontFaceSet> addForBinding(ScriptState*, FontFace*, E xceptionState&);
85 void clearForBinding(ScriptState*, ExceptionState&); 86 void clearForBinding(ScriptState*, ExceptionState&);
86 bool deleteForBinding(ScriptState*, FontFace*, ExceptionState&); 87 bool deleteForBinding(ScriptState*, FontFace*, ExceptionState&);
87 bool hasForBinding(ScriptState*, FontFace*, ExceptionState&) const; 88 bool hasForBinding(ScriptState*, FontFace*, ExceptionState&) const;
88 89
89 size_t size() const; 90 size_t size() const;
90 AtomicString status() const; 91 AtomicString status() const;
91 92
92 ExecutionContext* executionContext() const override; 93 ExecutionContext* executionContext() const override;
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
177 WillBeHeapListHashSet<RefPtrWillBeMember<FontFace>> m_nonCSSConnectedFaces; 178 WillBeHeapListHashSet<RefPtrWillBeMember<FontFace>> m_nonCSSConnectedFaces;
178 179
179 PersistentWillBeMember<AsyncMethodRunner<FontFaceSet>> m_asyncRunner; 180 PersistentWillBeMember<AsyncMethodRunner<FontFaceSet>> m_asyncRunner;
180 181
181 FontLoadHistogram m_histogram; 182 FontLoadHistogram m_histogram;
182 }; 183 };
183 184
184 } // namespace blink 185 } // namespace blink
185 186
186 #endif // FontFaceSet_h 187 #endif // FontFaceSet_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/css/FontFace.idl ('k') | third_party/WebKit/Source/core/css/FontFaceSet.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698