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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
45 class CSSRule; | 45 class CSSRule; |
46 class CSSRuleList; | 46 class CSSRuleList; |
47 class CSSStyleRule; | 47 class CSSStyleRule; |
48 class CSSStyleSheet; | 48 class CSSStyleSheet; |
49 class Document; | 49 class Document; |
50 class Element; | 50 class Element; |
51 class InspectorFrontend; | 51 class InspectorFrontend; |
52 class InspectorResourceAgent; | 52 class InspectorResourceAgent; |
53 class MediaList; | 53 class MediaList; |
54 class Node; | 54 class Node; |
55 class RenderText; | 55 class LayoutText; |
56 | 56 |
57 class InspectorCSSAgent final | 57 class InspectorCSSAgent final |
58 : public InspectorBaseAgent<InspectorCSSAgent> | 58 : public InspectorBaseAgent<InspectorCSSAgent> |
59 , public InspectorDOMAgent::DOMListener | 59 , public InspectorDOMAgent::DOMListener |
60 , public InspectorBackendDispatcher::CSSCommandHandler | 60 , public InspectorBackendDispatcher::CSSCommandHandler |
61 , public InspectorStyleSheetBase::Listener { | 61 , public InspectorStyleSheetBase::Listener { |
62 WTF_MAKE_NONCOPYABLE(InspectorCSSAgent); | 62 WTF_MAKE_NONCOPYABLE(InspectorCSSAgent); |
63 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(InspectorCSSAgent); | 63 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(InspectorCSSAgent); |
64 public: | 64 public: |
65 enum MediaListSource { | 65 enum MediaListSource { |
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
160 typedef HashMap<int, unsigned> NodeIdToForcedPseudoState; | 160 typedef HashMap<int, unsigned> NodeIdToForcedPseudoState; |
161 | 161 |
162 void wasEnabled(); | 162 void wasEnabled(); |
163 void resetNonPersistentData(); | 163 void resetNonPersistentData(); |
164 InspectorStyleSheetForInlineStyle* asInspectorStyleSheet(Element* element); | 164 InspectorStyleSheetForInlineStyle* asInspectorStyleSheet(Element* element); |
165 Element* elementForId(ErrorString*, int nodeId); | 165 Element* elementForId(ErrorString*, int nodeId); |
166 | 166 |
167 void updateActiveStyleSheets(Document*, StyleSheetsUpdateType); | 167 void updateActiveStyleSheets(Document*, StyleSheetsUpdateType); |
168 void setActiveStyleSheets(Document*, const WillBeHeapVector<RawPtrWillBeMemb
er<CSSStyleSheet> >&, StyleSheetsUpdateType); | 168 void setActiveStyleSheets(Document*, const WillBeHeapVector<RawPtrWillBeMemb
er<CSSStyleSheet> >&, StyleSheetsUpdateType); |
169 | 169 |
170 void collectPlatformFontsForRenderer(RenderText*, HashCountedSet<String>*); | 170 void collectPlatformFontsForRenderer(LayoutText*, HashCountedSet<String>*); |
171 | 171 |
172 InspectorStyleSheet* bindStyleSheet(CSSStyleSheet*); | 172 InspectorStyleSheet* bindStyleSheet(CSSStyleSheet*); |
173 String unbindStyleSheet(InspectorStyleSheet*); | 173 String unbindStyleSheet(InspectorStyleSheet*); |
174 InspectorStyleSheet* viaInspectorStyleSheet(Document*, bool createIfAbsent); | 174 InspectorStyleSheet* viaInspectorStyleSheet(Document*, bool createIfAbsent); |
175 InspectorStyleSheet* assertInspectorStyleSheetForId(ErrorString*, const Stri
ng&); | 175 InspectorStyleSheet* assertInspectorStyleSheetForId(ErrorString*, const Stri
ng&); |
176 InspectorStyleSheetBase* assertStyleSheetForId(ErrorString*, const String&); | 176 InspectorStyleSheetBase* assertStyleSheetForId(ErrorString*, const String&); |
177 TypeBuilder::CSS::StyleSheetOrigin::Enum detectOrigin(CSSStyleSheet* pageSty
leSheet, Document* ownerDocument); | 177 TypeBuilder::CSS::StyleSheetOrigin::Enum detectOrigin(CSSStyleSheet* pageSty
leSheet, Document* ownerDocument); |
178 bool styleSheetEditInProgress() const { return m_styleSheetsPendingMutation
|| m_styleDeclarationPendingMutation || m_isSettingStyleSheetText; } | 178 bool styleSheetEditInProgress() const { return m_styleSheetsPendingMutation
|| m_styleDeclarationPendingMutation || m_isSettingStyleSheetText; } |
179 | 179 |
180 PassRefPtr<TypeBuilder::CSS::CSSRule> buildObjectForRule(CSSStyleRule*); | 180 PassRefPtr<TypeBuilder::CSS::CSSRule> buildObjectForRule(CSSStyleRule*); |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
218 bool m_isSettingStyleSheetText; | 218 bool m_isSettingStyleSheetText; |
219 | 219 |
220 friend class InspectorResourceContentLoaderCallback; | 220 friend class InspectorResourceContentLoaderCallback; |
221 friend class StyleSheetBinder; | 221 friend class StyleSheetBinder; |
222 }; | 222 }; |
223 | 223 |
224 | 224 |
225 } // namespace blink | 225 } // namespace blink |
226 | 226 |
227 #endif // !defined(InspectorCSSAgent_h) | 227 #endif // !defined(InspectorCSSAgent_h) |
OLD | NEW |