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

Side by Side Diff: xfa/fxfa/include/fxfa_widget.h

Issue 1890563003: Simplify XFA event handling. (Closed) Base URL: https://pdfium.googlesource.com/pdfium@master
Patch Set: address comments Created 4 years, 8 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 | « xfa/fxfa/include/fxfa.h ('k') | xfa/fxfa/include/xfa_ffdocview.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 XFA_FXFA_INCLUDE_FXFA_WIDGET_H_ 7 #ifndef XFA_FXFA_INCLUDE_FXFA_WIDGET_H_
8 #define XFA_FXFA_INCLUDE_FXFA_WIDGET_H_ 8 #define XFA_FXFA_INCLUDE_FXFA_WIDGET_H_
9 9
10 #include "core/fxcrt/include/fx_coordinates.h" 10 #include "core/fxcrt/include/fx_coordinates.h"
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
66 FX_BOOL LoadImageEditImage(); 66 FX_BOOL LoadImageEditImage();
67 void GetImageDpi(int32_t& iImageXDpi, int32_t& iImageYDpi); 67 void GetImageDpi(int32_t& iImageXDpi, int32_t& iImageYDpi);
68 void GetImageEditDpi(int32_t& iImageXDpi, int32_t& iImageYDpi); 68 void GetImageEditDpi(int32_t& iImageXDpi, int32_t& iImageYDpi);
69 CXFA_TextLayout* GetCaptionTextLayout(); 69 CXFA_TextLayout* GetCaptionTextLayout();
70 CXFA_TextLayout* GetTextLayout(); 70 CXFA_TextLayout* GetTextLayout();
71 CFX_DIBitmap* GetImageImage(); 71 CFX_DIBitmap* GetImageImage();
72 CFX_DIBitmap* GetImageEditImage(); 72 CFX_DIBitmap* GetImageEditImage();
73 void SetImageImage(CFX_DIBitmap* newImage); 73 void SetImageImage(CFX_DIBitmap* newImage);
74 void SetImageEditImage(CFX_DIBitmap* newImage); 74 void SetImageEditImage(CFX_DIBitmap* newImage);
75 void UpdateUIDisplay(CXFA_FFWidget* pExcept = NULL); 75 void UpdateUIDisplay(CXFA_FFWidget* pExcept = NULL);
76 void NotifyEvent(uint32_t dwEvent,
77 CXFA_FFWidget* pWidget = NULL,
78 void* pParam = NULL,
79 void* pAdditional = NULL);
80 76
81 CXFA_Node* GetDatasets(); 77 CXFA_Node* GetDatasets();
82 IFX_Font* GetFDEFont(); 78 IFX_Font* GetFDEFont();
83 FX_FLOAT GetFontSize(); 79 FX_FLOAT GetFontSize();
84 FX_ARGB GetTextColor(); 80 FX_ARGB GetTextColor();
85 FX_FLOAT GetLineHeight(); 81 FX_FLOAT GetLineHeight();
86 CXFA_WidgetLayoutData* GetWidgetLayoutData(); 82 CXFA_WidgetLayoutData* GetWidgetLayoutData();
87 83
88 protected: 84 protected:
89 void ProcessScriptTestValidate(CXFA_Validate validate, 85 void ProcessScriptTestValidate(CXFA_Validate validate,
(...skipping 29 matching lines...) Expand all
119 FX_FLOAT& fWidth, 115 FX_FLOAT& fWidth,
120 FX_FLOAT& fCalcHeight); 116 FX_FLOAT& fCalcHeight);
121 void InitLayoutData(); 117 void InitLayoutData();
122 void StartTextLayout(FX_FLOAT& fCalcWidth, FX_FLOAT& fCalcHeight); 118 void StartTextLayout(FX_FLOAT& fCalcWidth, FX_FLOAT& fCalcHeight);
123 CXFA_FFDocView* m_pDocView; 119 CXFA_FFDocView* m_pDocView;
124 CXFA_WidgetLayoutData* m_pLayoutData; 120 CXFA_WidgetLayoutData* m_pLayoutData;
125 uint32_t m_nRecursionDepth; 121 uint32_t m_nRecursionDepth;
126 }; 122 };
127 123
128 #endif // XFA_FXFA_INCLUDE_FXFA_WIDGET_H_ 124 #endif // XFA_FXFA_INCLUDE_FXFA_WIDGET_H_
OLDNEW
« no previous file with comments | « xfa/fxfa/include/fxfa.h ('k') | xfa/fxfa/include/xfa_ffdocview.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698