| 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 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 restore() OVERRIDE; | 110 virtual void restore() OVERRIDE; |
| 111 virtual void flushPendingFrontendMessages() OVERRIDE; | |
| 112 virtual void enable(ErrorString*, PassRefPtr<EnableCallback>) OVERRIDE; | 111 virtual void enable(ErrorString*, PassRefPtr<EnableCallback>) OVERRIDE; |
| 113 virtual void disable(ErrorString*) OVERRIDE; | 112 virtual void disable(ErrorString*) OVERRIDE; |
| 114 void reset(); | 113 void reset(); |
| 115 void didCommitLoad(LocalFrame*, DocumentLoader*); | 114 void didCommitLoad(LocalFrame*, DocumentLoader*); |
| 116 void mediaQueryResultChanged(); | 115 void mediaQueryResultChanged(); |
| 117 void willMutateRules(); | 116 void willMutateRules(); |
| 118 void didMutateRules(CSSStyleSheet*); | 117 void didMutateRules(CSSStyleSheet*); |
| 119 void willMutateStyle(); | 118 void willMutateStyle(); |
| 120 void didMutateStyle(CSSStyleDeclaration*, bool); | 119 void didMutateStyle(CSSStyleDeclaration*, bool); |
| 121 | 120 |
| (...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 190 | 189 |
| 191 InspectorFrontend::CSS* m_frontend; | 190 InspectorFrontend::CSS* m_frontend; |
| 192 InspectorDOMAgent* m_domAgent; | 191 InspectorDOMAgent* m_domAgent; |
| 193 InspectorPageAgent* m_pageAgent; | 192 InspectorPageAgent* m_pageAgent; |
| 194 InspectorResourceAgent* m_resourceAgent; | 193 InspectorResourceAgent* m_resourceAgent; |
| 195 | 194 |
| 196 IdToInspectorStyleSheet m_idToInspectorStyleSheet; | 195 IdToInspectorStyleSheet m_idToInspectorStyleSheet; |
| 197 HashMap<CSSStyleSheet*, RefPtr<InspectorStyleSheet> > m_cssStyleSheetToInspe
ctorStyleSheet; | 196 HashMap<CSSStyleSheet*, RefPtr<InspectorStyleSheet> > m_cssStyleSheetToInspe
ctorStyleSheet; |
| 198 typedef HashMap<Document*, OwnPtr<HashSet<CSSStyleSheet*> > > DocumentStyleS
heets; | 197 typedef HashMap<Document*, OwnPtr<HashSet<CSSStyleSheet*> > > DocumentStyleS
heets; |
| 199 DocumentStyleSheets m_documentToCSSStyleSheets; | 198 DocumentStyleSheets m_documentToCSSStyleSheets; |
| 200 HashSet<Document*> m_invalidatedDocuments; | |
| 201 | 199 |
| 202 NodeToInspectorStyleSheet m_nodeToInspectorStyleSheet; | 200 NodeToInspectorStyleSheet m_nodeToInspectorStyleSheet; |
| 203 HashMap<RefPtr<Document>, RefPtr<InspectorStyleSheet> > m_documentToViaInspe
ctorStyleSheet; // "via inspector" stylesheets | 201 HashMap<RefPtr<Document>, RefPtr<InspectorStyleSheet> > m_documentToViaInspe
ctorStyleSheet; // "via inspector" stylesheets |
| 204 NodeIdToForcedPseudoState m_nodeIdToForcedPseudoState; | 202 NodeIdToForcedPseudoState m_nodeIdToForcedPseudoState; |
| 205 | 203 |
| 206 RefPtr<CSSStyleSheet> m_inspectorUserAgentStyleSheet; | 204 RefPtr<CSSStyleSheet> m_inspectorUserAgentStyleSheet; |
| 207 | 205 |
| 208 int m_lastStyleSheetId; | 206 int m_lastStyleSheetId; |
| 209 int m_styleSheetsPendingMutation; | 207 int m_styleSheetsPendingMutation; |
| 210 bool m_styleDeclarationPendingMutation; | 208 bool m_styleDeclarationPendingMutation; |
| 211 bool m_creatingViaInspectorStyleSheet; | 209 bool m_creatingViaInspectorStyleSheet; |
| 212 bool m_isSettingStyleSheetText; | 210 bool m_isSettingStyleSheetText; |
| 213 | 211 |
| 214 friend class EnableResourceClient; | 212 friend class EnableResourceClient; |
| 215 friend class StyleSheetBinder; | 213 friend class StyleSheetBinder; |
| 216 }; | 214 }; |
| 217 | 215 |
| 218 | 216 |
| 219 } // namespace WebCore | 217 } // namespace WebCore |
| 220 | 218 |
| 221 #endif // !defined(InspectorCSSAgent_h) | 219 #endif // !defined(InspectorCSSAgent_h) |
| OLD | NEW |