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

Side by Side Diff: xfa/fwl/core/cfwl_widget.h

Issue 2521303002: Rename IFWL_App to CFWL_App (Closed)
Patch Set: Rebase to master Created 4 years 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/fwl/core/cfwl_timer.cpp ('k') | xfa/fwl/core/cfwl_widget.cpp » ('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_FWL_CORE_CFWL_WIDGET_H_ 7 #ifndef XFA_FWL_CORE_CFWL_WIDGET_H_
8 #define XFA_FWL_CORE_CFWL_WIDGET_H_ 8 #define XFA_FWL_CORE_CFWL_WIDGET_H_
9 9
10 #include <memory> 10 #include <memory>
11 11
12 #include "xfa/fwl/core/cfwl_event.h" 12 #include "xfa/fwl/core/cfwl_event.h"
13 #include "xfa/fwl/core/ifwl_widget.h" 13 #include "xfa/fwl/core/ifwl_widget.h"
14 14
15 class CFWL_Event; 15 class CFWL_Event;
16 class CFWL_Message; 16 class CFWL_Message;
17 class CFWL_Widget; 17 class CFWL_Widget;
18 class CFWL_WidgetDelegate; 18 class CFWL_WidgetDelegate;
19 class CFWL_WidgetMgr; 19 class CFWL_WidgetMgr;
20 20
21 class CFWL_Widget { 21 class CFWL_Widget {
22 public: 22 public:
23 explicit CFWL_Widget(const IFWL_App*); 23 explicit CFWL_Widget(const CFWL_App*);
24 virtual ~CFWL_Widget(); 24 virtual ~CFWL_Widget();
25 25
26 IFWL_Widget* GetWidget() { return m_pIface.get(); } 26 IFWL_Widget* GetWidget() { return m_pIface.get(); }
27 IFWL_Widget* GetWidget() const { return m_pIface.get(); } 27 IFWL_Widget* GetWidget() const { return m_pIface.get(); }
28 28
29 void GetWidgetRect(CFX_RectF& rect, bool bAutoSize = false); 29 void GetWidgetRect(CFX_RectF& rect, bool bAutoSize = false);
30 void SetWidgetRect(const CFX_RectF& rect); 30 void SetWidgetRect(const CFX_RectF& rect);
31 31
32 void ModifyStyles(uint32_t dwStylesAdded, uint32_t dwStylesRemoved); 32 void ModifyStyles(uint32_t dwStylesAdded, uint32_t dwStylesRemoved);
33 uint32_t GetStylesEx(); 33 uint32_t GetStylesEx();
34 void ModifyStylesEx(uint32_t dwStylesExAdded, uint32_t dwStylesExRemoved); 34 void ModifyStylesEx(uint32_t dwStylesExAdded, uint32_t dwStylesExRemoved);
35 35
36 uint32_t GetStates(); 36 uint32_t GetStates();
37 void SetStates(uint32_t dwStates, bool bSet = true); 37 void SetStates(uint32_t dwStates, bool bSet = true);
38 void SetLayoutItem(void* pItem); 38 void SetLayoutItem(void* pItem);
39 39
40 void Update(); 40 void Update();
41 void LockUpdate(); 41 void LockUpdate();
42 void UnlockUpdate(); 42 void UnlockUpdate();
43 43
44 FWL_WidgetHit HitTest(FX_FLOAT fx, FX_FLOAT fy); 44 FWL_WidgetHit HitTest(FX_FLOAT fx, FX_FLOAT fy);
45 void DrawWidget(CFX_Graphics* pGraphics, const CFX_Matrix* pMatrix = nullptr); 45 void DrawWidget(CFX_Graphics* pGraphics, const CFX_Matrix* pMatrix = nullptr);
46 46
47 IFWL_WidgetDelegate* GetDelegate() const; 47 IFWL_WidgetDelegate* GetDelegate() const;
48 void SetDelegate(IFWL_WidgetDelegate*); 48 void SetDelegate(IFWL_WidgetDelegate*);
49 49
50 protected: 50 protected:
51 void Initialize(); 51 void Initialize();
52 52
53 const IFWL_App* m_pApp; 53 const CFWL_App* m_pApp;
54 std::unique_ptr<IFWL_Widget> m_pIface; 54 std::unique_ptr<IFWL_Widget> m_pIface;
55 }; 55 };
56 56
57 #endif // XFA_FWL_CORE_CFWL_WIDGET_H_ 57 #endif // XFA_FWL_CORE_CFWL_WIDGET_H_
OLDNEW
« no previous file with comments | « xfa/fwl/core/cfwl_timer.cpp ('k') | xfa/fwl/core/cfwl_widget.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698