OLD | NEW |
1 // Copyright 2017 PDFium Authors. All rights reserved. | 1 // Copyright 2017 PDFium 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 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com | 5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com |
6 | 6 |
7 #ifndef XFA_FXFA_APP_CXFA_PIECELINE_H_ | 7 #ifndef XFA_FXFA_APP_CXFA_PIECELINE_H_ |
8 #define XFA_FXFA_APP_CXFA_PIECELINE_H_ | 8 #define XFA_FXFA_APP_CXFA_PIECELINE_H_ |
9 | 9 |
| 10 #include <memory> |
| 11 #include <vector> |
| 12 |
10 #include "core/fxcrt/fx_basic.h" | 13 #include "core/fxcrt/fx_basic.h" |
11 | 14 |
12 class XFA_TextPiece; | 15 class XFA_TextPiece; |
13 | 16 |
14 class CXFA_PieceLine { | 17 class CXFA_PieceLine { |
15 public: | 18 public: |
16 CXFA_PieceLine(); | 19 CXFA_PieceLine(); |
17 ~CXFA_PieceLine(); | 20 ~CXFA_PieceLine(); |
18 | 21 |
19 CFX_ArrayTemplate<XFA_TextPiece*> m_textPieces; | 22 std::vector<std::unique_ptr<XFA_TextPiece>> m_textPieces; |
20 CFX_ArrayTemplate<int32_t> m_charCounts; | 23 CFX_ArrayTemplate<int32_t> m_charCounts; |
21 }; | 24 }; |
22 | 25 |
23 #endif // XFA_FXFA_APP_CXFA_PIECELINE_H_ | 26 #endif // XFA_FXFA_APP_CXFA_PIECELINE_H_ |
OLD | NEW |