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

Unified Diff: Source/core/inspector/InspectorCSSAgent.h

Issue 16745003: DevTools: Move CSS.CSSMedia construction into InspectorCSSAgent (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Make InspectorPageAgent getter a const one 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 side-by-side diff with in-line comments
Download patch
Index: Source/core/inspector/InspectorCSSAgent.h
diff --git a/Source/core/inspector/InspectorCSSAgent.h b/Source/core/inspector/InspectorCSSAgent.h
index 9fdd35cdd4003209b9a8823f35dde9faf5ed7e9f..2b55d5804f23ed412d5474c97b6b33a51079d3e6 100644
--- a/Source/core/inspector/InspectorCSSAgent.h
+++ b/Source/core/inspector/InspectorCSSAgent.h
@@ -54,6 +54,7 @@ class Element;
class InspectorCSSOMWrappers;
class InspectorFrontend;
class InstrumentingAgents;
+class MediaList;
class NameNodeMap;
class Node;
class NodeList;
@@ -72,6 +73,13 @@ class InspectorCSSAgent
, public InspectorStyleSheet::Listener {
WTF_MAKE_NONCOPYABLE(InspectorCSSAgent);
public:
+ enum MediaListSource {
+ MediaListSourceLinkedSheet,
+ MediaListSourceInlineSheet,
+ MediaListSourceMediaRule,
+ MediaListSourceImportRule
+ };
+
class InlineStyleOverrideScope {
public:
InlineStyleOverrideScope(SecurityContext* context)
@@ -134,11 +142,14 @@ public:
virtual void startSelectorProfiler(ErrorString*);
virtual void stopSelectorProfiler(ErrorString*, RefPtr<TypeBuilder::CSS::SelectorProfile>&);
+ InspectorPageAgent* pageAgent() const { return m_pageAgent; }
yurys 2013/06/13 14:48:35 As discussed offline please revert this part of th
PassRefPtr<TypeBuilder::CSS::SelectorProfile> stopSelectorProfilerImpl(ErrorString*, bool needProfile);
void willMatchRule(StyleRule*, InspectorCSSOMWrappers&, DocumentStyleSheetCollection*);
void didMatchRule(bool);
void willProcessRule(StyleRule*, StyleResolver*);
void didProcessRule();
+ PassRefPtr<TypeBuilder::CSS::CSSMedia> buildMediaObject(const MediaList*, MediaListSource, const String&);
+ void fillMediaListChain(CSSRule*, TypeBuilder::Array<TypeBuilder::CSS::CSSMedia>*);
private:
class StyleSheetAction;
« no previous file with comments | « no previous file | Source/core/inspector/InspectorCSSAgent.cpp » ('j') | Source/core/inspector/InspectorCSSAgent.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698