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 1206573002: DevTools: remove unused parts of the CSS instrumentation. (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 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
106 DECLARE_VIRTUAL_TRACE(); 106 DECLARE_VIRTUAL_TRACE();
107 107
108 bool forcePseudoState(Element*, CSSSelector::PseudoType); 108 bool forcePseudoState(Element*, CSSSelector::PseudoType);
109 void discardAgent() override; 109 void discardAgent() override;
110 void didCommitLoadForLocalFrame(LocalFrame*) override; 110 void didCommitLoadForLocalFrame(LocalFrame*) override;
111 void restore() override; 111 void restore() override;
112 void flushPendingProtocolNotifications() override; 112 void flushPendingProtocolNotifications() override;
113 void disable(ErrorString*) override; 113 void disable(ErrorString*) override;
114 void reset(); 114 void reset();
115 void mediaQueryResultChanged(); 115 void mediaQueryResultChanged();
116 void willMutateRules();
117 void didMutateRules(CSSStyleSheet*);
118 void willMutateStyle();
119 void didMutateStyle(CSSStyleDeclaration*, bool);
120 116
121 void activeStyleSheetsUpdated(Document*); 117 void activeStyleSheetsUpdated(Document*);
122 void documentDetached(Document*); 118 void documentDetached(Document*);
123 119
124 void addEditedStyleSheet(const String& url, const String& content); 120 void addEditedStyleSheet(const String& url, const String& content);
125 bool getEditedStyleSheet(const String& url, String* content); 121 bool getEditedStyleSheet(const String& url, String* content);
126 122
127 void addEditedStyleElement(int backendNodeId, const String& content); 123 void addEditedStyleElement(int backendNodeId, const String& content);
128 bool getEditedStyleElement(int backendNodeId, String* content); 124 bool getEditedStyleElement(int backendNodeId, String* content);
129 125
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
172 void setActiveStyleSheets(Document*, const WillBeHeapVector<RawPtrWillBeMemb er<CSSStyleSheet> >&, StyleSheetsUpdateType); 168 void setActiveStyleSheets(Document*, const WillBeHeapVector<RawPtrWillBeMemb er<CSSStyleSheet> >&, StyleSheetsUpdateType);
173 169
174 void collectPlatformFontsForLayoutObject(LayoutObject*, HashCountedSet<Strin g>*); 170 void collectPlatformFontsForLayoutObject(LayoutObject*, HashCountedSet<Strin g>*);
175 171
176 InspectorStyleSheet* bindStyleSheet(CSSStyleSheet*); 172 InspectorStyleSheet* bindStyleSheet(CSSStyleSheet*);
177 String unbindStyleSheet(InspectorStyleSheet*); 173 String unbindStyleSheet(InspectorStyleSheet*);
178 InspectorStyleSheet* viaInspectorStyleSheet(Document*, bool createIfAbsent); 174 InspectorStyleSheet* viaInspectorStyleSheet(Document*, bool createIfAbsent);
179 InspectorStyleSheet* assertInspectorStyleSheetForId(ErrorString*, const Stri ng&); 175 InspectorStyleSheet* assertInspectorStyleSheetForId(ErrorString*, const Stri ng&);
180 InspectorStyleSheetBase* assertStyleSheetForId(ErrorString*, const String&); 176 InspectorStyleSheetBase* assertStyleSheetForId(ErrorString*, const String&);
181 TypeBuilder::CSS::StyleSheetOrigin::Enum detectOrigin(CSSStyleSheet* pageSty leSheet, Document* ownerDocument); 177 TypeBuilder::CSS::StyleSheetOrigin::Enum detectOrigin(CSSStyleSheet* pageSty leSheet, Document* ownerDocument);
182 bool styleSheetEditInProgress() const { return m_styleSheetsPendingMutation || m_styleDeclarationPendingMutation || m_isSettingStyleSheetText; }
183 178
184 PassRefPtr<TypeBuilder::CSS::CSSRule> buildObjectForRule(CSSStyleRule*); 179 PassRefPtr<TypeBuilder::CSS::CSSRule> buildObjectForRule(CSSStyleRule*);
185 PassRefPtr<TypeBuilder::Array<TypeBuilder::CSS::RuleMatch> > buildArrayForMa tchedRuleList(CSSRuleList*, Element*, PseudoId); 180 PassRefPtr<TypeBuilder::Array<TypeBuilder::CSS::RuleMatch> > buildArrayForMa tchedRuleList(CSSRuleList*, Element*, PseudoId);
186 PassRefPtr<TypeBuilder::CSS::CSSStyle> buildObjectForAttributesStyle(Element *); 181 PassRefPtr<TypeBuilder::CSS::CSSStyle> buildObjectForAttributesStyle(Element *);
187 182
188 // InspectorDOMAgent::DOMListener implementation 183 // InspectorDOMAgent::DOMListener implementation
189 virtual void didRemoveDocument(Document*) override; 184 virtual void didRemoveDocument(Document*) override;
190 virtual void didRemoveDOMNode(Node*) override; 185 virtual void didRemoveDOMNode(Node*) override;
191 virtual void didModifyDOMAttr(Element*) override; 186 virtual void didModifyDOMAttr(Element*) override;
192 187
(...skipping 17 matching lines...) Expand all
210 205
211 NodeToInspectorStyleSheet m_nodeToInspectorStyleSheet; 206 NodeToInspectorStyleSheet m_nodeToInspectorStyleSheet;
212 WillBeHeapHashMap<RefPtrWillBeMember<Document>, RefPtrWillBeMember<Inspector StyleSheet> > m_documentToViaInspectorStyleSheet; // "via inspector" stylesheets 207 WillBeHeapHashMap<RefPtrWillBeMember<Document>, RefPtrWillBeMember<Inspector StyleSheet> > m_documentToViaInspectorStyleSheet; // "via inspector" stylesheets
213 NodeIdToForcedPseudoState m_nodeIdToForcedPseudoState; 208 NodeIdToForcedPseudoState m_nodeIdToForcedPseudoState;
214 209
215 RefPtrWillBeMember<CSSStyleSheet> m_inspectorUserAgentStyleSheet; 210 RefPtrWillBeMember<CSSStyleSheet> m_inspectorUserAgentStyleSheet;
216 HashMap<String, String> m_editedStyleSheets; 211 HashMap<String, String> m_editedStyleSheets;
217 HashMap<int, String> m_editedStyleElements; 212 HashMap<int, String> m_editedStyleElements;
218 213
219 int m_lastStyleSheetId; 214 int m_lastStyleSheetId;
220 int m_styleSheetsPendingMutation;
221 bool m_styleDeclarationPendingMutation;
222 bool m_creatingViaInspectorStyleSheet; 215 bool m_creatingViaInspectorStyleSheet;
223 bool m_isSettingStyleSheetText; 216 bool m_isSettingStyleSheetText;
224 217
225 friend class InspectorResourceContentLoaderCallback; 218 friend class InspectorResourceContentLoaderCallback;
226 friend class StyleSheetBinder; 219 friend class StyleSheetBinder;
227 }; 220 };
228 221
229 222
230 } // namespace blink 223 } // namespace blink
231 224
232 #endif // !defined(InspectorCSSAgent_h) 225 #endif // !defined(InspectorCSSAgent_h)
OLDNEW
« no previous file with comments | « Source/core/css/PropertySetCSSStyleDeclaration.cpp ('k') | Source/core/inspector/InspectorCSSAgent.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698