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

Side by Side Diff: fpdfsdk/cfx_systemhandler.h

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 2016 PDFium Authors. All rights reserved. 1 // Copyright 2016 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_CFX_SYSTEMHANDLER_H_ 7 #ifndef FPDFSDK_CFX_SYSTEMHANDLER_H_
8 #define FPDFSDK_CFX_SYSTEMHANDLER_H_ 8 #define FPDFSDK_CFX_SYSTEMHANDLER_H_
9 9
10 #include "core/fxcrt/fx_coordinates.h" 10 #include "core/fxcrt/fx_coordinates.h"
(...skipping 26 matching lines...) Expand all
37 #define FXCT_ARROW 0 37 #define FXCT_ARROW 0
38 #define FXCT_NESW 1 38 #define FXCT_NESW 1
39 #define FXCT_NWSE 2 39 #define FXCT_NWSE 2
40 #define FXCT_VBEAM 3 40 #define FXCT_VBEAM 3
41 #define FXCT_HBEAM 4 41 #define FXCT_HBEAM 4
42 #define FXCT_HAND 5 42 #define FXCT_HAND 5
43 43
44 class CFFL_FormFiller; 44 class CFFL_FormFiller;
45 class CPDF_Document; 45 class CPDF_Document;
46 class CPDF_Font; 46 class CPDF_Font;
47 class CPDFSDK_Environment; 47 class CPDFSDK_FormFillEnvironment;
48 class CPDFSDK_Widget; 48 class CPDFSDK_Widget;
49 49
50 class CFX_SystemHandler { 50 class CFX_SystemHandler {
51 public: 51 public:
52 explicit CFX_SystemHandler(CPDFSDK_Environment* pEnv) : m_pEnv(pEnv) {} 52 explicit CFX_SystemHandler(CPDFSDK_FormFillEnvironment* pEnv)
53 : m_pEnv(pEnv) {}
53 ~CFX_SystemHandler() {} 54 ~CFX_SystemHandler() {}
54 55
55 void InvalidateRect(CPDFSDK_Widget* widget, FX_RECT rect); 56 void InvalidateRect(CPDFSDK_Widget* widget, FX_RECT rect);
56 void OutputSelectedRect(CFFL_FormFiller* pFormFiller, CFX_FloatRect& rect); 57 void OutputSelectedRect(CFFL_FormFiller* pFormFiller, CFX_FloatRect& rect);
57 bool IsSelectionImplemented() const; 58 bool IsSelectionImplemented() const;
58 59
59 void SetCursor(int32_t nCursorType); 60 void SetCursor(int32_t nCursorType);
60 61
61 bool FindNativeTrueTypeFont(CFX_ByteString sFontFaceName); 62 bool FindNativeTrueTypeFont(CFX_ByteString sFontFaceName);
62 CPDF_Font* AddNativeTrueTypeFontToPDF(CPDF_Document* pDoc, 63 CPDF_Font* AddNativeTrueTypeFontToPDF(CPDF_Document* pDoc,
63 CFX_ByteString sFontFaceName, 64 CFX_ByteString sFontFaceName,
64 uint8_t nCharset); 65 uint8_t nCharset);
65 66
66 int32_t SetTimer(int32_t uElapse, TimerCallback lpTimerFunc); 67 int32_t SetTimer(int32_t uElapse, TimerCallback lpTimerFunc);
67 void KillTimer(int32_t nID); 68 void KillTimer(int32_t nID);
68 69
69 bool IsSHIFTKeyDown(uint32_t nFlag) const; 70 bool IsSHIFTKeyDown(uint32_t nFlag) const;
70 bool IsCTRLKeyDown(uint32_t nFlag) const; 71 bool IsCTRLKeyDown(uint32_t nFlag) const;
71 bool IsALTKeyDown(uint32_t nFlag) const; 72 bool IsALTKeyDown(uint32_t nFlag) const;
72 73
73 private: 74 private:
74 CPDFSDK_Environment* const m_pEnv; 75 CPDFSDK_FormFillEnvironment* const m_pEnv;
75 }; 76 };
76 77
77 #endif // FPDFSDK_CFX_SYSTEMHANDLER_H_ 78 #endif // FPDFSDK_CFX_SYSTEMHANDLER_H_
OLDNEW
« no previous file with comments | « BUILD.gn ('k') | fpdfsdk/cfx_systemhandler.cpp » ('j') | fpdfsdk/cpdfsdk_pageview.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698