OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2003 Lars Knoll (knoll@kde.org) | 2 * Copyright (C) 2003 Lars Knoll (knoll@kde.org) |
3 * Copyright (C) 2004, 2005, 2006, 2008, 2009, 2010 Apple Inc. All rights reserv
ed. | 3 * Copyright (C) 2004, 2005, 2006, 2008, 2009, 2010 Apple Inc. All rights reserv
ed. |
4 * Copyright (C) 2008 Eric Seidel <eric@webkit.org> | 4 * Copyright (C) 2008 Eric Seidel <eric@webkit.org> |
5 * Copyright (C) 2009 - 2010 Torch Mobile (Beijing) Co. Ltd. All rights reserve
d. | 5 * Copyright (C) 2009 - 2010 Torch Mobile (Beijing) Co. Ltd. All rights reserve
d. |
6 * | 6 * |
7 * This library is free software; you can redistribute it and/or | 7 * This library is free software; you can redistribute it and/or |
8 * modify it under the terms of the GNU Library General Public | 8 * modify it under the terms of the GNU Library General Public |
9 * License as published by the Free Software Foundation; either | 9 * License as published by the Free Software Foundation; either |
10 * version 2 of the License, or (at your option) any later version. | 10 * version 2 of the License, or (at your option) any later version. |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
44 }; | 44 }; |
45 | 45 |
46 // FIXME: What are these actually used for? There is probably | 46 // FIXME: What are these actually used for? There is probably |
47 // a better way for the parser to communicate this information | 47 // a better way for the parser to communicate this information |
48 // to the Inspector. | 48 // to the Inspector. |
49 | 49 |
50 // This only implemented by StyleSheetHandler in InspectorStyleSheet.cpp. | 50 // This only implemented by StyleSheetHandler in InspectorStyleSheet.cpp. |
51 class CSSParserObserver { | 51 class CSSParserObserver { |
52 STACK_ALLOCATED(); | 52 STACK_ALLOCATED(); |
53 public: | 53 public: |
54 virtual void startRuleHeader(CSSRuleSourceData::Type, unsigned offset) = 0; | 54 virtual void startRuleHeader(StyleRule::Type, unsigned offset) = 0; |
55 virtual void endRuleHeader(unsigned offset) = 0; | 55 virtual void endRuleHeader(unsigned offset) = 0; |
56 virtual void startSelector(unsigned offset) = 0; | 56 virtual void startSelector(unsigned offset) = 0; |
57 virtual void endSelector(unsigned offset) = 0; | 57 virtual void endSelector(unsigned offset) = 0; |
58 virtual void startRuleBody(unsigned offset) = 0; | 58 virtual void startRuleBody(unsigned offset) = 0; |
59 virtual void endRuleBody(unsigned offset, bool error) = 0; | 59 virtual void endRuleBody(unsigned offset, bool error) = 0; |
60 virtual void startProperty(unsigned offset) = 0; | 60 virtual void startProperty(unsigned offset) = 0; |
61 virtual void endProperty(bool isImportant, bool isParsed, unsigned offset, C
SSParserError) = 0; | 61 virtual void endProperty(bool isImportant, bool isParsed, unsigned offset, C
SSParserError) = 0; |
62 virtual void startComment(unsigned offset) = 0; | 62 virtual void startComment(unsigned offset) = 0; |
63 virtual void endComment(unsigned offset) = 0; | 63 virtual void endComment(unsigned offset) = 0; |
64 virtual void startMediaQueryExp(unsigned offset) = 0; | 64 virtual void startMediaQueryExp(unsigned offset) = 0; |
65 virtual void endMediaQueryExp(unsigned offset) = 0; | 65 virtual void endMediaQueryExp(unsigned offset) = 0; |
66 virtual void startMediaQuery() = 0; | 66 virtual void startMediaQuery() = 0; |
67 virtual void endMediaQuery() = 0; | 67 virtual void endMediaQuery() = 0; |
68 }; | 68 }; |
69 | 69 |
70 } // namespace blink | 70 } // namespace blink |
71 | 71 |
72 #endif // CSSParserObserver_h | 72 #endif // CSSParserObserver_h |
OLD | NEW |