| 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 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 49 class CSSStyleSheet; | 49 class CSSStyleSheet; |
| 50 class Document; | 50 class Document; |
| 51 class Element; | 51 class Element; |
| 52 class InspectorFrontend; | 52 class InspectorFrontend; |
| 53 class InspectorResourceAgent; | 53 class InspectorResourceAgent; |
| 54 class InstrumentingAgents; | 54 class InstrumentingAgents; |
| 55 class MediaList; | 55 class MediaList; |
| 56 class Node; | 56 class Node; |
| 57 class NodeList; | 57 class NodeList; |
| 58 class PlatformFontUsage; | 58 class PlatformFontUsage; |
| 59 class RenderRegion; |
| 59 class StyleResolver; | 60 class StyleResolver; |
| 60 class UpdateRegionLayoutTask; | 61 class UpdateRegionLayoutTask; |
| 61 | 62 |
| 62 typedef HashMap<CSSStyleSheet*, RefPtr<InspectorStyleSheet> > CSSStyleSheetToIns
pectorStyleSheet; | 63 typedef HashMap<CSSStyleSheet*, RefPtr<InspectorStyleSheet> > CSSStyleSheetToIns
pectorStyleSheet; |
| 63 typedef Vector<RefPtr<StyleSheet> > StyleSheetVector; | 64 typedef Vector<RefPtr<StyleSheet> > StyleSheetVector; |
| 64 | 65 |
| 65 class InspectorCSSAgent | 66 class InspectorCSSAgent |
| 66 : public InspectorBaseAgent<InspectorCSSAgent> | 67 : public InspectorBaseAgent<InspectorCSSAgent> |
| 67 , public InspectorDOMAgent::DOMListener | 68 , public InspectorDOMAgent::DOMListener |
| 68 , public InspectorBackendDispatcher::CSSCommandHandler | 69 , public InspectorBackendDispatcher::CSSCommandHandler |
| (...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 176 InspectorStyleSheet* bindStyleSheet(CSSStyleSheet*); | 177 InspectorStyleSheet* bindStyleSheet(CSSStyleSheet*); |
| 177 String unbindStyleSheet(InspectorStyleSheet*); | 178 String unbindStyleSheet(InspectorStyleSheet*); |
| 178 InspectorStyleSheet* viaInspectorStyleSheet(Document*, bool createIfAbsent); | 179 InspectorStyleSheet* viaInspectorStyleSheet(Document*, bool createIfAbsent); |
| 179 InspectorStyleSheet* assertStyleSheetForId(ErrorString*, const String&); | 180 InspectorStyleSheet* assertStyleSheetForId(ErrorString*, const String&); |
| 180 TypeBuilder::CSS::StyleSheetOrigin::Enum detectOrigin(CSSStyleSheet* pageSty
leSheet, Document* ownerDocument); | 181 TypeBuilder::CSS::StyleSheetOrigin::Enum detectOrigin(CSSStyleSheet* pageSty
leSheet, Document* ownerDocument); |
| 181 | 182 |
| 182 PassRefPtr<TypeBuilder::CSS::CSSRule> buildObjectForRule(CSSStyleRule*, Styl
eResolver*); | 183 PassRefPtr<TypeBuilder::CSS::CSSRule> buildObjectForRule(CSSStyleRule*, Styl
eResolver*); |
| 183 PassRefPtr<TypeBuilder::Array<TypeBuilder::CSS::CSSRule> > buildArrayForRule
List(CSSRuleList*, StyleResolver*); | 184 PassRefPtr<TypeBuilder::Array<TypeBuilder::CSS::CSSRule> > buildArrayForRule
List(CSSRuleList*, StyleResolver*); |
| 184 PassRefPtr<TypeBuilder::Array<TypeBuilder::CSS::RuleMatch> > buildArrayForMa
tchedRuleList(CSSRuleList*, StyleResolver*, Element*); | 185 PassRefPtr<TypeBuilder::Array<TypeBuilder::CSS::RuleMatch> > buildArrayForMa
tchedRuleList(CSSRuleList*, StyleResolver*, Element*); |
| 185 PassRefPtr<TypeBuilder::CSS::CSSStyle> buildObjectForAttributesStyle(Element
*); | 186 PassRefPtr<TypeBuilder::CSS::CSSStyle> buildObjectForAttributesStyle(Element
*); |
| 186 PassRefPtr<TypeBuilder::Array<TypeBuilder::CSS::Region> > buildArrayForRegio
ns(ErrorString*, PassRefPtr<NodeList>, int documentNodeId); | 187 PassRefPtr<TypeBuilder::Array<TypeBuilder::CSS::Region> > buildArrayForRegio
ns(ErrorString*, Vector<const RenderRegion*>, int documentNodeId); |
| 187 PassRefPtr<TypeBuilder::CSS::NamedFlow> buildObjectForNamedFlow(ErrorString*
, NamedFlow*, int documentNodeId); | 188 PassRefPtr<TypeBuilder::CSS::NamedFlow> buildObjectForNamedFlow(ErrorString*
, NamedFlow*, int documentNodeId); |
| 188 | 189 |
| 189 // InspectorDOMAgent::DOMListener implementation | 190 // InspectorDOMAgent::DOMListener implementation |
| 190 virtual void didRemoveDocument(Document*); | 191 virtual void didRemoveDocument(Document*); |
| 191 virtual void didRemoveDOMNode(Node*); | 192 virtual void didRemoveDOMNode(Node*); |
| 192 virtual void didModifyDOMAttr(Element*); | 193 virtual void didModifyDOMAttr(Element*); |
| 193 | 194 |
| 194 // InspectorCSSAgent::Listener implementation | 195 // InspectorCSSAgent::Listener implementation |
| 195 virtual void styleSheetChanged(InspectorStyleSheet*) OVERRIDE; | 196 virtual void styleSheetChanged(InspectorStyleSheet*) OVERRIDE; |
| 196 virtual void willReparseStyleSheet() OVERRIDE; | 197 virtual void willReparseStyleSheet() OVERRIDE; |
| (...skipping 22 matching lines...) Expand all Loading... |
| 219 friend class ChangeRegionOversetTask; | 220 friend class ChangeRegionOversetTask; |
| 220 friend class EnableResourceClient; | 221 friend class EnableResourceClient; |
| 221 friend class StyleSheetBinder; | 222 friend class StyleSheetBinder; |
| 222 friend class UpdateRegionLayoutTask; | 223 friend class UpdateRegionLayoutTask; |
| 223 }; | 224 }; |
| 224 | 225 |
| 225 | 226 |
| 226 } // namespace WebCore | 227 } // namespace WebCore |
| 227 | 228 |
| 228 #endif // !defined(InspectorCSSAgent_h) | 229 #endif // !defined(InspectorCSSAgent_h) |
| OLD | NEW |