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

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

Issue 1210893002: DevTools: [CSS] introduce strong types (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 6 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 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
118 void documentDetached(Document*); 118 void documentDetached(Document*);
119 119
120 void addEditedStyleSheet(const String& url, const String& content); 120 void addEditedStyleSheet(const String& url, const String& content);
121 bool getEditedStyleSheet(const String& url, String* content); 121 bool getEditedStyleSheet(const String& url, String* content);
122 122
123 void addEditedStyleElement(int backendNodeId, const String& content); 123 void addEditedStyleElement(int backendNodeId, const String& content);
124 bool getEditedStyleElement(int backendNodeId, String* content); 124 bool getEditedStyleElement(int backendNodeId, String* content);
125 125
126 void enable(ErrorString*, PassRefPtrWillBeRawPtr<EnableCallback>) override; 126 void enable(ErrorString*, PassRefPtrWillBeRawPtr<EnableCallback>) override;
127 virtual void getComputedStyleForNode(ErrorString*, int nodeId, RefPtr<TypeBu ilder::Array<TypeBuilder::CSS::CSSComputedStyleProperty> >&) override; 127 virtual void getComputedStyleForNode(ErrorString*, int nodeId, RefPtr<TypeBu ilder::Array<TypeBuilder::CSS::CSSComputedStyleProperty> >&) override;
128 virtual void getPlatformFontsForNode(ErrorString*, int nodeId, String* cssFa milyName, RefPtr<TypeBuilder::Array<TypeBuilder::CSS::PlatformFontUsage> >&) ove rride; 128 virtual void getPlatformFontsForNode(ErrorString*, int nodeId, RefPtr<TypeBu ilder::Array<TypeBuilder::CSS::PlatformFontUsage>>&) override;
129 virtual void getInlineStylesForNode(ErrorString*, int nodeId, RefPtr<TypeBui lder::CSS::CSSStyle>& inlineStyle, RefPtr<TypeBuilder::CSS::CSSStyle>& attribute s) override; 129 virtual void getInlineStylesForNode(ErrorString*, int nodeId, RefPtr<TypeBui lder::CSS::CSSStyle>& inlineStyle, RefPtr<TypeBuilder::CSS::CSSStyle>& attribute s) override;
130 virtual void getMatchedStylesForNode(ErrorString*, int nodeId, const bool* e xcludePseudo, const bool* excludeInherited, RefPtr<TypeBuilder::Array<TypeBuilde r::CSS::RuleMatch> >& matchedCSSRules, RefPtr<TypeBuilder::Array<TypeBuilder::CS S::PseudoIdMatches> >&, RefPtr<TypeBuilder::Array<TypeBuilder::CSS::InheritedSty leEntry> >& inheritedEntries) override; 130 virtual void getMatchedStylesForNode(ErrorString*, int nodeId, const bool* e xcludePseudo, const bool* excludeInherited, RefPtr<TypeBuilder::Array<TypeBuilde r::CSS::RuleMatch> >& matchedCSSRules, RefPtr<TypeBuilder::Array<TypeBuilder::CS S::PseudoIdMatches> >&, RefPtr<TypeBuilder::Array<TypeBuilder::CSS::InheritedSty leEntry> >& inheritedEntries) override;
131 virtual void getStyleSheetText(ErrorString*, const String& styleSheetId, Str ing* result) override; 131 virtual void getStyleSheetText(ErrorString*, const String& styleSheetId, Str ing* result) override;
132 virtual void setStyleSheetText(ErrorString*, const String& styleSheetId, con st String& text) override; 132 virtual void setStyleSheetText(ErrorString*, const String& styleSheetId, con st String& text) override;
133 virtual void setRuleSelector(ErrorString*, const String& styleSheetId, const RefPtr<JSONObject>& range, const String& selector, RefPtr<TypeBuilder::CSS::CSS Rule>& result) override; 133 virtual void setRuleSelector(ErrorString*, const String& styleSheetId, const RefPtr<JSONObject>& range, const String& selector, RefPtr<TypeBuilder::CSS::CSS Rule>& result) override;
134 virtual void setStyleText(ErrorString*, const String& styleSheetId, const Re fPtr<JSONObject>& range, const String& text, RefPtr<TypeBuilder::CSS::CSSStyle>& result) override; 134 virtual void setStyleText(ErrorString*, const String& styleSheetId, const Re fPtr<JSONObject>& range, const String& text, RefPtr<TypeBuilder::CSS::CSSStyle>& result) override;
135 virtual void setMediaText(ErrorString*, const String& styleSheetId, const Re fPtr<JSONObject>& range, const String& text, RefPtr<TypeBuilder::CSS::CSSMedia>& result) override; 135 virtual void setMediaText(ErrorString*, const String& styleSheetId, const Re fPtr<JSONObject>& range, const String& text, RefPtr<TypeBuilder::CSS::CSSMedia>& result) override;
136 virtual void createStyleSheet(ErrorString*, const String& frameId, TypeBuild er::CSS::StyleSheetId* outStyleSheetId) override; 136 virtual void createStyleSheet(ErrorString*, const String& frameId, TypeBuild er::CSS::StyleSheetId* outStyleSheetId) override;
137 virtual void addRule(ErrorString*, const String& styleSheetId, const String& ruleText, const RefPtr<JSONObject>& location, RefPtr<TypeBuilder::CSS::CSSRule> & result) override; 137 virtual void addRule(ErrorString*, const String& styleSheetId, const String& ruleText, const RefPtr<JSONObject>& location, RefPtr<TypeBuilder::CSS::CSSRule> & result) override;
138 virtual void forcePseudoState(ErrorString*, int nodeId, const RefPtr<JSONArr ay>& forcedPseudoClasses) override; 138 virtual void forcePseudoState(ErrorString*, int nodeId, const RefPtr<JSONArr ay>& forcedPseudoClasses) override;
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
216 bool m_isSettingStyleSheetText; 216 bool m_isSettingStyleSheetText;
217 217
218 friend class InspectorResourceContentLoaderCallback; 218 friend class InspectorResourceContentLoaderCallback;
219 friend class StyleSheetBinder; 219 friend class StyleSheetBinder;
220 }; 220 };
221 221
222 222
223 } // namespace blink 223 } // namespace blink
224 224
225 #endif // !defined(InspectorCSSAgent_h) 225 #endif // !defined(InspectorCSSAgent_h)
OLDNEW
« no previous file with comments | « LayoutTests/inspector/elements/styles-1/edit-value-inside-property.html ('k') | Source/core/inspector/InspectorCSSAgent.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698