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

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

Issue 1283493004: Cleanup: Mark methods with the override keyword. (Closed) Base URL: https://pdfium.googlesource.com/pdfium@master
Patch Set: Created 5 years, 4 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 "../../include/formfiller/FFL_TextField.h" 7 #include "../../include/formfiller/FFL_TextField.h"
8 #include "../../include/formfiller/FFL_CBA_Fontmap.h" 8 #include "../../include/formfiller/FFL_CBA_Fontmap.h"
9 9
10 /* ------------------------------- CFFL_TextField 10 /* ------------------------------- CFFL_TextField
(...skipping 269 matching lines...) Expand 10 before | Expand all | Expand 10 after
280 280
281 pEdit->SetReadyToInput(); 281 pEdit->SetReadyToInput();
282 CFX_WideString wsText = pEdit->GetText(); 282 CFX_WideString wsText = pEdit->GetText();
283 int nCharacters = wsText.GetLength(); 283 int nCharacters = wsText.GetLength();
284 CFX_ByteString bsUTFText = wsText.UTF16LE_Encode(); 284 CFX_ByteString bsUTFText = wsText.UTF16LE_Encode();
285 unsigned short* pBuffer = (unsigned short*)bsUTFText.c_str(); 285 unsigned short* pBuffer = (unsigned short*)bsUTFText.c_str();
286 m_pApp->FFI_OnSetFieldInputFocus(m_pWidget->GetFormField(), pBuffer, 286 m_pApp->FFI_OnSetFieldInputFocus(m_pWidget->GetFormField(), pBuffer,
287 nCharacters, TRUE); 287 nCharacters, TRUE);
288 288
289 pEdit->SetEditNotify(this); 289 pEdit->SetEditNotify(this);
290 // pUndo->BeginEdit(pDocument);
291 } 290 }
292 } 291 }
293 292
294 void CFFL_TextField::OnKillFocus(CPWL_Wnd* pWnd) {} 293 void CFFL_TextField::OnKillFocus(CPWL_Wnd* pWnd) {}
295 294
296 FX_BOOL CFFL_TextField::CanCopy(CPDFSDK_Document* pDocument) {
297 return FALSE;
298 }
299
300 FX_BOOL CFFL_TextField::CanCut(CPDFSDK_Document* pDocument) {
301 return FALSE;
302 }
303
304 FX_BOOL CFFL_TextField::CanPaste(CPDFSDK_Document* pDocument) {
305 return FALSE;
306 }
307
308 void CFFL_TextField::OnAddUndo(CPWL_Edit* pEdit) {} 295 void CFFL_TextField::OnAddUndo(CPWL_Edit* pEdit) {}
OLDNEW
« fpdfsdk/include/formfiller/FFL_FormFiller.h ('K') | « fpdfsdk/src/formfiller/FFL_IFormFiller.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698