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 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
44 class CSSStyleRule; | 44 class CSSStyleRule; |
45 class CSSStyleSheet; | 45 class CSSStyleSheet; |
46 class Document; | 46 class Document; |
47 class Element; | 47 class Element; |
48 class ExceptionState; | 48 class ExceptionState; |
49 class InspectorCSSAgent; | 49 class InspectorCSSAgent; |
50 class InspectorResourceAgent; | 50 class InspectorResourceAgent; |
51 class InspectorStyleSheetBase; | 51 class InspectorStyleSheetBase; |
52 | 52 |
53 typedef WillBeHeapVector<RefPtrWillBeMember<CSSRule>> CSSRuleVector; | 53 typedef WillBeHeapVector<RefPtrWillBeMember<CSSRule>> CSSRuleVector; |
54 typedef String ErrorString; | |
55 typedef Vector<unsigned> LineEndings; | 54 typedef Vector<unsigned> LineEndings; |
56 | 55 |
57 class InspectorStyle final : public RefCountedWillBeGarbageCollectedFinalized<In
spectorStyle> { | 56 class InspectorStyle final : public RefCountedWillBeGarbageCollectedFinalized<In
spectorStyle> { |
58 public: | 57 public: |
59 static PassRefPtrWillBeRawPtr<InspectorStyle> create(PassRefPtrWillBeRawPtr<
CSSStyleDeclaration>, PassRefPtrWillBeRawPtr<CSSRuleSourceData>, InspectorStyleS
heetBase* parentStyleSheet); | 58 static PassRefPtrWillBeRawPtr<InspectorStyle> create(PassRefPtrWillBeRawPtr<
CSSStyleDeclaration>, PassRefPtrWillBeRawPtr<CSSRuleSourceData>, InspectorStyleS
heetBase* parentStyleSheet); |
60 | 59 |
61 CSSStyleDeclaration* cssStyle() { return m_style.get(); } | 60 CSSStyleDeclaration* cssStyle() { return m_style.get(); } |
62 PassOwnPtr<protocol::CSS::CSSStyle> buildObjectForStyle(); | 61 PassOwnPtr<protocol::CSS::CSSStyle> buildObjectForStyle(); |
63 PassOwnPtr<protocol::Array<protocol::CSS::CSSComputedStyleProperty>> buildAr
rayForComputedStyle(); | 62 PassOwnPtr<protocol::Array<protocol::CSS::CSSComputedStyleProperty>> buildAr
rayForComputedStyle(); |
64 bool styleText(String* result); | 63 bool styleText(String* result); |
(...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
214 InspectorStyleSheetForInlineStyle(PassRefPtrWillBeRawPtr<Element>, Listener*
); | 213 InspectorStyleSheetForInlineStyle(PassRefPtrWillBeRawPtr<Element>, Listener*
); |
215 const String& elementStyleText(); | 214 const String& elementStyleText(); |
216 | 215 |
217 RefPtrWillBeMember<Element> m_element; | 216 RefPtrWillBeMember<Element> m_element; |
218 RefPtrWillBeMember<InspectorStyle> m_inspectorStyle; | 217 RefPtrWillBeMember<InspectorStyle> m_inspectorStyle; |
219 }; | 218 }; |
220 | 219 |
221 } // namespace blink | 220 } // namespace blink |
222 | 221 |
223 #endif // !defined(InspectorStyleSheet_h) | 222 #endif // !defined(InspectorStyleSheet_h) |
OLD | NEW |