Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(19)

Side by Side Diff: sky/engine/core/css/parser/CSSParserObserver.h

Issue 1229273004: Remove Animations and Transitions. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 5 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 19 matching lines...) Expand all
30 // FIXME: Although the parser produces these, they're all ignored! 30 // FIXME: Although the parser produces these, they're all ignored!
31 enum CSSParserError { 31 enum CSSParserError {
32 NoCSSError, 32 NoCSSError,
33 PropertyDeclarationCSSError, 33 PropertyDeclarationCSSError,
34 InvalidPropertyValueCSSError, 34 InvalidPropertyValueCSSError,
35 InvalidPropertyCSSError, 35 InvalidPropertyCSSError,
36 InvalidSelectorCSSError, 36 InvalidSelectorCSSError,
37 InvalidSupportsConditionCSSError, 37 InvalidSupportsConditionCSSError,
38 InvalidRuleCSSError, 38 InvalidRuleCSSError,
39 InvalidMediaQueryCSSError, 39 InvalidMediaQueryCSSError,
40 InvalidKeyframeSelectorCSSError,
41 InvalidSelectorPseudoCSSError, 40 InvalidSelectorPseudoCSSError,
42 UnterminatedCommentCSSError, 41 UnterminatedCommentCSSError,
43 GeneralCSSError 42 GeneralCSSError
44 }; 43 };
45 44
46 // FIXME: What are these actually used for? There is probably 45 // FIXME: What are these actually used for? There is probably
47 // a better way for the parser to communicate this information 46 // a better way for the parser to communicate this information
48 // to the Inspector. 47 // to the Inspector.
49 48
50 // This only implemented by StyleSheetHandler in InspectorStyleSheet.cpp. 49 // This only implemented by StyleSheetHandler in InspectorStyleSheet.cpp.
51 class CSSParserObserver { 50 class CSSParserObserver {
52 STACK_ALLOCATED(); 51 STACK_ALLOCATED();
53 public: 52 public:
54 virtual void startRuleHeader(CSSRuleSourceData::Type, unsigned offset) = 0; 53 virtual void startRuleHeader(CSSRuleSourceData::Type, unsigned offset) = 0;
55 virtual void endRuleHeader(unsigned offset) = 0; 54 virtual void endRuleHeader(unsigned offset) = 0;
56 virtual void startSelector(unsigned offset) = 0; 55 virtual void startSelector(unsigned offset) = 0;
57 virtual void endSelector(unsigned offset) = 0; 56 virtual void endSelector(unsigned offset) = 0;
58 virtual void startRuleBody(unsigned offset) = 0; 57 virtual void startRuleBody(unsigned offset) = 0;
59 virtual void endRuleBody(unsigned offset, bool error) = 0; 58 virtual void endRuleBody(unsigned offset, bool error) = 0;
60 virtual void startEndUnknownRule() = 0; 59 virtual void startEndUnknownRule() = 0;
61 virtual void startProperty(unsigned offset) = 0; 60 virtual void startProperty(unsigned offset) = 0;
62 virtual void endProperty(bool isParsed, unsigned offset, CSSParserError) = 0 ; 61 virtual void endProperty(bool isParsed, unsigned offset, CSSParserError) = 0 ;
63 virtual void startComment(unsigned offset) = 0; 62 virtual void startComment(unsigned offset) = 0;
64 virtual void endComment(unsigned offset) = 0; 63 virtual void endComment(unsigned offset) = 0;
65 }; 64 };
66 65
67 } // namespace blink 66 } // namespace blink
68 67
69 #endif // SKY_ENGINE_CORE_CSS_PARSER_CSSPARSEROBSERVER_H_ 68 #endif // SKY_ENGINE_CORE_CSS_PARSER_CSSPARSEROBSERVER_H_
OLDNEW
« no previous file with comments | « sky/engine/core/css/parser/BisonCSSParserTest.cpp ('k') | sky/engine/core/css/parser/CSSPropertyParser.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698