Chromium Code Reviews| 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 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 43 | 43 |
| 44 namespace blink { | 44 namespace blink { |
| 45 | 45 |
| 46 class CSSRule; | 46 class CSSRule; |
| 47 class CSSRuleList; | 47 class CSSRuleList; |
| 48 class CSSStyleRule; | 48 class CSSStyleRule; |
| 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 InspectorOverlay; | |
|
dgozman
2015/06/25 10:10:38
Not needed
sergeyv
2015/06/25 12:19:16
Done.
| |
| 53 class InspectorResourceAgent; | 54 class InspectorResourceAgent; |
| 54 class MediaList; | 55 class MediaList; |
| 55 class Node; | 56 class Node; |
| 56 class LayoutObject; | 57 class LayoutObject; |
| 57 | 58 |
| 58 class CORE_EXPORT InspectorCSSAgent final | 59 class CORE_EXPORT InspectorCSSAgent final |
| 59 : public InspectorBaseAgent<InspectorCSSAgent, InspectorFrontend::CSS> | 60 : public InspectorBaseAgent<InspectorCSSAgent, InspectorFrontend::CSS> |
| 60 , public InspectorDOMAgent::DOMListener | 61 , public InspectorDOMAgent::DOMListener |
| 61 , public InspectorBackendDispatcher::CSSCommandHandler | 62 , public InspectorBackendDispatcher::CSSCommandHandler |
| 62 , public InspectorStyleSheetBase::Listener { | 63 , public InspectorStyleSheetBase::Listener { |
| (...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 134 virtual void setStyleText(ErrorString*, const String& styleSheetId, const Re fPtr<JSONObject>& range, const String& text, RefPtr<TypeBuilder::CSS::CSSStyle>& result) override; | 135 virtual void setStyleText(ErrorString*, const String& styleSheetId, const Re fPtr<JSONObject>& range, const String& text, RefPtr<TypeBuilder::CSS::CSSStyle>& result) override; |
| 135 virtual void setMediaText(ErrorString*, const String& styleSheetId, const Re fPtr<JSONObject>& range, const String& text, RefPtr<TypeBuilder::CSS::CSSMedia>& result) override; | 136 virtual void setMediaText(ErrorString*, const String& styleSheetId, const Re fPtr<JSONObject>& range, const String& text, RefPtr<TypeBuilder::CSS::CSSMedia>& result) override; |
| 136 virtual void createStyleSheet(ErrorString*, const String& frameId, TypeBuild er::CSS::StyleSheetId* outStyleSheetId) override; | 137 virtual void createStyleSheet(ErrorString*, const String& frameId, TypeBuild er::CSS::StyleSheetId* outStyleSheetId) override; |
| 137 virtual void addRule(ErrorString*, const String& styleSheetId, const String& ruleText, const RefPtr<JSONObject>& location, RefPtr<TypeBuilder::CSS::CSSRule> & result) override; | 138 virtual void addRule(ErrorString*, const String& styleSheetId, const String& ruleText, const RefPtr<JSONObject>& location, RefPtr<TypeBuilder::CSS::CSSRule> & result) override; |
| 138 virtual void forcePseudoState(ErrorString*, int nodeId, const RefPtr<JSONArr ay>& forcedPseudoClasses) override; | 139 virtual void forcePseudoState(ErrorString*, int nodeId, const RefPtr<JSONArr ay>& forcedPseudoClasses) override; |
| 139 virtual void getMediaQueries(ErrorString*, RefPtr<TypeBuilder::Array<TypeBui lder::CSS::CSSMedia> >& medias) override; | 140 virtual void getMediaQueries(ErrorString*, RefPtr<TypeBuilder::Array<TypeBui lder::CSS::CSSMedia> >& medias) override; |
| 140 bool collectMediaQueriesFromRule(CSSRule*, TypeBuilder::Array<TypeBuilder::C SS::CSSMedia>* mediaArray); | 141 bool collectMediaQueriesFromRule(CSSRule*, TypeBuilder::Array<TypeBuilder::C SS::CSSMedia>* mediaArray); |
| 141 bool collectMediaQueriesFromStyleSheet(CSSStyleSheet*, TypeBuilder::Array<Ty peBuilder::CSS::CSSMedia>* mediaArray); | 142 bool collectMediaQueriesFromStyleSheet(CSSStyleSheet*, TypeBuilder::Array<Ty peBuilder::CSS::CSSMedia>* mediaArray); |
| 142 PassRefPtr<TypeBuilder::CSS::CSSMedia> buildMediaObject(const MediaList*, Me diaListSource, const String&, CSSStyleSheet*); | 143 PassRefPtr<TypeBuilder::CSS::CSSMedia> buildMediaObject(const MediaList*, Me diaListSource, const String&, CSSStyleSheet*); |
| 143 PassRefPtr<TypeBuilder::Array<TypeBuilder::CSS::CSSMedia> > buildMediaListCh ain(CSSRule*); | 144 PassRefPtr<TypeBuilder::Array<TypeBuilder::CSS::CSSMedia> > buildMediaListCh ain(CSSRule*); |
| 145 void updateCSSProperty(Node*, CSSPropertyID, float); | |
|
dgozman
2015/06/25 10:10:38
Let's move this from protocol methods.
sergeyv
2015/06/25 12:19:16
Done.
| |
| 144 | 146 |
| 145 private: | 147 private: |
| 146 class StyleSheetAction; | 148 class StyleSheetAction; |
| 147 class SetStyleSheetTextAction; | 149 class SetStyleSheetTextAction; |
| 148 class ModifyRuleAction; | 150 class ModifyRuleAction; |
| 149 class SetElementStyleAction; | 151 class SetElementStyleAction; |
| 150 class AddRuleAction; | 152 class AddRuleAction; |
| 151 class InspectorResourceContentLoaderCallback; | 153 class InspectorResourceContentLoaderCallback; |
| 152 | 154 |
| 153 static void collectStyleSheets(CSSStyleSheet*, WillBeHeapVector<RawPtrWillBe Member<CSSStyleSheet> >&); | 155 static void collectStyleSheets(CSSStyleSheet*, WillBeHeapVector<RawPtrWillBe Member<CSSStyleSheet> >&); |
| (...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 216 bool m_isSettingStyleSheetText; | 218 bool m_isSettingStyleSheetText; |
| 217 | 219 |
| 218 friend class InspectorResourceContentLoaderCallback; | 220 friend class InspectorResourceContentLoaderCallback; |
| 219 friend class StyleSheetBinder; | 221 friend class StyleSheetBinder; |
| 220 }; | 222 }; |
| 221 | 223 |
| 222 | 224 |
| 223 } // namespace blink | 225 } // namespace blink |
| 224 | 226 |
| 225 #endif // !defined(InspectorCSSAgent_h) | 227 #endif // !defined(InspectorCSSAgent_h) |
| OLD | NEW |