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

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

Issue 16934003: Inspector: replace generic discardAgents logic with explicit call to discard a listener. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 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 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
94 94
95 static PassOwnPtr<InspectorCSSAgent> create(InstrumentingAgents* instrumenti ngAgents, InspectorCompositeState* state, InspectorDOMAgent* domAgent, Inspector PageAgent* pageAgent) 95 static PassOwnPtr<InspectorCSSAgent> create(InstrumentingAgents* instrumenti ngAgents, InspectorCompositeState* state, InspectorDOMAgent* domAgent, Inspector PageAgent* pageAgent)
96 { 96 {
97 return adoptPtr(new InspectorCSSAgent(instrumentingAgents, state, domAge nt, pageAgent)); 97 return adoptPtr(new InspectorCSSAgent(instrumentingAgents, state, domAge nt, pageAgent));
98 } 98 }
99 ~InspectorCSSAgent(); 99 ~InspectorCSSAgent();
100 100
101 bool forcePseudoState(Element*, CSSSelector::PseudoType); 101 bool forcePseudoState(Element*, CSSSelector::PseudoType);
102 virtual void setFrontend(InspectorFrontend*); 102 virtual void setFrontend(InspectorFrontend*);
103 virtual void clearFrontend(); 103 virtual void clearFrontend();
104 virtual void discardAgent();
105 virtual void restore(); 104 virtual void restore();
106 virtual void enable(ErrorString*); 105 virtual void enable(ErrorString*);
107 virtual void disable(ErrorString*); 106 virtual void disable(ErrorString*);
108 void reset(); 107 void reset();
109 void didCommitLoad(Frame*, DocumentLoader*); 108 void didCommitLoad(Frame*, DocumentLoader*);
110 void mediaQueryResultChanged(); 109 void mediaQueryResultChanged();
111 void didCreateNamedFlow(Document*, NamedFlow*); 110 void didCreateNamedFlow(Document*, NamedFlow*);
112 void willRemoveNamedFlow(Document*, NamedFlow*); 111 void willRemoveNamedFlow(Document*, NamedFlow*);
113 void didUpdateRegionLayout(Document*, NamedFlow*); 112 void didUpdateRegionLayout(Document*, NamedFlow*);
114 void regionLayoutUpdated(NamedFlow*, int documentNodeId); 113 void regionLayoutUpdated(NamedFlow*, int documentNodeId);
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
173 PassRefPtr<TypeBuilder::Array<TypeBuilder::CSS::CSSRule> > buildArrayForRule List(CSSRuleList*, StyleResolver*); 172 PassRefPtr<TypeBuilder::Array<TypeBuilder::CSS::CSSRule> > buildArrayForRule List(CSSRuleList*, StyleResolver*);
174 PassRefPtr<TypeBuilder::Array<TypeBuilder::CSS::RuleMatch> > buildArrayForMa tchedRuleList(CSSRuleList*, StyleResolver*, Element*); 173 PassRefPtr<TypeBuilder::Array<TypeBuilder::CSS::RuleMatch> > buildArrayForMa tchedRuleList(CSSRuleList*, StyleResolver*, Element*);
175 PassRefPtr<TypeBuilder::CSS::CSSStyle> buildObjectForAttributesStyle(Element *); 174 PassRefPtr<TypeBuilder::CSS::CSSStyle> buildObjectForAttributesStyle(Element *);
176 PassRefPtr<TypeBuilder::Array<TypeBuilder::CSS::Region> > buildArrayForRegio ns(ErrorString*, PassRefPtr<NodeList>, int documentNodeId); 175 PassRefPtr<TypeBuilder::Array<TypeBuilder::CSS::Region> > buildArrayForRegio ns(ErrorString*, PassRefPtr<NodeList>, int documentNodeId);
177 PassRefPtr<TypeBuilder::CSS::NamedFlow> buildObjectForNamedFlow(ErrorString* , NamedFlow*, int documentNodeId); 176 PassRefPtr<TypeBuilder::CSS::NamedFlow> buildObjectForNamedFlow(ErrorString* , NamedFlow*, int documentNodeId);
178 177
179 // InspectorDOMAgent::DOMListener implementation 178 // InspectorDOMAgent::DOMListener implementation
180 virtual void didRemoveDocument(Document*); 179 virtual void didRemoveDocument(Document*);
181 virtual void didRemoveDOMNode(Node*); 180 virtual void didRemoveDOMNode(Node*);
182 virtual void didModifyDOMAttr(Element*); 181 virtual void didModifyDOMAttr(Element*);
182 virtual void discardListener();
183 183
184 // InspectorCSSAgent::Listener implementation 184 // InspectorCSSAgent::Listener implementation
185 virtual void styleSheetChanged(InspectorStyleSheet*); 185 virtual void styleSheetChanged(InspectorStyleSheet*);
186 186
187 void resetPseudoStates(); 187 void resetPseudoStates();
188 188
189 InspectorFrontend::CSS* m_frontend; 189 InspectorFrontend::CSS* m_frontend;
190 InspectorDOMAgent* m_domAgent; 190 InspectorDOMAgent* m_domAgent;
191 InspectorPageAgent* m_pageAgent; 191 InspectorPageAgent* m_pageAgent;
192 192
(...skipping 10 matching lines...) Expand all
203 203
204 OwnPtr<SelectorProfile> m_currentSelectorProfile; 204 OwnPtr<SelectorProfile> m_currentSelectorProfile;
205 205
206 friend class StyleSheetBinder; 206 friend class StyleSheetBinder;
207 }; 207 };
208 208
209 209
210 } // namespace WebCore 210 } // namespace WebCore
211 211
212 #endif // !defined(InspectorCSSAgent_h) 212 #endif // !defined(InspectorCSSAgent_h)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698