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

Side by Side Diff: Source/core/xml/XMLErrors.h

Issue 333143003: Fix style errors in core/xml/. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 6 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | Source/core/xml/XMLErrors.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2011 Google Inc. All rights reserved. 2 * Copyright (C) 2011 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 are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * 10 *
(...skipping 26 matching lines...) Expand all
37 37
38 class Document; 38 class Document;
39 39
40 class XMLErrors { 40 class XMLErrors {
41 DISALLOW_ALLOCATION(); 41 DISALLOW_ALLOCATION();
42 public: 42 public:
43 explicit XMLErrors(Document*); 43 explicit XMLErrors(Document*);
44 void trace(Visitor*); 44 void trace(Visitor*);
45 45
46 // Exposed for callbacks: 46 // Exposed for callbacks:
47 enum ErrorType { warning, nonFatal, fatal }; 47 enum ErrorType { ErrorTypeWarning, ErrorTypeNonFatal, ErrorTypeFatal };
48 void handleError(ErrorType, const char* message, int lineNumber, int columnN umber); 48 void handleError(ErrorType, const char* message, int lineNumber, int columnN umber);
49 void handleError(ErrorType, const char* message, TextPosition); 49 void handleError(ErrorType, const char* message, TextPosition);
50 50
51 void insertErrorMessageBlock(); 51 void insertErrorMessageBlock();
52 52
53 private: 53 private:
54 void appendErrorMessage(const String& typeString, TextPosition, const char* message); 54 void appendErrorMessage(const String& typeString, TextPosition, const char* message);
55 55
56 RawPtrWillBeMember<Document> m_document; 56 RawPtrWillBeMember<Document> m_document;
57 57
58 int m_errorCount; 58 int m_errorCount;
59 TextPosition m_lastErrorPosition; 59 TextPosition m_lastErrorPosition;
60 StringBuilder m_errorMessages; 60 StringBuilder m_errorMessages;
61 }; 61 };
62 62
63 } // namespace WebCore 63 } // namespace WebCore
64 64
65 #endif // XMLErrors_h 65 #endif // XMLErrors_h
OLDNEW
« no previous file with comments | « no previous file | Source/core/xml/XMLErrors.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698