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

Unified Diff: Source/core/inspector/InspectorDOMAgent.h

Issue 22923010: DevTools: Add CSS.getPlatformFontsForNode in protocol.json (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 4 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/inspector/InspectorDOMAgent.h
diff --git a/Source/core/inspector/InspectorDOMAgent.h b/Source/core/inspector/InspectorDOMAgent.h
index 6cba33dc2fafea27b5f01dde7183226ce19de528..dc900b6b4f39ac4e56a2389effc3ad8bd0e9621e 100644
--- a/Source/core/inspector/InspectorDOMAgent.h
+++ b/Source/core/inspector/InspectorDOMAgent.h
@@ -44,6 +44,7 @@
#include "wtf/RefPtr.h"
#include "wtf/Vector.h"
#include "wtf/text/AtomicString.h"
+#include "wtf/text/StringBuilder.h"
namespace WebCore {
@@ -63,6 +64,7 @@ class Node;
class PlatformGestureEvent;
class PlatformTouchEvent;
class RevalidateStyleAttributeTask;
+class RenderText;
class ShadowRoot;
struct HighlightConfig;
@@ -141,6 +143,7 @@ public:
virtual void highlightQuad(ErrorString*, const RefPtr<JSONArray>& quad, const RefPtr<JSONObject>* color, const RefPtr<JSONObject>* outlineColor);
virtual void highlightNode(ErrorString*, const RefPtr<JSONObject>& highlightConfig, const int* nodeId, const String* objectId);
virtual void highlightFrame(ErrorString*, const String& frameId, const RefPtr<JSONObject>* color, const RefPtr<JSONObject>* outlineColor);
+ virtual void getPlatformFontsForNode(WebCore::ErrorString*, int, WTF::RefPtr<WebCore::TypeBuilder::Array<WebCore::TypeBuilder::DOM::TextNodePlatformFonts> >&);
virtual void moveTo(ErrorString*, int nodeId, int targetNodeId, const int* anchorNodeId, int* newNodeId);
virtual void undo(ErrorString*);
@@ -235,6 +238,9 @@ private:
Node* nodeForPath(const String& path);
+ String familyNameFromSimpleFontData(const SimpleFontData*);
+ void platformFontsForRenderer(RenderText*, StringBuilder&, RefPtr<TypeBuilder::Array<String> >&);
+
void discardBackendBindings();
void discardFrontendBindings();

Powered by Google App Engine
This is Rietveld 408576698