Index: Source/core/css/FontFaceSetForEachCallback.h |
diff --git a/Source/core/css/DocumentFontFaceSet.h b/Source/core/css/FontFaceSetForEachCallback.h |
similarity index 74% |
copy from Source/core/css/DocumentFontFaceSet.h |
copy to Source/core/css/FontFaceSetForEachCallback.h |
index 910d878291e1655a0b13ef751415e6c7f86c0d78..8550e24bbafbeac3cb9e941fa80953fe17ca74ee 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*, FontFace*, FontFaceSet*) = 0; |
+ virtual bool handleItem(FontFace*, FontFace*, FontFaceSet*) = 0; |
}; |
} // namespace WebCore |
-#endif // DocumentFontFaceSet_h |
+#endif // FontFaceSetForEachCallback_h |