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

Side by Side Diff: xfa/fxfa/app/xfa_fftext.h

Issue 2071683002: Make code compile with clang_use_chrome_plugin (part V) (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: clean up Created 4 years, 6 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/app/xfa_ffsubform.h ('k') | xfa/fxfa/app/xfa_fftextedit.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_APP_XFA_FFTEXT_H_ 7 #ifndef XFA_FXFA_APP_XFA_FFTEXT_H_
8 #define XFA_FXFA_APP_XFA_FFTEXT_H_ 8 #define XFA_FXFA_APP_XFA_FFTEXT_H_
9 9
10 #include "xfa/fxfa/app/xfa_ffdraw.h" 10 #include "xfa/fxfa/app/xfa_ffdraw.h"
11 11
12 class CXFA_FFText : public CXFA_FFDraw { 12 class CXFA_FFText : public CXFA_FFDraw {
13 public: 13 public:
14 CXFA_FFText(CXFA_FFPageView* pPageView, CXFA_WidgetAcc* pDataAcc); 14 CXFA_FFText(CXFA_FFPageView* pPageView, CXFA_WidgetAcc* pDataAcc);
15 virtual ~CXFA_FFText(); 15 ~CXFA_FFText() override;
16 virtual FX_BOOL OnLButtonDown(uint32_t dwFlags, FX_FLOAT fx, FX_FLOAT fy); 16
17 virtual FX_BOOL OnLButtonUp(uint32_t dwFlags, FX_FLOAT fx, FX_FLOAT fy); 17 // CXFA_FFWidget
18 virtual FX_BOOL OnMouseMove(uint32_t dwFlags, FX_FLOAT fx, FX_FLOAT fy); 18 FX_BOOL OnLButtonDown(uint32_t dwFlags, FX_FLOAT fx, FX_FLOAT fy) override;
19 virtual FWL_WidgetHit OnHitTest(FX_FLOAT fx, FX_FLOAT fy); 19 FX_BOOL OnLButtonUp(uint32_t dwFlags, FX_FLOAT fx, FX_FLOAT fy) override;
20 virtual void RenderWidget(CFX_Graphics* pGS, 20 FX_BOOL OnMouseMove(uint32_t dwFlags, FX_FLOAT fx, FX_FLOAT fy) override;
21 CFX_Matrix* pMatrix = NULL, 21 FWL_WidgetHit OnHitTest(FX_FLOAT fx, FX_FLOAT fy) override;
22 uint32_t dwStatus = 0, 22 void RenderWidget(CFX_Graphics* pGS,
23 int32_t iRotate = 0); 23 CFX_Matrix* pMatrix = NULL,
24 virtual FX_BOOL IsLoaded(); 24 uint32_t dwStatus = 0,
25 virtual FX_BOOL PerformLayout(); 25 int32_t iRotate = 0) override;
26 FX_BOOL IsLoaded() override;
27 FX_BOOL PerformLayout() override;
26 28
27 private: 29 private:
28 virtual const FX_WCHAR* GetLinkURLAtPoint(FX_FLOAT fx, FX_FLOAT fy); 30 const FX_WCHAR* GetLinkURLAtPoint(FX_FLOAT fx, FX_FLOAT fy);
29 void FWLToClient(FX_FLOAT& fx, FX_FLOAT& fy); 31 void FWLToClient(FX_FLOAT& fx, FX_FLOAT& fy);
30 }; 32 };
31 33
32 #endif // XFA_FXFA_APP_XFA_FFTEXT_H_ 34 #endif // XFA_FXFA_APP_XFA_FFTEXT_H_
OLDNEW
« no previous file with comments | « xfa/fxfa/app/xfa_ffsubform.h ('k') | xfa/fxfa/app/xfa_fftextedit.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698