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

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

Issue 1350183004: DevTools: CSS.getMatchedStylesForNode protocol command to return inline styles (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: fix tests Created 5 years, 3 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 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
122 void addEditedStyleSheet(const String& url, const String& content); 122 void addEditedStyleSheet(const String& url, const String& content);
123 bool getEditedStyleSheet(const String& url, String* content); 123 bool getEditedStyleSheet(const String& url, String* content);
124 124
125 void addEditedStyleElement(int backendNodeId, const String& content); 125 void addEditedStyleElement(int backendNodeId, const String& content);
126 bool getEditedStyleElement(int backendNodeId, String* content); 126 bool getEditedStyleElement(int backendNodeId, String* content);
127 127
128 void enable(ErrorString*, PassRefPtrWillBeRawPtr<EnableCallback>) override; 128 void enable(ErrorString*, PassRefPtrWillBeRawPtr<EnableCallback>) override;
129 void getComputedStyleForNode(ErrorString*, int nodeId, RefPtr<TypeBuilder::A rray<TypeBuilder::CSS::CSSComputedStyleProperty>>&) override; 129 void getComputedStyleForNode(ErrorString*, int nodeId, RefPtr<TypeBuilder::A rray<TypeBuilder::CSS::CSSComputedStyleProperty>>&) override;
130 void getPlatformFontsForNode(ErrorString*, int nodeId, RefPtr<TypeBuilder::A rray<TypeBuilder::CSS::PlatformFontUsage>>&) override; 130 void getPlatformFontsForNode(ErrorString*, int nodeId, RefPtr<TypeBuilder::A rray<TypeBuilder::CSS::PlatformFontUsage>>&) override;
131 void getInlineStylesForNode(ErrorString*, int nodeId, RefPtr<TypeBuilder::CS S::CSSStyle>& inlineStyle, RefPtr<TypeBuilder::CSS::CSSStyle>& attributes) overr ide; 131 void getInlineStylesForNode(ErrorString*, int nodeId, RefPtr<TypeBuilder::CS S::CSSStyle>& inlineStyle, RefPtr<TypeBuilder::CSS::CSSStyle>& attributes) overr ide;
132 void getMatchedStylesForNode(ErrorString*, int nodeId, RefPtr<TypeBuilder::A rray<TypeBuilder::CSS::RuleMatch>>& matchedCSSRules, RefPtr<TypeBuilder::Array<T ypeBuilder::CSS::PseudoIdMatches>>&, RefPtr<TypeBuilder::Array<TypeBuilder::CSS: :InheritedStyleEntry>>& inheritedEntries) override; 132 void getMatchedStylesForNode(ErrorString*, int nodeId, RefPtr<TypeBuilder::C SS::CSSStyle>& inlineStyle, RefPtr<TypeBuilder::CSS::CSSStyle>& attributesStyle, RefPtr<TypeBuilder::Array<TypeBuilder::CSS::RuleMatch>>& matchedCSSRules, RefPt r<TypeBuilder::Array<TypeBuilder::CSS::PseudoIdMatches>>&, RefPtr<TypeBuilder::A rray<TypeBuilder::CSS::InheritedStyleEntry>>& inheritedEntries) override;
133 void getStyleSheetText(ErrorString*, const String& styleSheetId, String* res ult) override; 133 void getStyleSheetText(ErrorString*, const String& styleSheetId, String* res ult) override;
134 void setStyleSheetText(ErrorString*, const String& styleSheetId, const Strin g& text) override; 134 void setStyleSheetText(ErrorString*, const String& styleSheetId, const Strin g& text) override;
135 void setRuleSelector(ErrorString*, const String& styleSheetId, const RefPtr< JSONObject>& range, const String& selector, RefPtr<TypeBuilder::CSS::CSSRule>& r esult) override; 135 void setRuleSelector(ErrorString*, const String& styleSheetId, const RefPtr< JSONObject>& range, const String& selector, RefPtr<TypeBuilder::CSS::CSSRule>& r esult) override;
136 void setStyleText(ErrorString*, const String& styleSheetId, const RefPtr<JSO NObject>& range, const String& text, RefPtr<TypeBuilder::CSS::CSSStyle>& result) override; 136 void setStyleText(ErrorString*, const String& styleSheetId, const RefPtr<JSO NObject>& range, const String& text, RefPtr<TypeBuilder::CSS::CSSStyle>& result) override;
137 void setMediaText(ErrorString*, const String& styleSheetId, const RefPtr<JSO NObject>& range, const String& text, RefPtr<TypeBuilder::CSS::CSSMedia>& result) override; 137 void setMediaText(ErrorString*, const String& styleSheetId, const RefPtr<JSO NObject>& range, const String& text, RefPtr<TypeBuilder::CSS::CSSMedia>& result) override;
138 void createStyleSheet(ErrorString*, const String& frameId, TypeBuilder::CSS: :StyleSheetId* outStyleSheetId) override; 138 void createStyleSheet(ErrorString*, const String& frameId, TypeBuilder::CSS: :StyleSheetId* outStyleSheetId) override;
139 void addRule(ErrorString*, const String& styleSheetId, const String& ruleTex t, const RefPtr<JSONObject>& location, RefPtr<TypeBuilder::CSS::CSSRule>& result ) override; 139 void addRule(ErrorString*, const String& styleSheetId, const String& ruleTex t, const RefPtr<JSONObject>& location, RefPtr<TypeBuilder::CSS::CSSRule>& result ) override;
140 void forcePseudoState(ErrorString*, int nodeId, const RefPtr<JSONArray>& for cedPseudoClasses) override; 140 void forcePseudoState(ErrorString*, int nodeId, const RefPtr<JSONArray>& for cedPseudoClasses) override;
141 void getMediaQueries(ErrorString*, RefPtr<TypeBuilder::Array<TypeBuilder::CS S::CSSMedia>>& medias) override; 141 void getMediaQueries(ErrorString*, RefPtr<TypeBuilder::Array<TypeBuilder::CS S::CSSMedia>>& medias) override;
142 void setEffectivePropertyValueForNode(ErrorString*, int nodeId, const String & propertyName, const String& value) override; 142 void setEffectivePropertyValueForNode(ErrorString*, int nodeId, const String & propertyName, const String& value) override;
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
224 bool m_isSettingStyleSheetText; 224 bool m_isSettingStyleSheetText;
225 225
226 friend class InspectorResourceContentLoaderCallback; 226 friend class InspectorResourceContentLoaderCallback;
227 friend class StyleSheetBinder; 227 friend class StyleSheetBinder;
228 }; 228 };
229 229
230 230
231 } // namespace blink 231 } // namespace blink
232 232
233 #endif // !defined(InspectorCSSAgent_h) 233 #endif // !defined(InspectorCSSAgent_h)
OLDNEW
« no previous file with comments | « LayoutTests/inspector/elements/styles-4/styles-source-offsets.html ('k') | Source/core/inspector/InspectorCSSAgent.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698