| Index: Source/core/inspector/InspectorCSSAgent.h
|
| diff --git a/Source/core/inspector/InspectorCSSAgent.h b/Source/core/inspector/InspectorCSSAgent.h
|
| index 9f2385e9a30eb6d150d623d45cf995cebf36d880..f16bc83e0c04c2db655441371573fba881de163d 100644
|
| --- a/Source/core/inspector/InspectorCSSAgent.h
|
| +++ b/Source/core/inspector/InspectorCSSAgent.h
|
| @@ -63,7 +63,7 @@ class UpdateRegionLayoutTask;
|
|
|
| typedef HashMap<CSSStyleSheet*, RefPtr<InspectorStyleSheet> > CSSStyleSheetToInspectorStyleSheet;
|
|
|
| -class InspectorCSSAgent
|
| +class InspectorCSSAgent FINAL
|
| : public InspectorBaseAgent<InspectorCSSAgent>
|
| , public InspectorDOMAgent::DOMListener
|
| , public InspectorBackendDispatcher::CSSCommandHandler
|
| @@ -105,15 +105,15 @@ public:
|
| {
|
| return adoptPtr(new InspectorCSSAgent(instrumentingAgents, state, domAgent, pageAgent, resourceAgent));
|
| }
|
| - ~InspectorCSSAgent();
|
| + virtual ~InspectorCSSAgent();
|
|
|
| bool forcePseudoState(Element*, CSSSelector::PseudoType);
|
| - virtual void setFrontend(InspectorFrontend*);
|
| - virtual void clearFrontend();
|
| - virtual void discardAgent();
|
| - virtual void restore();
|
| - virtual void enable(ErrorString*, PassRefPtr<EnableCallback>);
|
| - virtual void disable(ErrorString*);
|
| + virtual void setFrontend(InspectorFrontend*) OVERRIDE;
|
| + virtual void clearFrontend() OVERRIDE;
|
| + virtual void discardAgent() OVERRIDE;
|
| + virtual void restore() OVERRIDE;
|
| + virtual void enable(ErrorString*, PassRefPtr<EnableCallback>) OVERRIDE;
|
| + virtual void disable(ErrorString*) OVERRIDE;
|
| void reset();
|
| void didCommitLoad(Frame*, DocumentLoader*);
|
| void mediaQueryResultChanged();
|
| @@ -135,22 +135,22 @@ public:
|
| void activeStyleSheetsUpdated(Document*);
|
| void frameDetachedFromParent(Frame*);
|
|
|
| - virtual void getComputedStyleForNode(ErrorString*, int nodeId, RefPtr<TypeBuilder::Array<TypeBuilder::CSS::CSSComputedStyleProperty> >&);
|
| - virtual void getPlatformFontsForNode(ErrorString*, int nodeId, String* cssFamilyName, RefPtr<TypeBuilder::Array<TypeBuilder::CSS::PlatformFontUsage> >&);
|
| - virtual void getInlineStylesForNode(ErrorString*, int nodeId, RefPtr<TypeBuilder::CSS::CSSStyle>& inlineStyle, RefPtr<TypeBuilder::CSS::CSSStyle>& attributes);
|
| - virtual void getMatchedStylesForNode(ErrorString*, int nodeId, const bool* includePseudo, const bool* includeInherited, RefPtr<TypeBuilder::Array<TypeBuilder::CSS::RuleMatch> >& matchedCSSRules, RefPtr<TypeBuilder::Array<TypeBuilder::CSS::PseudoIdMatches> >& pseudoIdMatches, RefPtr<TypeBuilder::Array<TypeBuilder::CSS::InheritedStyleEntry> >& inheritedEntries);
|
| - virtual void getAllStyleSheets(ErrorString*, RefPtr<TypeBuilder::Array<TypeBuilder::CSS::CSSStyleSheetHeader> >& styleSheetInfos);
|
| - virtual void getStyleSheet(ErrorString*, const String& styleSheetId, RefPtr<TypeBuilder::CSS::CSSStyleSheetBody>& result);
|
| - virtual void getStyleSheetText(ErrorString*, const String& styleSheetId, String* result);
|
| - virtual void setStyleSheetText(ErrorString*, const String& styleSheetId, const String& text);
|
| - virtual void setStyleText(ErrorString*, const RefPtr<JSONObject>& styleId, const String& text, RefPtr<TypeBuilder::CSS::CSSStyle>& result);
|
| - virtual void setPropertyText(ErrorString*, const RefPtr<JSONObject>& styleId, int propertyIndex, const String& text, bool overwrite, RefPtr<TypeBuilder::CSS::CSSStyle>& result);
|
| - virtual void toggleProperty(ErrorString*, const RefPtr<JSONObject>& styleId, int propertyIndex, bool disable, RefPtr<TypeBuilder::CSS::CSSStyle>& result);
|
| - virtual void setRuleSelector(ErrorString*, const RefPtr<JSONObject>& ruleId, const String& selector, RefPtr<TypeBuilder::CSS::CSSRule>& result);
|
| - virtual void addRule(ErrorString*, int contextNodeId, const String& selector, RefPtr<TypeBuilder::CSS::CSSRule>& result);
|
| - virtual void getSupportedCSSProperties(ErrorString*, RefPtr<TypeBuilder::Array<TypeBuilder::CSS::CSSPropertyInfo> >& result);
|
| - virtual void forcePseudoState(ErrorString*, int nodeId, const RefPtr<JSONArray>& forcedPseudoClasses);
|
| - virtual void getNamedFlowCollection(ErrorString*, int documentNodeId, RefPtr<TypeBuilder::Array<TypeBuilder::CSS::NamedFlow> >& result);
|
| + virtual void getComputedStyleForNode(ErrorString*, int nodeId, RefPtr<TypeBuilder::Array<TypeBuilder::CSS::CSSComputedStyleProperty> >&) OVERRIDE;
|
| + virtual void getPlatformFontsForNode(ErrorString*, int nodeId, String* cssFamilyName, RefPtr<TypeBuilder::Array<TypeBuilder::CSS::PlatformFontUsage> >&) OVERRIDE;
|
| + virtual void getInlineStylesForNode(ErrorString*, int nodeId, RefPtr<TypeBuilder::CSS::CSSStyle>& inlineStyle, RefPtr<TypeBuilder::CSS::CSSStyle>& attributes) OVERRIDE;
|
| + virtual void getMatchedStylesForNode(ErrorString*, int nodeId, const bool* includePseudo, const bool* includeInherited, RefPtr<TypeBuilder::Array<TypeBuilder::CSS::RuleMatch> >& matchedCSSRules, RefPtr<TypeBuilder::Array<TypeBuilder::CSS::PseudoIdMatches> >&, RefPtr<TypeBuilder::Array<TypeBuilder::CSS::InheritedStyleEntry> >& inheritedEntries) OVERRIDE;
|
| + virtual void getAllStyleSheets(ErrorString*, RefPtr<TypeBuilder::Array<TypeBuilder::CSS::CSSStyleSheetHeader> >& styleSheetInfos) OVERRIDE;
|
| + virtual void getStyleSheet(ErrorString*, const String& styleSheetId, RefPtr<TypeBuilder::CSS::CSSStyleSheetBody>& result) OVERRIDE;
|
| + virtual void getStyleSheetText(ErrorString*, const String& styleSheetId, String* result) OVERRIDE;
|
| + virtual void setStyleSheetText(ErrorString*, const String& styleSheetId, const String& text) OVERRIDE;
|
| + virtual void setStyleText(ErrorString*, const RefPtr<JSONObject>& styleId, const String& text, RefPtr<TypeBuilder::CSS::CSSStyle>& result) OVERRIDE;
|
| + virtual void setPropertyText(ErrorString*, const RefPtr<JSONObject>& styleId, int propertyIndex, const String& text, bool overwrite, RefPtr<TypeBuilder::CSS::CSSStyle>& result) OVERRIDE;
|
| + virtual void toggleProperty(ErrorString*, const RefPtr<JSONObject>& styleId, int propertyIndex, bool disable, RefPtr<TypeBuilder::CSS::CSSStyle>& result) OVERRIDE;
|
| + virtual void setRuleSelector(ErrorString*, const RefPtr<JSONObject>& ruleId, const String& selector, RefPtr<TypeBuilder::CSS::CSSRule>& result) OVERRIDE;
|
| + virtual void addRule(ErrorString*, int contextNodeId, const String& selector, RefPtr<TypeBuilder::CSS::CSSRule>& result) OVERRIDE;
|
| + virtual void getSupportedCSSProperties(ErrorString*, RefPtr<TypeBuilder::Array<TypeBuilder::CSS::CSSPropertyInfo> >& result) OVERRIDE;
|
| + virtual void forcePseudoState(ErrorString*, int nodeId, const RefPtr<JSONArray>& forcedPseudoClasses) OVERRIDE;
|
| + virtual void getNamedFlowCollection(ErrorString*, int documentNodeId, RefPtr<TypeBuilder::Array<TypeBuilder::CSS::NamedFlow> >& result) OVERRIDE;
|
|
|
| PassRefPtr<TypeBuilder::CSS::CSSMedia> buildMediaObject(const MediaList*, MediaListSource, const String&, CSSStyleSheet*);
|
| PassRefPtr<TypeBuilder::Array<TypeBuilder::CSS::CSSMedia> > buildMediaListChain(CSSRule*);
|
| @@ -200,9 +200,9 @@ private:
|
| PassRefPtr<TypeBuilder::CSS::NamedFlow> buildObjectForNamedFlow(ErrorString*, NamedFlow*, int documentNodeId);
|
|
|
| // InspectorDOMAgent::DOMListener implementation
|
| - virtual void didRemoveDocument(Document*);
|
| - virtual void didRemoveDOMNode(Node*);
|
| - virtual void didModifyDOMAttr(Element*);
|
| + virtual void didRemoveDocument(Document*) OVERRIDE;
|
| + virtual void didRemoveDOMNode(Node*) OVERRIDE;
|
| + virtual void didModifyDOMAttr(Element*) OVERRIDE;
|
|
|
| // InspectorStyleSheet::Listener implementation
|
| virtual void styleSheetChanged(InspectorStyleSheet*) OVERRIDE;
|
|
|