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 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
77 Member<InspectorStyleSheetBase> m_parentStyleSheet; | 77 Member<InspectorStyleSheetBase> m_parentStyleSheet; |
78 }; | 78 }; |
79 | 79 |
80 class InspectorStyleSheetBase : public GarbageCollectedFinalized<InspectorStyleS
heetBase> { | 80 class InspectorStyleSheetBase : public GarbageCollectedFinalized<InspectorStyleS
heetBase> { |
81 public: | 81 public: |
82 class CORE_EXPORT Listener { | 82 class CORE_EXPORT Listener { |
83 public: | 83 public: |
84 Listener() { } | 84 Listener() { } |
85 virtual ~Listener() { } | 85 virtual ~Listener() { } |
86 virtual void styleSheetChanged(InspectorStyleSheetBase*) = 0; | 86 virtual void styleSheetChanged(InspectorStyleSheetBase*) = 0; |
87 virtual void willReparseStyleSheet() = 0; | |
88 virtual void didReparseStyleSheet() = 0; | |
89 }; | 87 }; |
90 virtual ~InspectorStyleSheetBase() { } | 88 virtual ~InspectorStyleSheetBase() { } |
91 DEFINE_INLINE_VIRTUAL_TRACE() { } | 89 DEFINE_INLINE_VIRTUAL_TRACE() { } |
92 | 90 |
93 String id() { return m_id; } | 91 String id() { return m_id; } |
94 | 92 |
95 virtual bool setText(const String&, ExceptionState&) = 0; | 93 virtual bool setText(const String&, ExceptionState&) = 0; |
96 virtual bool getText(String* result) = 0; | 94 virtual bool getText(String* result) = 0; |
97 virtual String sourceMapURL() { return String(); } | 95 virtual String sourceMapURL() { return String(); } |
98 | 96 |
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
214 InspectorStyleSheetForInlineStyle(Element*, Listener*); | 212 InspectorStyleSheetForInlineStyle(Element*, Listener*); |
215 const String& elementStyleText(); | 213 const String& elementStyleText(); |
216 | 214 |
217 Member<Element> m_element; | 215 Member<Element> m_element; |
218 Member<InspectorStyle> m_inspectorStyle; | 216 Member<InspectorStyle> m_inspectorStyle; |
219 }; | 217 }; |
220 | 218 |
221 } // namespace blink | 219 } // namespace blink |
222 | 220 |
223 #endif // !defined(InspectorStyleSheet_h) | 221 #endif // !defined(InspectorStyleSheet_h) |
OLD | NEW |