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

Unified Diff: Source/core/css/FontFaceSet.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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/core/css/FontFace.h ('k') | Source/core/css/FontFaceSet.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/css/FontFaceSet.h
diff --git a/Source/core/css/FontFaceSet.h b/Source/core/css/FontFaceSet.h
index 0acd6baf1ec732c64b2127b3a4dc857d584aab2e..e024bb2c0ebc00f99197ed68e020afa9c64c31df 100644
--- a/Source/core/css/FontFaceSet.h
+++ b/Source/core/css/FontFaceSet.h
@@ -28,6 +28,7 @@
#include "bindings/v8/ScriptPromise.h"
#include "core/css/FontFace.h"
+#include "core/css/FontFaceSetForEachCallback.h"
#include "core/dom/ActiveDOMObject.h"
#include "core/events/EventListener.h"
#include "core/events/EventTarget.h"
@@ -68,6 +69,11 @@ public:
ScriptPromise load(const String& font, const String& text, ExceptionState&);
ScriptPromise ready();
+ void forEach(PassOwnPtr<FontFaceSetForEachCallback>, ScriptValue& thisArg) const;
+ void forEach(PassOwnPtr<FontFaceSetForEachCallback>) const;
+ bool has(FontFace*, ExceptionState&) const;
+
+ unsigned long size() const;
AtomicString status() const;
virtual ExecutionContext* executionContext() const OVERRIDE;
@@ -111,6 +117,7 @@ private:
bool hasLoadedFonts() const { return !m_loadedFonts.isEmpty() || !m_failedFonts.isEmpty(); }
+ void forEachInternal(PassOwnPtr<FontFaceSetForEachCallback>, ScriptValue* thisArg) const;
void queueDoneEvent(FontFace*);
void fireLoadingEvent();
void fireDoneEventIfPossible();
« no previous file with comments | « Source/core/css/FontFace.h ('k') | Source/core/css/FontFaceSet.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698