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

Side by Side Diff: Source/core/inspector/InspectorCSSAgent.h

Issue 22903030: DevTools: CSS.getPlatformFontsForNode to return a cssFamilyName as well (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: fixed description 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2010, Google Inc. All rights reserved. 2 * Copyright (C) 2010, Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after
119 void regionOversetChanged(NamedFlow*, int documentNodeId); 119 void regionOversetChanged(NamedFlow*, int documentNodeId);
120 120
121 public: 121 public:
122 void didUpdateRegionLayout(Document*, NamedFlow*); 122 void didUpdateRegionLayout(Document*, NamedFlow*);
123 void didChangeRegionOverset(Document*, NamedFlow*); 123 void didChangeRegionOverset(Document*, NamedFlow*);
124 124
125 void activeStyleSheetsUpdated(Document*, const StyleSheetVector& newSheets); 125 void activeStyleSheetsUpdated(Document*, const StyleSheetVector& newSheets);
126 void frameDetachedFromParent(Frame*); 126 void frameDetachedFromParent(Frame*);
127 127
128 virtual void getComputedStyleForNode(ErrorString*, int nodeId, RefPtr<TypeBu ilder::Array<TypeBuilder::CSS::CSSComputedStyleProperty> >&); 128 virtual void getComputedStyleForNode(ErrorString*, int nodeId, RefPtr<TypeBu ilder::Array<TypeBuilder::CSS::CSSComputedStyleProperty> >&);
129 virtual void getPlatformFontsForNode(ErrorString*, int, RefPtr<TypeBuilder:: Array<TypeBuilder::CSS::PlatformFontUsage> >&); 129 virtual void getPlatformFontsForNode(ErrorString*, int nodeId, String* cssFa milyName, RefPtr<TypeBuilder::Array<TypeBuilder::CSS::PlatformFontUsage> >&);
130 virtual void getInlineStylesForNode(ErrorString*, int nodeId, RefPtr<TypeBui lder::CSS::CSSStyle>& inlineStyle, RefPtr<TypeBuilder::CSS::CSSStyle>& attribute s); 130 virtual void getInlineStylesForNode(ErrorString*, int nodeId, RefPtr<TypeBui lder::CSS::CSSStyle>& inlineStyle, RefPtr<TypeBuilder::CSS::CSSStyle>& attribute s);
131 virtual void getMatchedStylesForNode(ErrorString*, int nodeId, const bool* i ncludePseudo, const bool* includeInherited, RefPtr<TypeBuilder::Array<TypeBuilde r::CSS::RuleMatch> >& matchedCSSRules, RefPtr<TypeBuilder::Array<TypeBuilder::CS S::PseudoIdMatches> >& pseudoIdMatches, RefPtr<TypeBuilder::Array<TypeBuilder::C SS::InheritedStyleEntry> >& inheritedEntries); 131 virtual void getMatchedStylesForNode(ErrorString*, int nodeId, const bool* i ncludePseudo, const bool* includeInherited, RefPtr<TypeBuilder::Array<TypeBuilde r::CSS::RuleMatch> >& matchedCSSRules, RefPtr<TypeBuilder::Array<TypeBuilder::CS S::PseudoIdMatches> >& pseudoIdMatches, RefPtr<TypeBuilder::Array<TypeBuilder::C SS::InheritedStyleEntry> >& inheritedEntries);
132 virtual void getAllStyleSheets(ErrorString*, RefPtr<TypeBuilder::Array<TypeB uilder::CSS::CSSStyleSheetHeader> >& styleSheetInfos); 132 virtual void getAllStyleSheets(ErrorString*, RefPtr<TypeBuilder::Array<TypeB uilder::CSS::CSSStyleSheetHeader> >& styleSheetInfos);
133 virtual void getStyleSheet(ErrorString*, const String& styleSheetId, RefPtr< TypeBuilder::CSS::CSSStyleSheetBody>& result); 133 virtual void getStyleSheet(ErrorString*, const String& styleSheetId, RefPtr< TypeBuilder::CSS::CSSStyleSheetBody>& result);
134 virtual void getStyleSheetText(ErrorString*, const String& styleSheetId, Str ing* result); 134 virtual void getStyleSheetText(ErrorString*, const String& styleSheetId, Str ing* result);
135 virtual void setStyleSheetText(ErrorString*, const String& styleSheetId, con st String& text); 135 virtual void setStyleSheetText(ErrorString*, const String& styleSheetId, con st String& text);
136 virtual void setStyleText(ErrorString*, const RefPtr<JSONObject>& styleId, c onst String& text, RefPtr<TypeBuilder::CSS::CSSStyle>& result); 136 virtual void setStyleText(ErrorString*, const RefPtr<JSONObject>& styleId, c onst String& text, RefPtr<TypeBuilder::CSS::CSSStyle>& result);
137 virtual void setPropertyText(ErrorString*, const RefPtr<JSONObject>& styleId , int propertyIndex, const String& text, bool overwrite, RefPtr<TypeBuilder::CSS ::CSSStyle>& result); 137 virtual void setPropertyText(ErrorString*, const RefPtr<JSONObject>& styleId , int propertyIndex, const String& text, bool overwrite, RefPtr<TypeBuilder::CSS ::CSSStyle>& result);
138 virtual void toggleProperty(ErrorString*, const RefPtr<JSONObject>& styleId, int propertyIndex, bool disable, RefPtr<TypeBuilder::CSS::CSSStyle>& result); 138 virtual void toggleProperty(ErrorString*, const RefPtr<JSONObject>& styleId, int propertyIndex, bool disable, RefPtr<TypeBuilder::CSS::CSSStyle>& result);
139 virtual void setRuleSelector(ErrorString*, const RefPtr<JSONObject>& ruleId, const String& selector, RefPtr<TypeBuilder::CSS::CSSRule>& result); 139 virtual void setRuleSelector(ErrorString*, const RefPtr<JSONObject>& ruleId, const String& selector, RefPtr<TypeBuilder::CSS::CSSRule>& result);
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
214 214
215 friend class ChangeRegionOversetTask; 215 friend class ChangeRegionOversetTask;
216 friend class StyleSheetBinder; 216 friend class StyleSheetBinder;
217 friend class UpdateRegionLayoutTask; 217 friend class UpdateRegionLayoutTask;
218 }; 218 };
219 219
220 220
221 } // namespace WebCore 221 } // namespace WebCore
222 222
223 #endif // !defined(InspectorCSSAgent_h) 223 #endif // !defined(InspectorCSSAgent_h)
OLDNEW
« no previous file with comments | « LayoutTests/inspector-protocol/css-get-platform-fonts-expected.txt ('k') | Source/core/inspector/InspectorCSSAgent.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698