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

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

Issue 2391313002: Rename CPDFSDK_Environment to CPDFSDK_FormfillEnvironment (Closed)
Patch Set: Rebase to master 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
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_checkbox.h" 7 #include "fpdfsdk/formfiller/cffl_checkbox.h"
8 8
9 #include "fpdfsdk/cpdfsdk_environment.h" 9 #include "fpdfsdk/cpdfsdk_formfillenvironment.h"
10 #include "fpdfsdk/cpdfsdk_widget.h" 10 #include "fpdfsdk/cpdfsdk_widget.h"
11 #include "fpdfsdk/formfiller/cffl_formfiller.h" 11 #include "fpdfsdk/formfiller/cffl_formfiller.h"
12 #include "fpdfsdk/pdfwindow/PWL_SpecialButton.h" 12 #include "fpdfsdk/pdfwindow/PWL_SpecialButton.h"
13 #include "public/fpdf_fwlevent.h" 13 #include "public/fpdf_fwlevent.h"
14 14
15 CFFL_CheckBox::CFFL_CheckBox(CPDFSDK_Environment* pApp, CPDFSDK_Widget* pWidget) 15 CFFL_CheckBox::CFFL_CheckBox(CPDFSDK_FormFillEnvironment* pApp,
16 CPDFSDK_Widget* pWidget)
16 : CFFL_Button(pApp, pWidget) {} 17 : CFFL_Button(pApp, pWidget) {}
17 18
18 CFFL_CheckBox::~CFFL_CheckBox() {} 19 CFFL_CheckBox::~CFFL_CheckBox() {}
19 20
20 CPWL_Wnd* CFFL_CheckBox::NewPDFWindow(const PWL_CREATEPARAM& cp, 21 CPWL_Wnd* CFFL_CheckBox::NewPDFWindow(const PWL_CREATEPARAM& cp,
21 CPDFSDK_PageView* pPageView) { 22 CPDFSDK_PageView* pPageView) {
22 CPWL_CheckBox* pWnd = new CPWL_CheckBox(); 23 CPWL_CheckBox* pWnd = new CPWL_CheckBox();
23 pWnd->Create(cp); 24 pWnd->Create(cp);
24 pWnd->SetCheck(m_pWidget->IsChecked()); 25 pWnd->SetCheck(m_pWidget->IsChecked());
25 return pWnd; 26 return pWnd;
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
106 } 107 }
107 } 108 }
108 } 109 }
109 } 110 }
110 111
111 m_pWidget->SetCheck(bNewChecked, false); 112 m_pWidget->SetCheck(bNewChecked, false);
112 m_pWidget->UpdateField(); 113 m_pWidget->UpdateField();
113 SetChangeMark(); 114 SetChangeMark();
114 } 115 }
115 } 116 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698