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

Side by Side Diff: xfa/fwl/basewidget/fwl_editimp.cpp

Issue 1928963004: Cleanup IFWL_Adapter interfaces. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Rebase to master Created 4 years, 7 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
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/fwl/basewidget/fwl_editimp.h" 7 #include "xfa/fwl/basewidget/fwl_editimp.h"
8 8
9 #include <algorithm> 9 #include <algorithm>
10 #include <vector> 10 #include <vector>
(...skipping 253 matching lines...) Expand 10 before | Expand all | Expand 10 after
264 if (IsShowScrollBar(FALSE)) { 264 if (IsShowScrollBar(FALSE)) {
265 FX_FLOAT* pfWidth = static_cast<FX_FLOAT*>( 265 FX_FLOAT* pfWidth = static_cast<FX_FLOAT*>(
266 GetThemeCapacity(CFWL_WidgetCapacity::ScrollBarWidth)); 266 GetThemeCapacity(CFWL_WidgetCapacity::ScrollBarWidth));
267 rect.height += *pfWidth; 267 rect.height += *pfWidth;
268 rect.height += FWL_EDIT_Margin; 268 rect.height += FWL_EDIT_Margin;
269 } 269 }
270 } 270 }
271 } 271 }
272 return FWL_ERR_Succeeded; 272 return FWL_ERR_Succeeded;
273 } 273 }
274 FWL_ERR CFWL_EditImp::SetStates(uint32_t dwStates, FX_BOOL bSet) { 274
275 void CFWL_EditImp::SetStates(uint32_t dwStates, FX_BOOL bSet) {
275 if ((m_pProperties->m_dwStates & FWL_WGTSTATE_Invisible) || 276 if ((m_pProperties->m_dwStates & FWL_WGTSTATE_Invisible) ||
276 (m_pProperties->m_dwStates & FWL_WGTSTATE_Disabled)) { 277 (m_pProperties->m_dwStates & FWL_WGTSTATE_Disabled)) {
277 ShowCaret(FALSE); 278 ShowCaret(FALSE);
278 } 279 }
279 return CFWL_WidgetImp::SetStates(dwStates, bSet); 280 CFWL_WidgetImp::SetStates(dwStates, bSet);
280 } 281 }
282
281 FWL_ERR CFWL_EditImp::SetWidgetRect(const CFX_RectF& rect) { 283 FWL_ERR CFWL_EditImp::SetWidgetRect(const CFX_RectF& rect) {
282 return CFWL_WidgetImp::SetWidgetRect(rect); 284 return CFWL_WidgetImp::SetWidgetRect(rect);
283 } 285 }
284 FWL_ERR CFWL_EditImp::Update() { 286 FWL_ERR CFWL_EditImp::Update() {
285 if (IsLocked()) { 287 if (IsLocked()) {
286 return FWL_ERR_Indefinite; 288 return FWL_ERR_Indefinite;
287 } 289 }
288 if (!m_pProperties->m_pThemeProvider) { 290 if (!m_pProperties->m_pThemeProvider) {
289 m_pProperties->m_pThemeProvider = GetAvailableTheme(); 291 m_pProperties->m_pThemeProvider = GetAvailableTheme();
290 } 292 }
(...skipping 1880 matching lines...) Expand 10 before | Expand all | Expand 10 after
2171 } 2173 }
2172 CFX_RectF rect; 2174 CFX_RectF rect;
2173 m_pOwner->GetWidgetRect(rect); 2175 m_pOwner->GetWidgetRect(rect);
2174 CFX_RectF rtInvalidate; 2176 CFX_RectF rtInvalidate;
2175 rtInvalidate.Set(0, 0, rect.width + 2, rect.height + 2); 2177 rtInvalidate.Set(0, 0, rect.width + 2, rect.height + 2);
2176 m_pOwner->Repaint(&rtInvalidate); 2178 m_pOwner->Repaint(&rtInvalidate);
2177 } 2179 }
2178 return TRUE; 2180 return TRUE;
2179 } 2181 }
2180 void CFWL_EditImpDelegate::DoCursor(CFWL_MsgMouse* pMsg) {} 2182 void CFWL_EditImpDelegate::DoCursor(CFWL_MsgMouse* pMsg) {}
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698