| 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 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 51 class Document; | 51 class Document; |
| 52 class DocumentStyleSheetCollection; | 52 class DocumentStyleSheetCollection; |
| 53 class Element; | 53 class Element; |
| 54 class InspectorCSSOMWrappers; | 54 class InspectorCSSOMWrappers; |
| 55 class InspectorFrontend; | 55 class InspectorFrontend; |
| 56 class InstrumentingAgents; | 56 class InstrumentingAgents; |
| 57 class MediaList; | 57 class MediaList; |
| 58 class NameNodeMap; | 58 class NameNodeMap; |
| 59 class Node; | 59 class Node; |
| 60 class NodeList; | 60 class NodeList; |
| 61 class SelectorProfile; | |
| 62 class StyleResolver; | 61 class StyleResolver; |
| 63 class StyleRule; | 62 class StyleRule; |
| 64 class StyleSheetVisitor; | 63 class StyleSheetVisitor; |
| 65 class UpdateRegionLayoutTask; | 64 class UpdateRegionLayoutTask; |
| 66 class UpdateActiveStylesheetsTask; | 65 class UpdateActiveStylesheetsTask; |
| 67 | 66 |
| 68 typedef HashMap<CSSStyleSheet*, RefPtr<InspectorStyleSheet> > CSSStyleSheetToIns
pectorStyleSheet; | 67 typedef HashMap<CSSStyleSheet*, RefPtr<InspectorStyleSheet> > CSSStyleSheetToIns
pectorStyleSheet; |
| 69 typedef Vector<RefPtr<StyleSheet> > StyleSheetVector; | 68 typedef Vector<RefPtr<StyleSheet> > StyleSheetVector; |
| 70 | 69 |
| 71 class InspectorCSSAgent | 70 class InspectorCSSAgent |
| (...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 141 virtual void setStyleSheetText(ErrorString*, const String& styleSheetId, con
st String& text); | 140 virtual void setStyleSheetText(ErrorString*, const String& styleSheetId, con
st String& text); |
| 142 virtual void setStyleText(ErrorString*, const RefPtr<JSONObject>& styleId, c
onst String& text, RefPtr<TypeBuilder::CSS::CSSStyle>& result); | 141 virtual void setStyleText(ErrorString*, const RefPtr<JSONObject>& styleId, c
onst String& text, RefPtr<TypeBuilder::CSS::CSSStyle>& result); |
| 143 virtual void setPropertyText(ErrorString*, const RefPtr<JSONObject>& styleId
, int propertyIndex, const String& text, bool overwrite, RefPtr<TypeBuilder::CSS
::CSSStyle>& result); | 142 virtual void setPropertyText(ErrorString*, const RefPtr<JSONObject>& styleId
, int propertyIndex, const String& text, bool overwrite, RefPtr<TypeBuilder::CSS
::CSSStyle>& result); |
| 144 virtual void toggleProperty(ErrorString*, const RefPtr<JSONObject>& styleId,
int propertyIndex, bool disable, RefPtr<TypeBuilder::CSS::CSSStyle>& result); | 143 virtual void toggleProperty(ErrorString*, const RefPtr<JSONObject>& styleId,
int propertyIndex, bool disable, RefPtr<TypeBuilder::CSS::CSSStyle>& result); |
| 145 virtual void setRuleSelector(ErrorString*, const RefPtr<JSONObject>& ruleId,
const String& selector, RefPtr<TypeBuilder::CSS::CSSRule>& result); | 144 virtual void setRuleSelector(ErrorString*, const RefPtr<JSONObject>& ruleId,
const String& selector, RefPtr<TypeBuilder::CSS::CSSRule>& result); |
| 146 virtual void addRule(ErrorString*, int contextNodeId, const String& selector
, RefPtr<TypeBuilder::CSS::CSSRule>& result); | 145 virtual void addRule(ErrorString*, int contextNodeId, const String& selector
, RefPtr<TypeBuilder::CSS::CSSRule>& result); |
| 147 virtual void getSupportedCSSProperties(ErrorString*, RefPtr<TypeBuilder::Arr
ay<TypeBuilder::CSS::CSSPropertyInfo> >& result); | 146 virtual void getSupportedCSSProperties(ErrorString*, RefPtr<TypeBuilder::Arr
ay<TypeBuilder::CSS::CSSPropertyInfo> >& result); |
| 148 virtual void forcePseudoState(ErrorString*, int nodeId, const RefPtr<JSONArr
ay>& forcedPseudoClasses); | 147 virtual void forcePseudoState(ErrorString*, int nodeId, const RefPtr<JSONArr
ay>& forcedPseudoClasses); |
| 149 virtual void getNamedFlowCollection(ErrorString*, int documentNodeId, RefPtr
<TypeBuilder::Array<TypeBuilder::CSS::NamedFlow> >& result); | 148 virtual void getNamedFlowCollection(ErrorString*, int documentNodeId, RefPtr
<TypeBuilder::Array<TypeBuilder::CSS::NamedFlow> >& result); |
| 150 | 149 |
| 151 virtual void startSelectorProfiler(ErrorString*); | |
| 152 virtual void stopSelectorProfiler(ErrorString*, RefPtr<TypeBuilder::CSS::Sel
ectorProfile>&); | |
| 153 | |
| 154 PassRefPtr<TypeBuilder::CSS::SelectorProfile> stopSelectorProfilerImpl(Error
String*, bool needProfile); | |
| 155 void willMatchRule(StyleRule*, InspectorCSSOMWrappers&, DocumentStyleSheetCo
llection*); | |
| 156 void didMatchRule(bool); | |
| 157 void willProcessRule(StyleRule*, StyleResolver*); | |
| 158 void didProcessRule(); | |
| 159 PassRefPtr<TypeBuilder::CSS::CSSMedia> buildMediaObject(const MediaList*, Me
diaListSource, const String&, CSSStyleSheet*); | 150 PassRefPtr<TypeBuilder::CSS::CSSMedia> buildMediaObject(const MediaList*, Me
diaListSource, const String&, CSSStyleSheet*); |
| 160 PassRefPtr<TypeBuilder::Array<TypeBuilder::CSS::CSSMedia> > buildMediaListCh
ain(CSSRule*); | 151 PassRefPtr<TypeBuilder::Array<TypeBuilder::CSS::CSSMedia> > buildMediaListCh
ain(CSSRule*); |
| 161 | 152 |
| 162 private: | 153 private: |
| 163 class StyleSheetAction; | 154 class StyleSheetAction; |
| 164 class SetStyleSheetTextAction; | 155 class SetStyleSheetTextAction; |
| 165 class SetStyleTextAction; | 156 class SetStyleTextAction; |
| 166 class SetPropertyTextAction; | 157 class SetPropertyTextAction; |
| 167 class TogglePropertyAction; | 158 class TogglePropertyAction; |
| 168 class SetRuleSelectorAction; | 159 class SetRuleSelectorAction; |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 217 DocumentToViaInspectorStyleSheet m_documentToInspectorStyleSheet; | 208 DocumentToViaInspectorStyleSheet m_documentToInspectorStyleSheet; |
| 218 NodeIdToForcedPseudoState m_nodeIdToForcedPseudoState; | 209 NodeIdToForcedPseudoState m_nodeIdToForcedPseudoState; |
| 219 HashSet<int> m_namedFlowCollectionsRequested; | 210 HashSet<int> m_namedFlowCollectionsRequested; |
| 220 OwnPtr<UpdateRegionLayoutTask> m_updateRegionLayoutTask; | 211 OwnPtr<UpdateRegionLayoutTask> m_updateRegionLayoutTask; |
| 221 OwnPtr<ChangeRegionOversetTask> m_changeRegionOversetTask; | 212 OwnPtr<ChangeRegionOversetTask> m_changeRegionOversetTask; |
| 222 | 213 |
| 223 int m_lastStyleSheetId; | 214 int m_lastStyleSheetId; |
| 224 bool m_creatingViaInspectorStyleSheet; | 215 bool m_creatingViaInspectorStyleSheet; |
| 225 bool m_isSettingStyleSheetText; | 216 bool m_isSettingStyleSheetText; |
| 226 | 217 |
| 227 OwnPtr<SelectorProfile> m_currentSelectorProfile; | |
| 228 | |
| 229 friend class ChangeRegionOversetTask; | 218 friend class ChangeRegionOversetTask; |
| 230 friend class StyleSheetBinder; | 219 friend class StyleSheetBinder; |
| 231 friend class UpdateRegionLayoutTask; | 220 friend class UpdateRegionLayoutTask; |
| 232 }; | 221 }; |
| 233 | 222 |
| 234 | 223 |
| 235 } // namespace WebCore | 224 } // namespace WebCore |
| 236 | 225 |
| 237 #endif // !defined(InspectorCSSAgent_h) | 226 #endif // !defined(InspectorCSSAgent_h) |
| OLD | NEW |