OLD | NEW |
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 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
100 static PassOwnPtr<InspectorCSSAgent> create(InspectorDOMAgent* domAgent, Ins
pectorPageAgent* pageAgent, InspectorResourceAgent* resourceAgent) | 100 static PassOwnPtr<InspectorCSSAgent> create(InspectorDOMAgent* domAgent, Ins
pectorPageAgent* pageAgent, InspectorResourceAgent* resourceAgent) |
101 { | 101 { |
102 return adoptPtr(new InspectorCSSAgent(domAgent, pageAgent, resourceAgent
)); | 102 return adoptPtr(new InspectorCSSAgent(domAgent, pageAgent, resourceAgent
)); |
103 } | 103 } |
104 virtual ~InspectorCSSAgent(); | 104 virtual ~InspectorCSSAgent(); |
105 | 105 |
106 bool forcePseudoState(Element*, CSSSelector::PseudoType); | 106 bool forcePseudoState(Element*, CSSSelector::PseudoType); |
107 virtual void setFrontend(InspectorFrontend*) OVERRIDE; | 107 virtual void setFrontend(InspectorFrontend*) OVERRIDE; |
108 virtual void clearFrontend() OVERRIDE; | 108 virtual void clearFrontend() OVERRIDE; |
109 virtual void discardAgent() OVERRIDE; | 109 virtual void discardAgent() OVERRIDE; |
| 110 virtual void didCommitLoadForMainFrame() OVERRIDE; |
110 virtual void restore() OVERRIDE; | 111 virtual void restore() OVERRIDE; |
111 virtual void flushPendingFrontendMessages() OVERRIDE; | 112 virtual void flushPendingFrontendMessages() OVERRIDE; |
112 virtual void enable(ErrorString*, PassRefPtr<EnableCallback>) OVERRIDE; | 113 virtual void enable(ErrorString*, PassRefPtr<EnableCallback>) OVERRIDE; |
113 virtual void disable(ErrorString*) OVERRIDE; | 114 virtual void disable(ErrorString*) OVERRIDE; |
114 void reset(); | 115 void reset(); |
115 void didCommitLoad(LocalFrame*, DocumentLoader*); | |
116 void mediaQueryResultChanged(); | 116 void mediaQueryResultChanged(); |
117 void willMutateRules(); | 117 void willMutateRules(); |
118 void didMutateRules(CSSStyleSheet*); | 118 void didMutateRules(CSSStyleSheet*); |
119 void willMutateStyle(); | 119 void willMutateStyle(); |
120 void didMutateStyle(CSSStyleDeclaration*, bool); | 120 void didMutateStyle(CSSStyleDeclaration*, bool); |
121 | 121 |
122 void activeStyleSheetsUpdated(Document*); | 122 void activeStyleSheetsUpdated(Document*); |
123 void documentDetached(Document*); | 123 void documentDetached(Document*); |
124 void frameDetachedFromParent(LocalFrame*); | |
125 | 124 |
126 virtual void getComputedStyleForNode(ErrorString*, int nodeId, RefPtr<TypeBu
ilder::Array<TypeBuilder::CSS::CSSComputedStyleProperty> >&) OVERRIDE; | 125 virtual void getComputedStyleForNode(ErrorString*, int nodeId, RefPtr<TypeBu
ilder::Array<TypeBuilder::CSS::CSSComputedStyleProperty> >&) OVERRIDE; |
127 virtual void getPlatformFontsForNode(ErrorString*, int nodeId, String* cssFa
milyName, RefPtr<TypeBuilder::Array<TypeBuilder::CSS::PlatformFontUsage> >&) OVE
RRIDE; | 126 virtual void getPlatformFontsForNode(ErrorString*, int nodeId, String* cssFa
milyName, RefPtr<TypeBuilder::Array<TypeBuilder::CSS::PlatformFontUsage> >&) OVE
RRIDE; |
128 virtual void getInlineStylesForNode(ErrorString*, int nodeId, RefPtr<TypeBui
lder::CSS::CSSStyle>& inlineStyle, RefPtr<TypeBuilder::CSS::CSSStyle>& attribute
s) OVERRIDE; | 127 virtual void getInlineStylesForNode(ErrorString*, int nodeId, RefPtr<TypeBui
lder::CSS::CSSStyle>& inlineStyle, RefPtr<TypeBuilder::CSS::CSSStyle>& attribute
s) OVERRIDE; |
129 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> >&, RefPtr<TypeBuilder::Array<TypeBuilder::CSS::InheritedSty
leEntry> >& inheritedEntries) OVERRIDE; | 128 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> >&, RefPtr<TypeBuilder::Array<TypeBuilder::CSS::InheritedSty
leEntry> >& inheritedEntries) OVERRIDE; |
130 virtual void getStyleSheetText(ErrorString*, const String& styleSheetId, Str
ing* result) OVERRIDE; | 129 virtual void getStyleSheetText(ErrorString*, const String& styleSheetId, Str
ing* result) OVERRIDE; |
131 virtual void setStyleSheetText(ErrorString*, const String& styleSheetId, con
st String& text) OVERRIDE; | 130 virtual void setStyleSheetText(ErrorString*, const String& styleSheetId, con
st String& text) OVERRIDE; |
132 virtual void setPropertyText(ErrorString*, const RefPtr<JSONObject>& styleId
, int propertyIndex, const String& text, bool overwrite, RefPtr<TypeBuilder::CSS
::CSSStyle>& result) OVERRIDE; | 131 virtual void setPropertyText(ErrorString*, const RefPtr<JSONObject>& styleId
, int propertyIndex, const String& text, bool overwrite, RefPtr<TypeBuilder::CSS
::CSSStyle>& result) OVERRIDE; |
133 virtual void setRuleSelector(ErrorString*, const RefPtr<JSONObject>& ruleId,
const String& selector, RefPtr<TypeBuilder::CSS::CSSRule>& result) OVERRIDE; | 132 virtual void setRuleSelector(ErrorString*, const RefPtr<JSONObject>& ruleId,
const String& selector, RefPtr<TypeBuilder::CSS::CSSRule>& result) OVERRIDE; |
134 virtual void createStyleSheet(ErrorString*, const String& frameId, TypeBuild
er::CSS::StyleSheetId* outStyleSheetId) OVERRIDE; | 133 virtual void createStyleSheet(ErrorString*, const String& frameId, TypeBuild
er::CSS::StyleSheetId* outStyleSheetId) OVERRIDE; |
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
212 bool m_isSettingStyleSheetText; | 211 bool m_isSettingStyleSheetText; |
213 | 212 |
214 friend class EnableResourceClient; | 213 friend class EnableResourceClient; |
215 friend class StyleSheetBinder; | 214 friend class StyleSheetBinder; |
216 }; | 215 }; |
217 | 216 |
218 | 217 |
219 } // namespace WebCore | 218 } // namespace WebCore |
220 | 219 |
221 #endif // !defined(InspectorCSSAgent_h) | 220 #endif // !defined(InspectorCSSAgent_h) |
OLD | NEW |