OLD | NEW |
---|---|
(Empty) | |
1 // Copyright 2017 The Chromium Authors. All rights reserved. | |
2 // Use of this source code is governed by a BSD-style license that can be | |
3 // found in the LICENSE file. | |
4 | |
5 #ifndef NGOffsetMappingBuilder_h | |
6 #define NGOffsetMappingBuilder_h | |
7 | |
8 #include "core/CoreExport.h" | |
9 #include "platform/wtf/Allocator.h" | |
10 | |
11 namespace blink { | |
12 | |
13 // TODO(xiaochengh): Documentation. | |
14 class CORE_EXPORT NGOffsetMappingBuilder { | |
15 STACK_ALLOCATED(); | |
16 | |
17 public: | |
18 NGOffsetMappingBuilder(); | |
19 virtual ~NGOffsetMappingBuilder(); | |
yosin_UTC9
2017/06/22 03:31:04
Why interface? Do you want to introduce DoNothingO
Xiaocheng
2017/06/22 03:36:10
I would like to have different types of offset map
yosin_UTC9
2017/06/22 03:44:22
Editing is case 3. What cases do use 1 and 2?
| |
20 | |
21 virtual void AppendBijection(unsigned length); | |
22 virtual void AppendCollapsed(unsigned length); | |
23 virtual void CollapseLastCharacter(); | |
24 | |
25 DISALLOW_COPY_AND_ASSIGN(NGOffsetMappingBuilder); | |
yosin_UTC9
2017/06/22 03:31:04
nit: |DISALLOW_...| should be in private section.
Xiaocheng
2017/06/22 03:36:10
Will do.
| |
26 }; | |
27 | |
28 } // namespace blink | |
29 | |
30 #endif // OffsetMappingBuilder_h | |
OLD | NEW |