| 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 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 89 }; | 89 }; |
| 90 virtual ~InspectorStyleSheetBase() { } | 90 virtual ~InspectorStyleSheetBase() { } |
| 91 DEFINE_INLINE_VIRTUAL_TRACE() { } | 91 DEFINE_INLINE_VIRTUAL_TRACE() { } |
| 92 | 92 |
| 93 String id() { return m_id; } | 93 String id() { return m_id; } |
| 94 | 94 |
| 95 virtual bool setText(const String&, ExceptionState&) = 0; | 95 virtual bool setText(const String&, ExceptionState&) = 0; |
| 96 virtual bool getText(String* result) = 0; | 96 virtual bool getText(String* result) = 0; |
| 97 | 97 |
| 98 PassRefPtr<TypeBuilder::CSS::CSSStyle> buildObjectForStyle(CSSStyleDeclarati
on*); | 98 PassRefPtr<TypeBuilder::CSS::CSSStyle> buildObjectForStyle(CSSStyleDeclarati
on*); |
| 99 PassRefPtr<TypeBuilder::CSS::SourceRange> buildSourceRangeObject(const Sourc
eRange&); |
| 99 bool lineNumberAndColumnToOffset(unsigned lineNumber, unsigned columnNumber,
unsigned* offset); | 100 bool lineNumberAndColumnToOffset(unsigned lineNumber, unsigned columnNumber,
unsigned* offset); |
| 100 virtual bool isInlineStyle() = 0; | 101 virtual bool isInlineStyle() = 0; |
| 101 | 102 |
| 102 protected: | 103 protected: |
| 103 explicit InspectorStyleSheetBase(Listener*); | 104 explicit InspectorStyleSheetBase(Listener*); |
| 104 | 105 |
| 105 Listener* listener() { return m_listener; } | 106 Listener* listener() { return m_listener; } |
| 106 void onStyleSheetTextChanged(); | 107 void onStyleSheetTextChanged(); |
| 107 const LineEndings* lineEndings(); | 108 const LineEndings* lineEndings(); |
| 108 | 109 |
| (...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 209 InspectorStyleSheetForInlineStyle(PassRefPtrWillBeRawPtr<Element>, Listener*
); | 210 InspectorStyleSheetForInlineStyle(PassRefPtrWillBeRawPtr<Element>, Listener*
); |
| 210 const String& elementStyleText(); | 211 const String& elementStyleText(); |
| 211 | 212 |
| 212 RefPtrWillBeMember<Element> m_element; | 213 RefPtrWillBeMember<Element> m_element; |
| 213 RefPtrWillBeMember<InspectorStyle> m_inspectorStyle; | 214 RefPtrWillBeMember<InspectorStyle> m_inspectorStyle; |
| 214 }; | 215 }; |
| 215 | 216 |
| 216 } // namespace blink | 217 } // namespace blink |
| 217 | 218 |
| 218 #endif // !defined(InspectorStyleSheet_h) | 219 #endif // !defined(InspectorStyleSheet_h) |
| OLD | NEW |