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

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: Rebase Created 7 years, 5 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 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
110 virtual void clearFrontend(); 111 virtual void clearFrontend();
111 virtual void discardAgent(); 112 virtual void discardAgent();
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*);
121
122 private:
123 void regionLayoutUpdated(NamedFlow*, int documentNodeId);
124 void regionOversetChanged(NamedFlow*, int documentNodeId);
125
126 public:
120 void didUpdateRegionLayout(Document*, NamedFlow*); 127 void didUpdateRegionLayout(Document*, NamedFlow*);
121 void regionLayoutUpdated(NamedFlow*, int documentNodeId); 128 void didChangeRegionOverset(Document*, NamedFlow*);
129
122 void activeStyleSheetsUpdated(Document*, const Vector<RefPtr<StyleSheet> >& newSheets); 130 void activeStyleSheetsUpdated(Document*, const Vector<RefPtr<StyleSheet> >& newSheets);
123 void frameDetachedFromParent(Frame*); 131 void frameDetachedFromParent(Frame*);
124 132
125 virtual void getComputedStyleForNode(ErrorString*, int nodeId, RefPtr<TypeBu ilder::Array<TypeBuilder::CSS::CSSComputedStyleProperty> >&); 133 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); 134 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); 135 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); 136 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); 137 virtual void getStyleSheet(ErrorString*, const String& styleSheetId, RefPtr< TypeBuilder::CSS::CSSStyleSheetBody>& result);
130 virtual void getStyleSheetText(ErrorString*, const String& styleSheetId, Str ing* result); 138 virtual void getStyleSheetText(ErrorString*, const String& styleSheetId, Str ing* result);
131 virtual void setStyleSheetText(ErrorString*, const String& styleSheetId, con st String& text); 139 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; 207 InspectorDOMAgent* m_domAgent;
200 InspectorPageAgent* m_pageAgent; 208 InspectorPageAgent* m_pageAgent;
201 209
202 IdToInspectorStyleSheet m_idToInspectorStyleSheet; 210 IdToInspectorStyleSheet m_idToInspectorStyleSheet;
203 CSSStyleSheetToInspectorStyleSheet m_cssStyleSheetToInspectorStyleSheet; 211 CSSStyleSheetToInspectorStyleSheet m_cssStyleSheetToInspectorStyleSheet;
204 NodeToInspectorStyleSheet m_nodeToInspectorStyleSheet; 212 NodeToInspectorStyleSheet m_nodeToInspectorStyleSheet;
205 DocumentToViaInspectorStyleSheet m_documentToInspectorStyleSheet; 213 DocumentToViaInspectorStyleSheet m_documentToInspectorStyleSheet;
206 NodeIdToForcedPseudoState m_nodeIdToForcedPseudoState; 214 NodeIdToForcedPseudoState m_nodeIdToForcedPseudoState;
207 HashSet<int> m_namedFlowCollectionsRequested; 215 HashSet<int> m_namedFlowCollectionsRequested;
208 OwnPtr<UpdateRegionLayoutTask> m_updateRegionLayoutTask; 216 OwnPtr<UpdateRegionLayoutTask> m_updateRegionLayoutTask;
217 OwnPtr<ChangeRegionOversetTask> m_changeRegionOversetTask;
209 218
210 int m_lastStyleSheetId; 219 int m_lastStyleSheetId;
211 bool m_creatingViaInspectorStyleSheet; 220 bool m_creatingViaInspectorStyleSheet;
212 221
213 OwnPtr<SelectorProfile> m_currentSelectorProfile; 222 OwnPtr<SelectorProfile> m_currentSelectorProfile;
214 223
224 friend class ChangeRegionOversetTask;
215 friend class StyleSheetBinder; 225 friend class StyleSheetBinder;
226 friend class UpdateRegionLayoutTask;
216 }; 227 };
217 228
218 229
219 } // namespace WebCore 230 } // namespace WebCore
220 231
221 #endif // !defined(InspectorCSSAgent_h) 232 #endif // !defined(InspectorCSSAgent_h)
OLDNEW
« no previous file with comments | « LayoutTests/inspector/styles/protocol-css-regions-commands-expected.txt ('k') | Source/core/inspector/InspectorCSSAgent.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698