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 17 matching lines...) Expand all Loading... |
28 | 28 |
29 namespace blink { | 29 namespace blink { |
30 | 30 |
31 class CSSParserToken; | 31 class CSSParserToken; |
32 class CSSParserTokenRange; | 32 class CSSParserTokenRange; |
33 | 33 |
34 // This is only for the inspector and shouldn't be used elsewhere. | 34 // This is only for the inspector and shouldn't be used elsewhere. |
35 class CSSParserObserver { | 35 class CSSParserObserver { |
36 STACK_ALLOCATED(); | 36 STACK_ALLOCATED(); |
37 public: | 37 public: |
38 virtual void startRuleHeader(StyleRule::Type, unsigned offset) = 0; | 38 virtual void startRuleHeader(StyleRule::RuleType, unsigned offset) = 0; |
39 virtual void endRuleHeader(unsigned offset) = 0; | 39 virtual void endRuleHeader(unsigned offset) = 0; |
40 virtual void observeSelector(unsigned startOffset, unsigned endOffset) = 0; | 40 virtual void observeSelector(unsigned startOffset, unsigned endOffset) = 0; |
41 virtual void startRuleBody(unsigned offset) = 0; | 41 virtual void startRuleBody(unsigned offset) = 0; |
42 virtual void endRuleBody(unsigned offset) = 0; | 42 virtual void endRuleBody(unsigned offset) = 0; |
43 virtual void observeProperty(unsigned startOffset, unsigned endOffset, bool
isImportant, bool isParsed) = 0; | 43 virtual void observeProperty(unsigned startOffset, unsigned endOffset, bool
isImportant, bool isParsed) = 0; |
44 virtual void observeComment(unsigned startOffset, unsigned endOffset) = 0; | 44 virtual void observeComment(unsigned startOffset, unsigned endOffset) = 0; |
45 // TODO(timloh): Unused, should be removed | 45 // TODO(timloh): Unused, should be removed |
46 virtual void startMediaQueryExp(unsigned offset) = 0; | 46 virtual void startMediaQueryExp(unsigned offset) = 0; |
47 virtual void endMediaQueryExp(unsigned offset) = 0; | 47 virtual void endMediaQueryExp(unsigned offset) = 0; |
48 virtual void startMediaQuery() = 0; | 48 virtual void startMediaQuery() = 0; |
49 virtual void endMediaQuery() = 0; | 49 virtual void endMediaQuery() = 0; |
50 }; | 50 }; |
51 | 51 |
52 } // namespace blink | 52 } // namespace blink |
53 | 53 |
54 #endif // CSSParserObserver_h | 54 #endif // CSSParserObserver_h |
OLD | NEW |