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

Unified Diff: Source/core/css/FontFaceSetForEachCallback.h

Issue 137253005: [Font Load Events] Partial implementation of SetClass operations for FontFaceSet (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: 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
Index: Source/core/css/FontFaceSetForEachCallback.h
diff --git a/Source/core/css/DocumentFontFaceSet.h b/Source/core/css/FontFaceSetForEachCallback.h
similarity index 75%
copy from Source/core/css/DocumentFontFaceSet.h
copy to Source/core/css/FontFaceSetForEachCallback.h
index 910d878291e1655a0b13ef751415e6c7f86c0d78..16625c4cc0bcb6110fe8aa42362740a68f610d3a 100644
--- a/Source/core/css/DocumentFontFaceSet.h
+++ b/Source/core/css/FontFaceSetForEachCallback.h
@@ -1,5 +1,5 @@
/*
- * Copyright (C) 2013, Google Inc. All rights reserved.
+ * Copyright (C) 2013 Google Inc. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
@@ -23,21 +23,23 @@
* DAMAGE.
*/
-#ifndef DocumentFontFaceSet_h
-#define DocumentFontFaceSet_h
+#ifndef FontFaceSetForEachCallback_h
+#define FontFaceSetForEachCallback_h
-#include "wtf/PassRefPtr.h"
+#include "bindings/v8/ScriptValue.h"
namespace WebCore {
-class Document;
+class FontFace;
class FontFaceSet;
-class DocumentFontFaceSet {
+class FontFaceSetForEachCallback {
public:
- static PassRefPtr<FontFaceSet> fonts(Document*);
+ virtual ~FontFaceSetForEachCallback() { }
+ virtual bool handleItem(ScriptValue thisValue, FontFace*, FontFaceSet*) = 0;
+ virtual bool handleItem(FontFace*, FontFaceSet*) = 0;
};
} // namespace WebCore
-#endif // DocumentFontFaceSet_h
+#endif // FontFaceSetForEachCallback_h

Powered by Google App Engine
This is Rietveld 408576698