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

Side by Side Diff: xfa/include/fwl/core/fwl_widget.h

Issue 1453373006: Kill dead IFWL_*::Initialize() variants dead. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@xfa
Patch Set: Rebased Created 5 years, 1 month 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/include/fwl/core/fwl_panel.h ('k') | xfa/src/fwl/src/basewidget/fwl_barcodeimp.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 _FWL_WIDGET_H 7 #ifndef _FWL_WIDGET_H
8 #define _FWL_WIDGET_H 8 #define _FWL_WIDGET_H
9 class IFWL_Target; 9 class IFWL_Target;
10 class IFWL_ThemeProvider; 10 class IFWL_ThemeProvider;
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
86 FX_DWORD m_dwStyleExes; 86 FX_DWORD m_dwStyleExes;
87 FX_DWORD m_dwStates; 87 FX_DWORD m_dwStates;
88 IFWL_ThemeProvider* m_pThemeProvider; 88 IFWL_ThemeProvider* m_pThemeProvider;
89 IFWL_DataProvider* m_pDataProvider; 89 IFWL_DataProvider* m_pDataProvider;
90 IFWL_Widget* m_pParent; 90 IFWL_Widget* m_pParent;
91 IFWL_Widget* m_pOwner; 91 IFWL_Widget* m_pOwner;
92 }; 92 };
93 class IFWL_Custom : public IFWL_Widget { 93 class IFWL_Custom : public IFWL_Widget {
94 public: 94 public:
95 static IFWL_Custom* Create(); 95 static IFWL_Custom* Create();
96
97 FWL_ERR Initialize(IFWL_Widget* pOuter = NULL);
98 FWL_ERR Initialize(const CFWL_WidgetImpProperties& properties, 96 FWL_ERR Initialize(const CFWL_WidgetImpProperties& properties,
99 IFWL_Widget* pOuter = NULL); 97 IFWL_Widget* pOuter);
100 FWL_ERR SetProxy(IFWL_Proxy* pProxy); 98 FWL_ERR SetProxy(IFWL_Proxy* pProxy);
101 99
102 protected: 100 protected:
103 IFWL_Custom(); 101 IFWL_Custom();
104 }; 102 };
105 class IFWL_Proxy { 103 class IFWL_Proxy {
106 public: 104 public:
107 virtual ~IFWL_Proxy() {} 105 virtual ~IFWL_Proxy() {}
108 virtual FWL_ERR GetWidgetRect(CFX_RectF& rect, FX_BOOL bAutoSize = FALSE) = 0; 106 virtual FWL_ERR GetWidgetRect(CFX_RectF& rect, FX_BOOL bAutoSize = FALSE) = 0;
109 virtual FWL_ERR Update() = 0; 107 virtual FWL_ERR Update() = 0;
110 }; 108 };
111 #define FWL_ACCEL_Control (1L << 0) 109 #define FWL_ACCEL_Control (1L << 0)
112 #define FWL_ACCEL_Alt (1L << 1) 110 #define FWL_ACCEL_Alt (1L << 1)
113 #define FWL_ACCEL_Shift (1L << 2) 111 #define FWL_ACCEL_Shift (1L << 2)
114 #define FWL_ACCEL_VirtKey (1L << 3) 112 #define FWL_ACCEL_VirtKey (1L << 3)
115 typedef struct _FWL_ACCEL { 113 typedef struct _FWL_ACCEL {
116 FX_DWORD dwKey; 114 FX_DWORD dwKey;
117 FX_DWORD dwCmd; 115 FX_DWORD dwCmd;
118 } FWL_ACCEL; 116 } FWL_ACCEL;
119 typedef CFX_MapPtrTemplate<FX_DWORD, FX_DWORD> CFX_MapAccelerators; 117 typedef CFX_MapPtrTemplate<FX_DWORD, FX_DWORD> CFX_MapAccelerators;
120 FWL_ERR FWL_Accelerator_SetApp(CFX_MapAccelerators* pMapAccel); 118 FWL_ERR FWL_Accelerator_SetApp(CFX_MapAccelerators* pMapAccel);
121 FWL_ERR FWL_Accelerator_SetThread(CFX_MapAccelerators* pMapAccel); 119 FWL_ERR FWL_Accelerator_SetThread(CFX_MapAccelerators* pMapAccel);
122 FWL_ERR FWL_Accelerator_SetForm(IFWL_Form* pFrom, 120 FWL_ERR FWL_Accelerator_SetForm(IFWL_Form* pFrom,
123 CFX_MapAccelerators* pMapAccel); 121 CFX_MapAccelerators* pMapAccel);
124 FWL_ERR FWL_EnabelWidget(IFWL_Widget* widget, FX_BOOL bEnable); 122 FWL_ERR FWL_EnabelWidget(IFWL_Widget* widget, FX_BOOL bEnable);
125 #endif 123 #endif
OLDNEW
« no previous file with comments | « xfa/include/fwl/core/fwl_panel.h ('k') | xfa/src/fwl/src/basewidget/fwl_barcodeimp.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698