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

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

Issue 38943008: Explore the possibility of implementing the CSS Region interface. Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 7 years, 1 month 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
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 25 matching lines...) Expand all
36 #include "wtf/HashSet.h" 36 #include "wtf/HashSet.h"
37 #include "wtf/PassRefPtr.h" 37 #include "wtf/PassRefPtr.h"
38 #include "wtf/RefPtr.h" 38 #include "wtf/RefPtr.h"
39 #include "wtf/Vector.h" 39 #include "wtf/Vector.h"
40 #include "wtf/text/WTFString.h" 40 #include "wtf/text/WTFString.h"
41 41
42 namespace WebCore { 42 namespace WebCore {
43 43
44 class ChangeRegionOversetTask; 44 class ChangeRegionOversetTask;
45 struct CSSParserString; 45 struct CSSParserString;
46 class CSSRegion;
46 class CSSRule; 47 class CSSRule;
47 class CSSRuleList; 48 class CSSRuleList;
48 class CSSStyleRule; 49 class CSSStyleRule;
49 class CSSStyleSheet; 50 class CSSStyleSheet;
50 class Document; 51 class Document;
51 class Element; 52 class Element;
52 class InspectorFrontend; 53 class InspectorFrontend;
53 class InspectorResourceAgent; 54 class InspectorResourceAgent;
54 class InstrumentingAgents; 55 class InstrumentingAgents;
55 class MediaList; 56 class MediaList;
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after
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<RefPtr<CSSRegion> >, 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
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)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698