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

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: 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/FontFaceSet.idl ('k') | Source/core/css/FontFaceSetForEachCallback.idl » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « Source/core/css/FontFaceSet.idl ('k') | Source/core/css/FontFaceSetForEachCallback.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698