OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef EXTENSIONS_BROWSER_FILE_HIGHLIGHTER_H_ | 5 #ifndef EXTENSIONS_BROWSER_FILE_HIGHLIGHTER_H_ |
6 #define EXTENSIONS_BROWSER_FILE_HIGHLIGHTER_H_ | 6 #define EXTENSIONS_BROWSER_FILE_HIGHLIGHTER_H_ |
7 | 7 |
| 8 #include <stddef.h> |
| 9 |
8 #include <string> | 10 #include <string> |
9 | 11 |
10 #include "base/basictypes.h" | 12 #include "base/macros.h" |
11 | 13 |
12 namespace base { | 14 namespace base { |
13 class DictionaryValue; | 15 class DictionaryValue; |
14 } | 16 } |
15 | 17 |
16 namespace extensions { | 18 namespace extensions { |
17 | 19 |
18 // The FileHighlighter class is used in order to isolate and highlight a portion | 20 // The FileHighlighter class is used in order to isolate and highlight a portion |
19 // of a given file (in string form). The Highlighter will split the source into | 21 // of a given file (in string form). The Highlighter will split the source into |
20 // three portions: the portion before the highlighted feature, the highlighted | 22 // three portions: the portion before the highlighted feature, the highlighted |
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
103 // Called from the constructor; determine the bounds of the line in the source | 105 // Called from the constructor; determine the bounds of the line in the source |
104 // file. | 106 // file. |
105 void Parse(size_t line_number); | 107 void Parse(size_t line_number); |
106 | 108 |
107 DISALLOW_COPY_AND_ASSIGN(SourceHighlighter); | 109 DISALLOW_COPY_AND_ASSIGN(SourceHighlighter); |
108 }; | 110 }; |
109 | 111 |
110 } // namespace extensions | 112 } // namespace extensions |
111 | 113 |
112 #endif // EXTENSIONS_BROWSER_FILE_HIGHLIGHTER_H_ | 114 #endif // EXTENSIONS_BROWSER_FILE_HIGHLIGHTER_H_ |
OLD | NEW |