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

Side by Side Diff: fpdfsdk/formfiller/cffl_radiobutton.cpp

Issue 2412523002: Cleanup env variable names (Closed)
Patch Set: Fix spelling Created 4 years, 2 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/formfiller/cffl_listbox.cpp ('k') | fpdfsdk/formfiller/cffl_textfield.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/formfiller/cffl_radiobutton.h" 7 #include "fpdfsdk/formfiller/cffl_radiobutton.h"
8 8
9 #include "fpdfsdk/cpdfsdk_formfillenvironment.h" 9 #include "fpdfsdk/cpdfsdk_formfillenvironment.h"
10 #include "fpdfsdk/cpdfsdk_widget.h" 10 #include "fpdfsdk/cpdfsdk_widget.h"
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 uint32_t nFlags) { 45 uint32_t nFlags) {
46 switch (nChar) { 46 switch (nChar) {
47 case FWL_VKEY_Return: 47 case FWL_VKEY_Return:
48 case FWL_VKEY_Space: { 48 case FWL_VKEY_Space: {
49 CPDFSDK_PageView* pPageView = pAnnot->GetPageView(); 49 CPDFSDK_PageView* pPageView = pAnnot->GetPageView();
50 ASSERT(pPageView); 50 ASSERT(pPageView);
51 51
52 FX_BOOL bReset = FALSE; 52 FX_BOOL bReset = FALSE;
53 FX_BOOL bExit = FALSE; 53 FX_BOOL bExit = FALSE;
54 CPDFSDK_Annot::ObservedPtr pObserved(m_pWidget); 54 CPDFSDK_Annot::ObservedPtr pObserved(m_pWidget);
55 m_pEnv->GetInteractiveFormFiller()->OnButtonUp(&pObserved, pPageView, 55 m_pFormFillEnv->GetInteractiveFormFiller()->OnButtonUp(
56 bReset, bExit, nFlags); 56 &pObserved, pPageView, bReset, bExit, nFlags);
57 if (!pObserved || bReset || bExit) 57 if (!pObserved || bReset || bExit)
58 return TRUE; 58 return TRUE;
59 59
60 CFFL_FormFiller::OnChar(pAnnot, nChar, nFlags); 60 CFFL_FormFiller::OnChar(pAnnot, nChar, nFlags);
61 if (CPWL_RadioButton* pWnd = 61 if (CPWL_RadioButton* pWnd =
62 (CPWL_RadioButton*)GetPDFWindow(pPageView, TRUE)) 62 (CPWL_RadioButton*)GetPDFWindow(pPageView, TRUE))
63 pWnd->SetCheck(TRUE); 63 pWnd->SetCheck(TRUE);
64 CommitData(pPageView, nFlags); 64 CommitData(pPageView, nFlags);
65 return TRUE; 65 return TRUE;
66 } 66 }
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
110 } 110 }
111 } 111 }
112 } 112 }
113 } 113 }
114 114
115 m_pWidget->SetCheck(bNewChecked, false); 115 m_pWidget->SetCheck(bNewChecked, false);
116 m_pWidget->UpdateField(); 116 m_pWidget->UpdateField();
117 SetChangeMark(); 117 SetChangeMark();
118 } 118 }
119 } 119 }
OLDNEW
« no previous file with comments | « fpdfsdk/formfiller/cffl_listbox.cpp ('k') | fpdfsdk/formfiller/cffl_textfield.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698