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

Side by Side Diff: xfa/fwl/lightwidget/widget.cpp

Issue 1830323006: Remove FX_DWORD from XFA. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: 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/fwl/lightwidget/theme.cpp ('k') | xfa/fwl/theme/carettp.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 #include "xfa/include/fwl/lightwidget/widget.h" 7 #include "xfa/include/fwl/lightwidget/widget.h"
8 8
9 #include "xfa/fde/tto/fde_textout.h" 9 #include "xfa/fde/tto/fde_textout.h"
10 #include "xfa/fwl/core/cfwl_themetext.h" 10 #include "xfa/fwl/core/cfwl_themetext.h"
(...skipping 21 matching lines...) Expand all
32 return result; 32 return result;
33 } 33 }
34 IFWL_Widget* CFWL_Widget::GetWidget() { 34 IFWL_Widget* CFWL_Widget::GetWidget() {
35 return m_pIface; 35 return m_pIface;
36 } 36 }
37 FWL_ERR CFWL_Widget::GetClassName(CFX_WideString& wsClass) const { 37 FWL_ERR CFWL_Widget::GetClassName(CFX_WideString& wsClass) const {
38 if (!m_pIface) 38 if (!m_pIface)
39 return FWL_ERR_Indefinite; 39 return FWL_ERR_Indefinite;
40 return m_pIface->GetClassName(wsClass); 40 return m_pIface->GetClassName(wsClass);
41 } 41 }
42 FX_DWORD CFWL_Widget::GetClassID() const { 42 uint32_t CFWL_Widget::GetClassID() const {
43 if (!m_pIface) 43 if (!m_pIface)
44 return 0; 44 return 0;
45 return m_pIface->GetClassID(); 45 return m_pIface->GetClassID();
46 } 46 }
47 FX_BOOL CFWL_Widget::IsInstance(const CFX_WideStringC& wsClass) const { 47 FX_BOOL CFWL_Widget::IsInstance(const CFX_WideStringC& wsClass) const {
48 if (!m_pIface) 48 if (!m_pIface)
49 return FALSE; 49 return FALSE;
50 return m_pIface->IsInstance(wsClass); 50 return m_pIface->IsInstance(wsClass);
51 } 51 }
52 static void* gs_pFWLWidget = (void*)FXBSTR_ID('l', 'i', 'g', 't'); 52 static void* gs_pFWLWidget = (void*)FXBSTR_ID('l', 'i', 'g', 't');
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
92 CFWL_Widget* CFWL_Widget::GetOwner() { 92 CFWL_Widget* CFWL_Widget::GetOwner() {
93 if (!m_pIface) 93 if (!m_pIface)
94 return NULL; 94 return NULL;
95 return NULL; 95 return NULL;
96 } 96 }
97 FWL_ERR CFWL_Widget::SetOwner(CFWL_Widget* pOwner) { 97 FWL_ERR CFWL_Widget::SetOwner(CFWL_Widget* pOwner) {
98 if (!m_pIface) 98 if (!m_pIface)
99 return FWL_ERR_Indefinite; 99 return FWL_ERR_Indefinite;
100 return FWL_ERR_Succeeded; 100 return FWL_ERR_Succeeded;
101 } 101 }
102 FX_DWORD CFWL_Widget::GetStyles() { 102 uint32_t CFWL_Widget::GetStyles() {
103 if (!m_pIface) 103 if (!m_pIface)
104 return 0; 104 return 0;
105 return m_pIface->GetStyles(); 105 return m_pIface->GetStyles();
106 } 106 }
107 FWL_ERR CFWL_Widget::ModifyStyles(FX_DWORD dwStylesAdded, 107 FWL_ERR CFWL_Widget::ModifyStyles(uint32_t dwStylesAdded,
108 FX_DWORD dwStylesRemoved) { 108 uint32_t dwStylesRemoved) {
109 if (!m_pIface) 109 if (!m_pIface)
110 return FWL_ERR_Indefinite; 110 return FWL_ERR_Indefinite;
111 return m_pIface->ModifyStyles(dwStylesAdded, dwStylesRemoved); 111 return m_pIface->ModifyStyles(dwStylesAdded, dwStylesRemoved);
112 } 112 }
113 FX_DWORD CFWL_Widget::GetStylesEx() { 113 uint32_t CFWL_Widget::GetStylesEx() {
114 if (!m_pIface) 114 if (!m_pIface)
115 return 0; 115 return 0;
116 return m_pIface->GetStylesEx(); 116 return m_pIface->GetStylesEx();
117 } 117 }
118 FWL_ERR CFWL_Widget::ModifyStylesEx(FX_DWORD dwStylesExAdded, 118 FWL_ERR CFWL_Widget::ModifyStylesEx(uint32_t dwStylesExAdded,
119 FX_DWORD dwStylesExRemoved) { 119 uint32_t dwStylesExRemoved) {
120 return m_pIface->ModifyStylesEx(dwStylesExAdded, dwStylesExRemoved); 120 return m_pIface->ModifyStylesEx(dwStylesExAdded, dwStylesExRemoved);
121 } 121 }
122 FX_DWORD CFWL_Widget::GetStates() { 122 uint32_t CFWL_Widget::GetStates() {
123 if (!m_pIface) 123 if (!m_pIface)
124 return FWL_ERR_Indefinite; 124 return FWL_ERR_Indefinite;
125 return m_pIface->GetStates(); 125 return m_pIface->GetStates();
126 } 126 }
127 FWL_ERR CFWL_Widget::SetStates(FX_DWORD dwStates, FX_BOOL bSet) { 127 FWL_ERR CFWL_Widget::SetStates(uint32_t dwStates, FX_BOOL bSet) {
128 if (!m_pIface) 128 if (!m_pIface)
129 return FWL_ERR_Indefinite; 129 return FWL_ERR_Indefinite;
130 return m_pIface->SetStates(dwStates, bSet); 130 return m_pIface->SetStates(dwStates, bSet);
131 } 131 }
132 FWL_ERR CFWL_Widget::SetPrivateData(void* module_id, 132 FWL_ERR CFWL_Widget::SetPrivateData(void* module_id,
133 void* pData, 133 void* pData,
134 PD_CALLBACK_FREEDATA callback) { 134 PD_CALLBACK_FREEDATA callback) {
135 if (!m_pIface) 135 if (!m_pIface)
136 return FWL_ERR_Indefinite; 136 return FWL_ERR_Indefinite;
137 return m_pIface->SetPrivateData(module_id, pData, callback); 137 return m_pIface->SetPrivateData(module_id, pData, callback);
(...skipping 11 matching lines...) Expand all
149 FWL_ERR CFWL_Widget::LockUpdate() { 149 FWL_ERR CFWL_Widget::LockUpdate() {
150 if (!m_pIface) 150 if (!m_pIface)
151 return FWL_ERR_Indefinite; 151 return FWL_ERR_Indefinite;
152 return m_pIface->LockUpdate(); 152 return m_pIface->LockUpdate();
153 } 153 }
154 FWL_ERR CFWL_Widget::UnlockUpdate() { 154 FWL_ERR CFWL_Widget::UnlockUpdate() {
155 if (!m_pIface) 155 if (!m_pIface)
156 return FWL_ERR_Indefinite; 156 return FWL_ERR_Indefinite;
157 return m_pIface->UnlockUpdate(); 157 return m_pIface->UnlockUpdate();
158 } 158 }
159 FX_DWORD CFWL_Widget::HitTest(FX_FLOAT fx, FX_FLOAT fy) { 159 uint32_t CFWL_Widget::HitTest(FX_FLOAT fx, FX_FLOAT fy) {
160 if (!m_pIface) 160 if (!m_pIface)
161 return 0; 161 return 0;
162 return m_pIface->HitTest(fx, fy); 162 return m_pIface->HitTest(fx, fy);
163 } 163 }
164 FWL_ERR CFWL_Widget::TransformTo(CFWL_Widget* pWidget, 164 FWL_ERR CFWL_Widget::TransformTo(CFWL_Widget* pWidget,
165 FX_FLOAT& fx, 165 FX_FLOAT& fx,
166 FX_FLOAT& fy) { 166 FX_FLOAT& fy) {
167 if (!m_pIface) 167 if (!m_pIface)
168 return FWL_ERR_Indefinite; 168 return FWL_ERR_Indefinite;
169 return m_pIface->TransformTo(pWidget ? pWidget->GetWidget() : NULL, fx, fy); 169 return m_pIface->TransformTo(pWidget ? pWidget->GetWidget() : NULL, fx, fy);
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
244 IFWL_NoteThread* pThread = m_pIface->GetOwnerThread(); 244 IFWL_NoteThread* pThread = m_pIface->GetOwnerThread();
245 if (!pThread) 245 if (!pThread)
246 return FWL_ERR_Indefinite; 246 return FWL_ERR_Indefinite;
247 IFWL_NoteDriver* pDriver = pThread->GetNoteDriver(); 247 IFWL_NoteDriver* pDriver = pThread->GetNoteDriver();
248 if (!pDriver) 248 if (!pDriver)
249 return FWL_ERR_Indefinite; 249 return FWL_ERR_Indefinite;
250 pDriver->SetGrab(m_pIface, bSet); 250 pDriver->SetGrab(m_pIface, bSet);
251 return FWL_ERR_Succeeded; 251 return FWL_ERR_Succeeded;
252 } 252 }
253 void CFWL_Widget::RegisterEventTarget(CFWL_Widget* pEventSource, 253 void CFWL_Widget::RegisterEventTarget(CFWL_Widget* pEventSource,
254 FX_DWORD dwFilter) { 254 uint32_t dwFilter) {
255 if (!m_pIface) 255 if (!m_pIface)
256 return; 256 return;
257 IFWL_NoteThread* pThread = m_pIface->GetOwnerThread(); 257 IFWL_NoteThread* pThread = m_pIface->GetOwnerThread();
258 if (!pThread) 258 if (!pThread)
259 return; 259 return;
260 IFWL_NoteDriver* pNoteDriver = pThread->GetNoteDriver(); 260 IFWL_NoteDriver* pNoteDriver = pThread->GetNoteDriver();
261 if (!pNoteDriver) 261 if (!pNoteDriver)
262 return; 262 return;
263 IFWL_Widget* pEventSourceImp = 263 IFWL_Widget* pEventSourceImp =
264 !pEventSource ? NULL : pEventSource->GetWidget(); 264 !pEventSource ? NULL : pEventSource->GetWidget();
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
310 int32_t CFWL_WidgetDelegate::OnProcessMessage(CFWL_Message* pMessage) { 310 int32_t CFWL_WidgetDelegate::OnProcessMessage(CFWL_Message* pMessage) {
311 return 1; 311 return 1;
312 } 312 }
313 FWL_ERR CFWL_WidgetDelegate::OnProcessEvent(CFWL_Event* pEvent) { 313 FWL_ERR CFWL_WidgetDelegate::OnProcessEvent(CFWL_Event* pEvent) {
314 return FWL_ERR_Succeeded; 314 return FWL_ERR_Succeeded;
315 } 315 }
316 FWL_ERR CFWL_WidgetDelegate::OnDrawWidget(CFX_Graphics* pGraphics, 316 FWL_ERR CFWL_WidgetDelegate::OnDrawWidget(CFX_Graphics* pGraphics,
317 const CFX_Matrix* pMatrix) { 317 const CFX_Matrix* pMatrix) {
318 return FWL_ERR_Succeeded; 318 return FWL_ERR_Succeeded;
319 } 319 }
OLDNEW
« no previous file with comments | « xfa/fwl/lightwidget/theme.cpp ('k') | xfa/fwl/theme/carettp.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698