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

Side by Side Diff: xfa/fxfa/app/xfa_textlayout.h

Issue 1882043004: Remove implicit cast from CFX_WideString to (const wchar_t*) (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: win error #2 Created 4 years, 8 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
« no previous file with comments | « xfa/fxfa/app/xfa_fwltheme.cpp ('k') | xfa/fxfa/app/xfa_textlayout.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 // Copyright 2014 PDFium Authors. All rights reserved. 1 // Copyright 2014 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_XFA_TEXTLAYOUT_H_ 7 #ifndef XFA_FXFA_APP_XFA_TEXTLAYOUT_H_
8 #define XFA_FXFA_APP_XFA_TEXTLAYOUT_H_ 8 #define XFA_FXFA_APP_XFA_TEXTLAYOUT_H_
9 9
10 #include "xfa/fde/css/fde_css.h" 10 #include "xfa/fde/css/fde_css.h"
(...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after
170 ~CXFA_LinkUserData() {} 170 ~CXFA_LinkUserData() {}
171 virtual uint32_t Release() { 171 virtual uint32_t Release() {
172 uint32_t dwRefCount = --m_dwRefCount; 172 uint32_t dwRefCount = --m_dwRefCount;
173 if (dwRefCount <= 0) { 173 if (dwRefCount <= 0) {
174 FXTARGET_DeleteWith(CXFA_LinkUserData, m_pAllocator, this); 174 FXTARGET_DeleteWith(CXFA_LinkUserData, m_pAllocator, this);
175 } 175 }
176 return dwRefCount; 176 return dwRefCount;
177 } 177 }
178 virtual uint32_t AddRef() { return ++m_dwRefCount; } 178 virtual uint32_t AddRef() { return ++m_dwRefCount; }
179 179
180 public: 180 const FX_WCHAR* GetLinkURL() { return m_pszURLContent.c_str(); }
181 const FX_WCHAR* GetLinkURL() { return m_pszURLContent; }
182 181
183 protected: 182 protected:
184 IFX_MEMAllocator* m_pAllocator; 183 IFX_MEMAllocator* m_pAllocator;
185 uint32_t m_dwRefCount; 184 uint32_t m_dwRefCount;
186 CFX_WideString m_pszURLContent; 185 CFX_WideString m_pszURLContent;
187 }; 186 };
188 187
189 class CXFA_TextUserData : public IFX_Unknown, public CFX_Target { 188 class CXFA_TextUserData : public IFX_Unknown, public CFX_Target {
190 public: 189 public:
191 CXFA_TextUserData(IFX_MEMAllocator* pAllocator, IFDE_CSSComputedStyle* pStyle) 190 CXFA_TextUserData(IFX_MEMAllocator* pAllocator, IFDE_CSSComputedStyle* pStyle)
(...skipping 212 matching lines...) Expand 10 before | Expand all | Expand 10 after
404 CXFA_LoaderContext* m_pLoader; 403 CXFA_LoaderContext* m_pLoader;
405 int32_t m_iLines; 404 int32_t m_iLines;
406 FX_FLOAT m_fMaxWidth; 405 FX_FLOAT m_fMaxWidth;
407 CXFA_TextParser m_textParser; 406 CXFA_TextParser m_textParser;
408 CXFA_PieceLineArray m_pieceLines; 407 CXFA_PieceLineArray m_pieceLines;
409 CXFA_TextTabstopsContext* m_pTabstopContext; 408 CXFA_TextTabstopsContext* m_pTabstopContext;
410 FX_BOOL m_bBlockContinue; 409 FX_BOOL m_bBlockContinue;
411 }; 410 };
412 411
413 #endif // XFA_FXFA_APP_XFA_TEXTLAYOUT_H_ 412 #endif // XFA_FXFA_APP_XFA_TEXTLAYOUT_H_
OLDNEW
« no previous file with comments | « xfa/fxfa/app/xfa_fwltheme.cpp ('k') | xfa/fxfa/app/xfa_textlayout.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698