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

Side by Side Diff: xfa/fxfa/app/xfa_ffpageview.cpp

Issue 1862123003: Rename both As{Byte,Wide}StringC() helpers to AsStringC(). (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Rebase, fix new usage. 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_ffimageedit.cpp ('k') | xfa/fxfa/app/xfa_fftextedit.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/fxfa/include/xfa_ffpageview.h" 7 #include "xfa/fxfa/include/xfa_ffpageview.h"
8 8
9 #include "xfa/fde/fde_render.h" 9 #include "xfa/fde/fde_render.h"
10 #include "xfa/fxfa/app/xfa_ffcheckbutton.h" 10 #include "xfa/fxfa/app/xfa_ffcheckbutton.h"
(...skipping 252 matching lines...) Expand 10 before | Expand all | Expand 10 after
263 } 263 }
264 CXFA_FFWidget* CXFA_FFTabOrderPageWidgetIterator::GetTraverseWidget( 264 CXFA_FFWidget* CXFA_FFTabOrderPageWidgetIterator::GetTraverseWidget(
265 CXFA_FFWidget* pWidget) { 265 CXFA_FFWidget* pWidget) {
266 CXFA_WidgetAcc* pAcc = pWidget->GetDataAcc(); 266 CXFA_WidgetAcc* pAcc = pWidget->GetDataAcc();
267 CXFA_Node* pTraversal = pAcc->GetNode()->GetChild(0, XFA_ELEMENT_Traversal); 267 CXFA_Node* pTraversal = pAcc->GetNode()->GetChild(0, XFA_ELEMENT_Traversal);
268 if (pTraversal) { 268 if (pTraversal) {
269 CXFA_Node* pTraverse = pTraversal->GetChild(0, XFA_ELEMENT_Traverse); 269 CXFA_Node* pTraverse = pTraversal->GetChild(0, XFA_ELEMENT_Traverse);
270 if (pTraverse) { 270 if (pTraverse) {
271 CFX_WideString wsTraverseWidgetName; 271 CFX_WideString wsTraverseWidgetName;
272 if (pTraverse->GetAttribute(XFA_ATTRIBUTE_Ref, wsTraverseWidgetName)) { 272 if (pTraverse->GetAttribute(XFA_ATTRIBUTE_Ref, wsTraverseWidgetName)) {
273 return FindWidgetByName(wsTraverseWidgetName.AsWideStringC(), pWidget); 273 return FindWidgetByName(wsTraverseWidgetName.AsStringC(), pWidget);
274 } 274 }
275 } 275 }
276 } 276 }
277 return NULL; 277 return NULL;
278 } 278 }
279 CXFA_FFWidget* CXFA_FFTabOrderPageWidgetIterator::FindWidgetByName( 279 CXFA_FFWidget* CXFA_FFTabOrderPageWidgetIterator::FindWidgetByName(
280 const CFX_WideStringC& wsWidgetName, 280 const CFX_WideStringC& wsWidgetName,
281 CXFA_FFWidget* pRefWidget) { 281 CXFA_FFWidget* pRefWidget) {
282 return pRefWidget->GetDocView()->GetWidgetByName(wsWidgetName, pRefWidget); 282 return pRefWidget->GetDocView()->GetWidgetByName(wsWidgetName, pRefWidget);
283 } 283 }
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after
413 CXFA_LayoutItem* pLayoutItem) { 413 CXFA_LayoutItem* pLayoutItem) {
414 if (CXFA_FFWidget* pWidget = XFA_GetWidgetFromLayoutItem(pLayoutItem)) { 414 if (CXFA_FFWidget* pWidget = XFA_GetWidgetFromLayoutItem(pLayoutItem)) {
415 if (!pWidget->IsLoaded() && 415 if (!pWidget->IsLoaded() &&
416 (pWidget->GetStatus() & XFA_WIDGETSTATUS_Visible)) { 416 (pWidget->GetStatus() & XFA_WIDGETSTATUS_Visible)) {
417 pWidget->LoadWidget(); 417 pWidget->LoadWidget();
418 } 418 }
419 return pWidget; 419 return pWidget;
420 } 420 }
421 return NULL; 421 return NULL;
422 } 422 }
OLDNEW
« no previous file with comments | « xfa/fxfa/app/xfa_ffimageedit.cpp ('k') | xfa/fxfa/app/xfa_fftextedit.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698