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

Side by Side Diff: third_party/WebKit/Source/core/css/parser/CSSParserObserver.h

Issue 2466383004: blink: Cleanup class forward declarations (Closed)
Patch Set: Created 4 years, 1 month 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 3 * Copyright (C) 2004, 2005, 2006, 2008, 2009, 2010 Apple Inc. All rights
4 * reserved. 4 * reserved.
5 * Copyright (C) 2008 Eric Seidel <eric@webkit.org> 5 * Copyright (C) 2008 Eric Seidel <eric@webkit.org>
6 * Copyright (C) 2009 - 2010 Torch Mobile (Beijing) Co. Ltd. All rights 6 * Copyright (C) 2009 - 2010 Torch Mobile (Beijing) Co. Ltd. All rights
7 * reserved. 7 * reserved.
8 * 8 *
9 * This library is free software; you can redistribute it and/or 9 * This library is free software; you can redistribute it and/or
10 * modify it under the terms of the GNU Library General Public 10 * modify it under the terms of the GNU Library General Public
(...skipping 12 matching lines...) Expand all
23 */ 23 */
24 24
25 #ifndef CSSParserObserver_h 25 #ifndef CSSParserObserver_h
26 #define CSSParserObserver_h 26 #define CSSParserObserver_h
27 27
28 #include "core/css/CSSPropertySourceData.h" 28 #include "core/css/CSSPropertySourceData.h"
29 #include "wtf/Vector.h" 29 #include "wtf/Vector.h"
30 30
31 namespace blink { 31 namespace blink {
32 32
33 class CSSParserToken;
34
35 // This is only for the inspector and shouldn't be used elsewhere. 33 // This is only for the inspector and shouldn't be used elsewhere.
36 class CSSParserObserver { 34 class CSSParserObserver {
37 STACK_ALLOCATED(); 35 STACK_ALLOCATED();
38 36
39 public: 37 public:
40 virtual void startRuleHeader(StyleRule::RuleType, unsigned offset) = 0; 38 virtual void startRuleHeader(StyleRule::RuleType, unsigned offset) = 0;
41 virtual void endRuleHeader(unsigned offset) = 0; 39 virtual void endRuleHeader(unsigned offset) = 0;
42 virtual void observeSelector(unsigned startOffset, unsigned endOffset) = 0; 40 virtual void observeSelector(unsigned startOffset, unsigned endOffset) = 0;
43 virtual void startRuleBody(unsigned offset) = 0; 41 virtual void startRuleBody(unsigned offset) = 0;
44 virtual void endRuleBody(unsigned offset) = 0; 42 virtual void endRuleBody(unsigned offset) = 0;
45 virtual void observeProperty(unsigned startOffset, 43 virtual void observeProperty(unsigned startOffset,
46 unsigned endOffset, 44 unsigned endOffset,
47 bool isImportant, 45 bool isImportant,
48 bool isParsed) = 0; 46 bool isParsed) = 0;
49 virtual void observeComment(unsigned startOffset, unsigned endOffset) = 0; 47 virtual void observeComment(unsigned startOffset, unsigned endOffset) = 0;
50 }; 48 };
51 49
52 } // namespace blink 50 } // namespace blink
53 51
54 #endif // CSSParserObserver_h 52 #endif // CSSParserObserver_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698