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

Side by Side Diff: fpdfsdk/src/formfiller/FFL_FormFiller.cpp

Issue 1554453002: Merge to XFA: Take care fall-through cases of switch in pdfium (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@xfa
Patch Set: Created 4 years, 12 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 | « no previous file | fpdfsdk/src/javascript/JS_GlobalData.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/include/formfiller/FFL_CBA_Fontmap.h" 7 #include "fpdfsdk/include/formfiller/FFL_CBA_Fontmap.h"
8 #include "fpdfsdk/include/formfiller/FFL_FormFiller.h" 8 #include "fpdfsdk/include/formfiller/FFL_FormFiller.h"
9 9
10 #define GetRed(rgb) ((uint8_t)(rgb)) 10 #define GetRed(rgb) ((uint8_t)(rgb))
(...skipping 255 matching lines...) Expand 10 before | Expand all | Expand 10 after
266 266
267 if (CPWL_Wnd* pWnd = GetPDFWindow(pPageView, FALSE)) 267 if (CPWL_Wnd* pWnd = GetPDFWindow(pPageView, FALSE))
268 pWnd->KillFocus(); 268 pWnd->KillFocus();
269 269
270 FX_BOOL bDestroyPDFWindow; 270 FX_BOOL bDestroyPDFWindow;
271 switch (m_pWidget->GetFieldType()) { 271 switch (m_pWidget->GetFieldType()) {
272 case FIELDTYPE_PUSHBUTTON: 272 case FIELDTYPE_PUSHBUTTON:
273 case FIELDTYPE_CHECKBOX: 273 case FIELDTYPE_CHECKBOX:
274 case FIELDTYPE_RADIOBUTTON: 274 case FIELDTYPE_RADIOBUTTON:
275 bDestroyPDFWindow = TRUE; 275 bDestroyPDFWindow = TRUE;
276 break;
276 default: 277 default:
277 bDestroyPDFWindow = FALSE; 278 bDestroyPDFWindow = FALSE;
279 break;
278 } 280 }
279 EscapeFiller(pPageView, bDestroyPDFWindow); 281 EscapeFiller(pPageView, bDestroyPDFWindow);
280 } 282 }
281 283
282 FX_BOOL CFFL_FormFiller::IsValid() const { 284 FX_BOOL CFFL_FormFiller::IsValid() const {
283 return m_bValid; 285 return m_bValid;
284 } 286 }
285 287
286 PWL_CREATEPARAM CFFL_FormFiller::GetCreateParam() { 288 PWL_CREATEPARAM CFFL_FormFiller::GetCreateParam() {
287 ASSERT(m_pApp); 289 ASSERT(m_pApp);
(...skipping 427 matching lines...) Expand 10 before | Expand all | Expand 10 after
715 pWidget->DrawAppearance(pDevice, pUser2Device, CPDF_Annot::Normal, NULL); 717 pWidget->DrawAppearance(pDevice, pUser2Device, CPDF_Annot::Normal, NULL);
716 } 718 }
717 719
718 void CFFL_Button::OnDrawDeactive(CPDFSDK_PageView* pPageView, 720 void CFFL_Button::OnDrawDeactive(CPDFSDK_PageView* pPageView,
719 CPDFSDK_Annot* pAnnot, 721 CPDFSDK_Annot* pAnnot,
720 CFX_RenderDevice* pDevice, 722 CFX_RenderDevice* pDevice,
721 CFX_Matrix* pUser2Device, 723 CFX_Matrix* pUser2Device,
722 FX_DWORD dwFlags) { 724 FX_DWORD dwFlags) {
723 OnDraw(pPageView, pAnnot, pDevice, pUser2Device, dwFlags); 725 OnDraw(pPageView, pAnnot, pDevice, pUser2Device, dwFlags);
724 } 726 }
OLDNEW
« no previous file with comments | « no previous file | fpdfsdk/src/javascript/JS_GlobalData.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698