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

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

Issue 17848002: Web Inspector: Integrate new regionOversetChange event into inspector (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 7 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
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 23 matching lines...) Expand all
34 #include "core/platform/JSONValues.h" 34 #include "core/platform/JSONValues.h"
35 #include "wtf/HashMap.h" 35 #include "wtf/HashMap.h"
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 struct CSSParserString; 45 struct CSSParserString;
45 class CSSRule; 46 class CSSRule;
46 class CSSRuleList; 47 class CSSRuleList;
47 class CSSStyleDeclaration; 48 class CSSStyleDeclaration;
48 class CSSStyleRule; 49 class CSSStyleRule;
49 class CSSStyleSheet; 50 class CSSStyleSheet;
50 class Document; 51 class Document;
51 class DocumentStyleSheetCollection; 52 class DocumentStyleSheetCollection;
52 class Element; 53 class Element;
53 class InspectorCSSOMWrappers; 54 class InspectorCSSOMWrappers;
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
112 virtual void restore(); 113 virtual void restore();
113 virtual void enable(ErrorString*); 114 virtual void enable(ErrorString*);
114 virtual void disable(ErrorString*); 115 virtual void disable(ErrorString*);
115 void reset(); 116 void reset();
116 void didCommitLoad(Frame*, DocumentLoader*); 117 void didCommitLoad(Frame*, DocumentLoader*);
117 void mediaQueryResultChanged(); 118 void mediaQueryResultChanged();
118 void didCreateNamedFlow(Document*, NamedFlow*); 119 void didCreateNamedFlow(Document*, NamedFlow*);
119 void willRemoveNamedFlow(Document*, NamedFlow*); 120 void willRemoveNamedFlow(Document*, NamedFlow*);
120 void didUpdateRegionLayout(Document*, NamedFlow*); 121 void didUpdateRegionLayout(Document*, NamedFlow*);
121 void regionLayoutUpdated(NamedFlow*, int documentNodeId); 122 void regionLayoutUpdated(NamedFlow*, int documentNodeId);
123 void didChangeRegionOverset(Document*, NamedFlow*);
124 void regionOversetChanged(NamedFlow*, int documentNodeId);
pfeldman 2013/06/26 14:37:41 I'd rather make this private + make css agent a fr
122 void activeStyleSheetsUpdated(Document*, const Vector<RefPtr<StyleSheet> >& newSheets); 125 void activeStyleSheetsUpdated(Document*, const Vector<RefPtr<StyleSheet> >& newSheets);
123 void frameDetachedFromParent(Frame*); 126 void frameDetachedFromParent(Frame*);
124 127
125 virtual void getComputedStyleForNode(ErrorString*, int nodeId, RefPtr<TypeBu ilder::Array<TypeBuilder::CSS::CSSComputedStyleProperty> >&); 128 virtual void getComputedStyleForNode(ErrorString*, int nodeId, RefPtr<TypeBu ilder::Array<TypeBuilder::CSS::CSSComputedStyleProperty> >&);
126 virtual void getInlineStylesForNode(ErrorString*, int nodeId, RefPtr<TypeBui lder::CSS::CSSStyle>& inlineStyle, RefPtr<TypeBuilder::CSS::CSSStyle>& attribute s); 129 virtual void getInlineStylesForNode(ErrorString*, int nodeId, RefPtr<TypeBui lder::CSS::CSSStyle>& inlineStyle, RefPtr<TypeBuilder::CSS::CSSStyle>& attribute s);
127 virtual void getMatchedStylesForNode(ErrorString*, int nodeId, const bool* i ncludePseudo, const bool* includeInherited, RefPtr<TypeBuilder::Array<TypeBuilde r::CSS::RuleMatch> >& matchedCSSRules, RefPtr<TypeBuilder::Array<TypeBuilder::CS S::PseudoIdMatches> >& pseudoIdMatches, RefPtr<TypeBuilder::Array<TypeBuilder::C SS::InheritedStyleEntry> >& inheritedEntries); 130 virtual void getMatchedStylesForNode(ErrorString*, int nodeId, const bool* i ncludePseudo, const bool* includeInherited, RefPtr<TypeBuilder::Array<TypeBuilde r::CSS::RuleMatch> >& matchedCSSRules, RefPtr<TypeBuilder::Array<TypeBuilder::CS S::PseudoIdMatches> >& pseudoIdMatches, RefPtr<TypeBuilder::Array<TypeBuilder::C SS::InheritedStyleEntry> >& inheritedEntries);
128 virtual void getAllStyleSheets(ErrorString*, RefPtr<TypeBuilder::Array<TypeB uilder::CSS::CSSStyleSheetHeader> >& styleSheetInfos); 131 virtual void getAllStyleSheets(ErrorString*, RefPtr<TypeBuilder::Array<TypeB uilder::CSS::CSSStyleSheetHeader> >& styleSheetInfos);
129 virtual void getStyleSheet(ErrorString*, const String& styleSheetId, RefPtr< TypeBuilder::CSS::CSSStyleSheetBody>& result); 132 virtual void getStyleSheet(ErrorString*, const String& styleSheetId, RefPtr< TypeBuilder::CSS::CSSStyleSheetBody>& result);
130 virtual void getStyleSheetText(ErrorString*, const String& styleSheetId, Str ing* result); 133 virtual void getStyleSheetText(ErrorString*, const String& styleSheetId, Str ing* result);
131 virtual void setStyleSheetText(ErrorString*, const String& styleSheetId, con st String& text); 134 virtual void setStyleSheetText(ErrorString*, const String& styleSheetId, con st String& text);
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
199 InspectorDOMAgent* m_domAgent; 202 InspectorDOMAgent* m_domAgent;
200 InspectorPageAgent* m_pageAgent; 203 InspectorPageAgent* m_pageAgent;
201 204
202 IdToInspectorStyleSheet m_idToInspectorStyleSheet; 205 IdToInspectorStyleSheet m_idToInspectorStyleSheet;
203 CSSStyleSheetToInspectorStyleSheet m_cssStyleSheetToInspectorStyleSheet; 206 CSSStyleSheetToInspectorStyleSheet m_cssStyleSheetToInspectorStyleSheet;
204 NodeToInspectorStyleSheet m_nodeToInspectorStyleSheet; 207 NodeToInspectorStyleSheet m_nodeToInspectorStyleSheet;
205 DocumentToViaInspectorStyleSheet m_documentToInspectorStyleSheet; 208 DocumentToViaInspectorStyleSheet m_documentToInspectorStyleSheet;
206 NodeIdToForcedPseudoState m_nodeIdToForcedPseudoState; 209 NodeIdToForcedPseudoState m_nodeIdToForcedPseudoState;
207 HashSet<int> m_namedFlowCollectionsRequested; 210 HashSet<int> m_namedFlowCollectionsRequested;
208 OwnPtr<UpdateRegionLayoutTask> m_updateRegionLayoutTask; 211 OwnPtr<UpdateRegionLayoutTask> m_updateRegionLayoutTask;
212 OwnPtr<ChangeRegionOversetTask> m_changeRegionOversetTask;
209 213
210 int m_lastStyleSheetId; 214 int m_lastStyleSheetId;
211 bool m_creatingViaInspectorStyleSheet; 215 bool m_creatingViaInspectorStyleSheet;
212 216
213 OwnPtr<SelectorProfile> m_currentSelectorProfile; 217 OwnPtr<SelectorProfile> m_currentSelectorProfile;
214 218
215 friend class StyleSheetBinder; 219 friend class StyleSheetBinder;
216 }; 220 };
217 221
218 222
219 } // namespace WebCore 223 } // namespace WebCore
220 224
221 #endif // !defined(InspectorCSSAgent_h) 225 #endif // !defined(InspectorCSSAgent_h)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698