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

Side by Side Diff: fpdfsdk/javascript/Field.cpp

Issue 2338303002: Remove FFI_ from CPDFSDK_Environment method names (Closed)
Patch Set: Review feedback Created 4 years, 3 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 | « fpdfsdk/javascript/Document.cpp ('k') | fpdfsdk/javascript/app.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 "fpdfsdk/javascript/Field.h" 7 #include "fpdfsdk/javascript/Field.h"
8 8
9 #include <algorithm> 9 #include <algorithm>
10 #include <memory> 10 #include <memory>
(...skipping 3186 matching lines...) Expand 10 before | Expand all | Expand 10 after
3197 if (nCount < 1) 3197 if (nCount < 1)
3198 return FALSE; 3198 return FALSE;
3199 3199
3200 CPDFSDK_InterForm* pInterForm = m_pDocument->GetInterForm(); 3200 CPDFSDK_InterForm* pInterForm = m_pDocument->GetInterForm();
3201 CPDFSDK_Widget* pWidget = nullptr; 3201 CPDFSDK_Widget* pWidget = nullptr;
3202 if (nCount == 1) { 3202 if (nCount == 1) {
3203 pWidget = pInterForm->GetWidget(pFormField->GetControl(0), false); 3203 pWidget = pInterForm->GetWidget(pFormField->GetControl(0), false);
3204 } else { 3204 } else {
3205 CPDFSDK_Environment* pEnv = m_pDocument->GetEnv(); 3205 CPDFSDK_Environment* pEnv = m_pDocument->GetEnv();
3206 UnderlyingPageType* pPage = UnderlyingFromFPDFPage( 3206 UnderlyingPageType* pPage = UnderlyingFromFPDFPage(
3207 pEnv->FFI_GetCurrentPage(m_pDocument->GetUnderlyingDocument())); 3207 pEnv->GetCurrentPage(m_pDocument->GetUnderlyingDocument()));
3208 if (!pPage) 3208 if (!pPage)
3209 return FALSE; 3209 return FALSE;
3210 if (CPDFSDK_PageView* pCurPageView = 3210 if (CPDFSDK_PageView* pCurPageView =
3211 m_pDocument->GetPageView(pPage, true)) { 3211 m_pDocument->GetPageView(pPage, true)) {
3212 for (int32_t i = 0; i < nCount; i++) { 3212 for (int32_t i = 0; i < nCount; i++) {
3213 if (CPDFSDK_Widget* pTempWidget = 3213 if (CPDFSDK_Widget* pTempWidget =
3214 pInterForm->GetWidget(pFormField->GetControl(i), false)) { 3214 pInterForm->GetWidget(pFormField->GetControl(i), false)) {
3215 if (pTempWidget->GetPDFPage() == pCurPageView->GetPDFPage()) { 3215 if (pTempWidget->GetPDFPage() == pCurPageView->GetPDFPage()) {
3216 pWidget = pTempWidget; 3216 pWidget = pTempWidget;
3217 break; 3217 break;
(...skipping 273 matching lines...) Expand 10 before | Expand all | Expand 10 after
3491 } 3491 }
3492 } 3492 }
3493 3493
3494 void Field::AddField(CPDFSDK_Document* pDocument, 3494 void Field::AddField(CPDFSDK_Document* pDocument,
3495 int nPageIndex, 3495 int nPageIndex,
3496 int nFieldType, 3496 int nFieldType,
3497 const CFX_WideString& sName, 3497 const CFX_WideString& sName,
3498 const CFX_FloatRect& rcCoords) { 3498 const CFX_FloatRect& rcCoords) {
3499 // Not supported. 3499 // Not supported.
3500 } 3500 }
OLDNEW
« no previous file with comments | « fpdfsdk/javascript/Document.cpp ('k') | fpdfsdk/javascript/app.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698