OLD | NEW |
---|---|
1 /* | 1 /* |
2 * Copyright (C) 2009 Google Inc. All rights reserved. | 2 * Copyright (C) 2009 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 * * Redistributions of source code must retain the above copyright | 8 * * 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 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
(...skipping 28 matching lines...) Expand all Loading... | |
39 enum Level { | 39 enum Level { |
40 LevelDebug = 4, | 40 LevelDebug = 4, |
41 LevelLog = 1, | 41 LevelLog = 1, |
42 LevelInfo = 5, | 42 LevelInfo = 5, |
43 LevelWarning = 2, | 43 LevelWarning = 2, |
44 LevelError = 3, | 44 LevelError = 3, |
45 LevelRevokedError = 6, | 45 LevelRevokedError = 6, |
46 LevelLast = LevelInfo | 46 LevelLast = LevelInfo |
47 }; | 47 }; |
48 | 48 |
49 enum Source { | |
dcheng
2016/04/14 17:29:11
enum class Source.
carlosk
2016/04/15 09:42:43
Done.
| |
50 SourceXML, | |
51 SourceJS, | |
52 SourceNetwork, | |
53 SourceConsoleAPI, | |
54 SourceStorage, | |
55 SourceAppCache, | |
56 SourceRendering, | |
57 SourceSecurity, | |
58 SourceOther, | |
59 SourceDeprecation, | |
60 SourceLast = SourceDeprecation | |
61 }; | |
62 | |
49 Level level; | 63 Level level; |
50 WebString text; | 64 WebString text; |
51 WebString url; | 65 WebString url; |
66 Source source; | |
52 unsigned lineNumber; | 67 unsigned lineNumber; |
53 unsigned columnNumber; | 68 unsigned columnNumber; |
54 | 69 |
55 WebConsoleMessage() | 70 WebConsoleMessage() |
56 : level(LevelLog) | 71 : level(LevelLog) |
72 , source(SourceOther) | |
57 , lineNumber(0) | 73 , lineNumber(0) |
58 , columnNumber(0) | 74 , columnNumber(0) |
59 { | 75 { |
60 } | 76 } |
61 WebConsoleMessage(Level level, const WebString& text) | 77 WebConsoleMessage(Level level, const WebString& text) |
62 : level(level) | 78 : level(level) |
63 , text(text) | 79 , text(text) |
80 , source(SourceOther) | |
64 , lineNumber(0) | 81 , lineNumber(0) |
65 , columnNumber(0) | 82 , columnNumber(0) |
66 { | 83 { |
67 } | 84 } |
68 }; | 85 }; |
69 | 86 |
70 } // namespace blink | 87 } // namespace blink |
71 | 88 |
72 #endif | 89 #endif |
OLD | NEW |