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

Side by Side Diff: fpdfsdk/include/fxedit/fx_edit.h

Issue 1288393004: Merge to XFA: Use override in more classes in fpdfsdk/ (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@xfa
Patch Set: self review 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
« no previous file with comments | « fpdfsdk/include/fsdk_rendercontext.h ('k') | fpdfsdk/include/fxedit/fxet_edit.h » ('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 #ifndef FPDFSDK_INCLUDE_FXEDIT_FX_EDIT_H_ 7 #ifndef FPDFSDK_INCLUDE_FXEDIT_FX_EDIT_H_
8 #define FPDFSDK_INCLUDE_FXEDIT_FX_EDIT_H_ 8 #define FPDFSDK_INCLUDE_FXEDIT_FX_EDIT_H_
9 9
10 #include "../../../core/include/fxcrt/fx_basic.h" 10 #include "../../../core/include/fxcrt/fx_basic.h"
(...skipping 459 matching lines...) Expand 10 before | Expand all | Expand 10 after
470 const CPDF_Point& ptOffset, 470 const CPDF_Point& ptOffset,
471 const CPVT_WordRange* pRange, 471 const CPVT_WordRange* pRange,
472 CFX_ArrayTemplate<CPDF_TextObject*>& ObjArray); 472 CFX_ArrayTemplate<CPDF_TextObject*>& ObjArray);
473 static void GenerateUnderlineObjects(CPDF_PageObjects* pPageObjects, 473 static void GenerateUnderlineObjects(CPDF_PageObjects* pPageObjects,
474 IFX_Edit* pEdit, 474 IFX_Edit* pEdit,
475 const CPDF_Point& ptOffset, 475 const CPDF_Point& ptOffset,
476 const CPVT_WordRange* pRange, 476 const CPVT_WordRange* pRange,
477 FX_COLORREF color); 477 FX_COLORREF color);
478 478
479 protected: 479 protected:
480 ~IFX_Edit() {} 480 virtual ~IFX_Edit() {}
481 }; 481 };
482 482
483 class IFX_List_Notify { 483 class IFX_List_Notify {
484 public: 484 public:
485 virtual ~IFX_List_Notify() {}
486 // set the horizontal scrollbar information. 485 // set the horizontal scrollbar information.
487 virtual void IOnSetScrollInfoX(FX_FLOAT fPlateMin, 486 virtual void IOnSetScrollInfoX(FX_FLOAT fPlateMin,
488 FX_FLOAT fPlateMax, 487 FX_FLOAT fPlateMax,
489 FX_FLOAT fContentMin, 488 FX_FLOAT fContentMin,
490 FX_FLOAT fContentMax, 489 FX_FLOAT fContentMax,
491 FX_FLOAT fSmallStep, 490 FX_FLOAT fSmallStep,
492 FX_FLOAT fBigStep) = 0; 491 FX_FLOAT fBigStep) = 0;
493 // set the vertical scrollbar information. 492 // set the vertical scrollbar information.
494 virtual void IOnSetScrollInfoY(FX_FLOAT fPlateMin, 493 virtual void IOnSetScrollInfoY(FX_FLOAT fPlateMin,
495 FX_FLOAT fPlateMax, 494 FX_FLOAT fPlateMax,
496 FX_FLOAT fContentMin, 495 FX_FLOAT fContentMin,
497 FX_FLOAT fContentMax, 496 FX_FLOAT fContentMax,
498 FX_FLOAT fSmallStep, 497 FX_FLOAT fSmallStep,
499 FX_FLOAT fBigStep) = 0; 498 FX_FLOAT fBigStep) = 0;
500 // set the position of horizontal scrollbar. 499 // set the position of horizontal scrollbar.
501 virtual void IOnSetScrollPosX(FX_FLOAT fx) = 0; 500 virtual void IOnSetScrollPosX(FX_FLOAT fx) = 0;
502 // set the position of vertical scrollbar. 501 // set the position of vertical scrollbar.
503 virtual void IOnSetScrollPosY(FX_FLOAT fy) = 0; 502 virtual void IOnSetScrollPosY(FX_FLOAT fy) = 0;
504 // Invalidate the rectangle relative to the bounding box of edit. 503 // Invalidate the rectangle relative to the bounding box of edit.
505 virtual void IOnInvalidateRect(CPDF_Rect* pRect) = 0; 504 virtual void IOnInvalidateRect(CPDF_Rect* pRect) = 0;
505
506 protected:
507 virtual ~IFX_List_Notify() {}
506 }; 508 };
507 509
508 class IFX_List { 510 class IFX_List {
509 public: 511 public:
510 static IFX_List* NewList(); 512 static IFX_List* NewList();
511 static void DelList(IFX_List* pList); 513 static void DelList(IFX_List* pList);
512 514
513 virtual void SetFontMap(IFX_Edit_FontMap* pFontMap) = 0; 515 virtual void SetFontMap(IFX_Edit_FontMap* pFontMap) = 0;
514 virtual void SetNotify(IFX_List_Notify* pNotify) = 0; 516 virtual void SetNotify(IFX_List_Notify* pNotify) = 0;
515 517
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
556 virtual void OnVK_UP(FX_BOOL bShift, FX_BOOL bCtrl) = 0; 558 virtual void OnVK_UP(FX_BOOL bShift, FX_BOOL bCtrl) = 0;
557 virtual void OnVK_DOWN(FX_BOOL bShift, FX_BOOL bCtrl) = 0; 559 virtual void OnVK_DOWN(FX_BOOL bShift, FX_BOOL bCtrl) = 0;
558 virtual void OnVK_LEFT(FX_BOOL bShift, FX_BOOL bCtrl) = 0; 560 virtual void OnVK_LEFT(FX_BOOL bShift, FX_BOOL bCtrl) = 0;
559 virtual void OnVK_RIGHT(FX_BOOL bShift, FX_BOOL bCtrl) = 0; 561 virtual void OnVK_RIGHT(FX_BOOL bShift, FX_BOOL bCtrl) = 0;
560 virtual void OnVK_HOME(FX_BOOL bShift, FX_BOOL bCtrl) = 0; 562 virtual void OnVK_HOME(FX_BOOL bShift, FX_BOOL bCtrl) = 0;
561 virtual void OnVK_END(FX_BOOL bShift, FX_BOOL bCtrl) = 0; 563 virtual void OnVK_END(FX_BOOL bShift, FX_BOOL bCtrl) = 0;
562 virtual void OnVK(int32_t nItemIndex, FX_BOOL bShift, FX_BOOL bCtrl) = 0; 564 virtual void OnVK(int32_t nItemIndex, FX_BOOL bShift, FX_BOOL bCtrl) = 0;
563 virtual FX_BOOL OnChar(FX_WORD nChar, FX_BOOL bShift, FX_BOOL bCtrl) = 0; 565 virtual FX_BOOL OnChar(FX_WORD nChar, FX_BOOL bShift, FX_BOOL bCtrl) = 0;
564 566
565 protected: 567 protected:
566 ~IFX_List() {} 568 virtual ~IFX_List() {}
567 }; 569 };
568 570
569 #endif // FPDFSDK_INCLUDE_FXEDIT_FX_EDIT_H_ 571 #endif // FPDFSDK_INCLUDE_FXEDIT_FX_EDIT_H_
OLDNEW
« no previous file with comments | « fpdfsdk/include/fsdk_rendercontext.h ('k') | fpdfsdk/include/fxedit/fxet_edit.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698