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

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

Issue 1977093002: Make CFX_ByteString(const CFX_ByteStringC&) explicit. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: First mac-only fix 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
« core/fpdfdoc/doc_basic.cpp ('K') | « fpdfsdk/pdfwindow/PWL_Utils.cpp ('k') | no next file » | 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 1478 matching lines...) Expand 10 before | Expand all | Expand 10 after
1489 if (m_iCurRecord == nCount - 1) { 1489 if (m_iCurRecord == nCount - 1) {
1490 if (nCount == m_iMaxRecord) { 1490 if (nCount == m_iMaxRecord) {
1491 m_RecordArr.RemoveAt(0); 1491 m_RecordArr.RemoveAt(0);
1492 m_iCurRecord--; 1492 m_iCurRecord--;
1493 } 1493 }
1494 } else { 1494 } else {
1495 for (int32_t i = nCount - 1; i > m_iCurRecord; i--) { 1495 for (int32_t i = nCount - 1; i > m_iCurRecord; i--) {
1496 m_RecordArr.RemoveAt(i); 1496 m_RecordArr.RemoveAt(i);
1497 } 1497 }
1498 } 1498 }
1499 m_RecordArr.Add(bsDoRecord); 1499 m_RecordArr.Add(CFX_ByteString(bsDoRecord));
1500 return m_iCurRecord = m_RecordArr.GetSize() - 1; 1500 return m_iCurRecord = m_RecordArr.GetSize() - 1;
1501 } 1501 }
1502 void CFWL_EditImp::Layout() { 1502 void CFWL_EditImp::Layout() {
1503 GetClientRect(m_rtClient); 1503 GetClientRect(m_rtClient);
1504 m_rtEngine = m_rtClient; 1504 m_rtEngine = m_rtClient;
1505 FX_FLOAT* pfWidth = static_cast<FX_FLOAT*>( 1505 FX_FLOAT* pfWidth = static_cast<FX_FLOAT*>(
1506 GetThemeCapacity(CFWL_WidgetCapacity::ScrollBarWidth)); 1506 GetThemeCapacity(CFWL_WidgetCapacity::ScrollBarWidth));
1507 if (!pfWidth) 1507 if (!pfWidth)
1508 return; 1508 return;
1509 FX_FLOAT fWidth = *pfWidth; 1509 FX_FLOAT fWidth = *pfWidth;
(...skipping 696 matching lines...) Expand 10 before | Expand all | Expand 10 after
2206 } 2206 }
2207 CFX_RectF rect; 2207 CFX_RectF rect;
2208 m_pOwner->GetWidgetRect(rect); 2208 m_pOwner->GetWidgetRect(rect);
2209 CFX_RectF rtInvalidate; 2209 CFX_RectF rtInvalidate;
2210 rtInvalidate.Set(0, 0, rect.width + 2, rect.height + 2); 2210 rtInvalidate.Set(0, 0, rect.width + 2, rect.height + 2);
2211 m_pOwner->Repaint(&rtInvalidate); 2211 m_pOwner->Repaint(&rtInvalidate);
2212 } 2212 }
2213 return TRUE; 2213 return TRUE;
2214 } 2214 }
2215 void CFWL_EditImpDelegate::DoCursor(CFWL_MsgMouse* pMsg) {} 2215 void CFWL_EditImpDelegate::DoCursor(CFWL_MsgMouse* pMsg) {}
OLDNEW
« core/fpdfdoc/doc_basic.cpp ('K') | « fpdfsdk/pdfwindow/PWL_Utils.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698