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

Side by Side Diff: xfa/fwl/basewidget/fwl_editimp.cpp

Issue 1979723003: Make CFX_WideString(const CFX_WideString&) explicit. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Override Created 4 years, 7 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/fgas/localization/fgas_localemgr.cpp ('k') | xfa/fxbarcode/cbc_codabar.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 #include "xfa/fwl/basewidget/fwl_editimp.h" 7 #include "xfa/fwl/basewidget/fwl_editimp.h"
8 8
9 #include <algorithm> 9 #include <algorithm>
10 #include <memory> 10 #include <memory>
(...skipping 649 matching lines...) Expand 10 before | Expand all | Expand 10 after
660 m_pEdtEngine->DeleteRange(nStart, nCount); 660 m_pEdtEngine->DeleteRange(nStart, nCount);
661 return FWL_Error::Succeeded; 661 return FWL_Error::Succeeded;
662 } 662 }
663 663
664 FWL_Error CFWL_EditImp::Replace(int32_t nStart, 664 FWL_Error CFWL_EditImp::Replace(int32_t nStart,
665 int32_t nLen, 665 int32_t nLen,
666 const CFX_WideStringC& wsReplace) { 666 const CFX_WideStringC& wsReplace) {
667 if (!m_pEdtEngine) 667 if (!m_pEdtEngine)
668 return FWL_Error::Indefinite; 668 return FWL_Error::Indefinite;
669 669
670 m_pEdtEngine->Replace(nStart, nLen, wsReplace); 670 m_pEdtEngine->Replace(nStart, nLen, CFX_WideString(wsReplace));
671 return FWL_Error::Succeeded; 671 return FWL_Error::Succeeded;
672 } 672 }
673 673
674 FWL_Error CFWL_EditImp::DoClipboard(int32_t iCmd) { 674 FWL_Error CFWL_EditImp::DoClipboard(int32_t iCmd) {
675 if (!m_pEdtEngine) 675 if (!m_pEdtEngine)
676 return FWL_Error::Indefinite; 676 return FWL_Error::Indefinite;
677 677
678 if ((m_pProperties->m_dwStyleExes & FWL_STYLEEXT_EDT_ReadOnly) || 678 if ((m_pProperties->m_dwStyleExes & FWL_STYLEEXT_EDT_ReadOnly) ||
679 (m_pProperties->m_dwStates & FWL_WGTSTATE_Disabled)) { 679 (m_pProperties->m_dwStates & FWL_WGTSTATE_Disabled)) {
680 return FWL_Error::Succeeded; 680 return FWL_Error::Succeeded;
(...skipping 1509 matching lines...) Expand 10 before | Expand all | Expand 10 after
2190 } 2190 }
2191 CFX_RectF rect; 2191 CFX_RectF rect;
2192 m_pOwner->GetWidgetRect(rect); 2192 m_pOwner->GetWidgetRect(rect);
2193 CFX_RectF rtInvalidate; 2193 CFX_RectF rtInvalidate;
2194 rtInvalidate.Set(0, 0, rect.width + 2, rect.height + 2); 2194 rtInvalidate.Set(0, 0, rect.width + 2, rect.height + 2);
2195 m_pOwner->Repaint(&rtInvalidate); 2195 m_pOwner->Repaint(&rtInvalidate);
2196 } 2196 }
2197 return TRUE; 2197 return TRUE;
2198 } 2198 }
2199 void CFWL_EditImpDelegate::DoCursor(CFWL_MsgMouse* pMsg) {} 2199 void CFWL_EditImpDelegate::DoCursor(CFWL_MsgMouse* pMsg) {}
OLDNEW
« no previous file with comments | « xfa/fgas/localization/fgas_localemgr.cpp ('k') | xfa/fxbarcode/cbc_codabar.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698