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

Side by Side Diff: xfa/src/fwl/core/fwl_widgetimp.cpp

Issue 1770953004: Remove xfa/src/fwl/src and move code up a level. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Created 4 years, 9 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/src/fwl/src/core/fwl_widgetimp.h" 7 #include "xfa/src/fwl/core/fwl_widgetimp.h"
8 8
9 #include <algorithm> 9 #include <algorithm>
10 10
11 #include "xfa/include/fwl/adapter/fwl_adapternative.h" 11 #include "xfa/include/fwl/adapter/fwl_adapternative.h"
12 #include "xfa/include/fwl/adapter/fwl_adapterthreadmgr.h" 12 #include "xfa/include/fwl/adapter/fwl_adapterthreadmgr.h"
13 #include "xfa/include/fwl/adapter/fwl_adapterwidgetmgr.h" 13 #include "xfa/include/fwl/adapter/fwl_adapterwidgetmgr.h"
14 #include "xfa/include/fwl/basewidget/fwl_combobox.h" 14 #include "xfa/include/fwl/basewidget/fwl_combobox.h"
15 #include "xfa/include/fwl/basewidget/fwl_datetimepicker.h" 15 #include "xfa/include/fwl/basewidget/fwl_datetimepicker.h"
16 #include "xfa/include/fwl/basewidget/fwl_menu.h" 16 #include "xfa/include/fwl/basewidget/fwl_menu.h"
17 #include "xfa/include/fwl/core/fwl_app.h" 17 #include "xfa/include/fwl/core/fwl_app.h"
18 #include "xfa/include/fwl/core/fwl_content.h" 18 #include "xfa/include/fwl/core/fwl_content.h"
19 #include "xfa/include/fwl/core/fwl_form.h" 19 #include "xfa/include/fwl/core/fwl_form.h"
20 #include "xfa/include/fwl/core/fwl_theme.h" 20 #include "xfa/include/fwl/core/fwl_theme.h"
21 #include "xfa/src/fdp/include/fde_tto.h" 21 #include "xfa/src/fdp/include/fde_tto.h"
22 #include "xfa/src/fwl/src/core/fwl_appimp.h" 22 #include "xfa/src/fwl/core/fwl_appimp.h"
23 #include "xfa/src/fwl/src/core/fwl_noteimp.h" 23 #include "xfa/src/fwl/core/fwl_noteimp.h"
24 #include "xfa/src/fwl/src/core/fwl_targetimp.h" 24 #include "xfa/src/fwl/core/fwl_targetimp.h"
25 #include "xfa/src/fwl/src/core/fwl_threadimp.h" 25 #include "xfa/src/fwl/core/fwl_threadimp.h"
26 #include "xfa/src/fwl/src/core/fwl_widgetmgrimp.h" 26 #include "xfa/src/fwl/core/fwl_widgetmgrimp.h"
27 27
28 FWL_ERR IFWL_Widget::GetWidgetRect(CFX_RectF& rect, FX_BOOL bAutoSize) { 28 FWL_ERR IFWL_Widget::GetWidgetRect(CFX_RectF& rect, FX_BOOL bAutoSize) {
29 return static_cast<CFWL_WidgetImp*>(GetImpl()) 29 return static_cast<CFWL_WidgetImp*>(GetImpl())
30 ->GetWidgetRect(rect, bAutoSize); 30 ->GetWidgetRect(rect, bAutoSize);
31 } 31 }
32 FWL_ERR IFWL_Widget::GetGlobalRect(CFX_RectF& rect) { 32 FWL_ERR IFWL_Widget::GetGlobalRect(CFX_RectF& rect) {
33 return static_cast<CFWL_WidgetImp*>(GetImpl())->GetGlobalRect(rect); 33 return static_cast<CFWL_WidgetImp*>(GetImpl())->GetGlobalRect(rect);
34 } 34 }
35 FWL_ERR IFWL_Widget::SetWidgetRect(const CFX_RectF& rect) { 35 FWL_ERR IFWL_Widget::SetWidgetRect(const CFX_RectF& rect) {
36 return static_cast<CFWL_WidgetImp*>(GetImpl())->SetWidgetRect(rect); 36 return static_cast<CFWL_WidgetImp*>(GetImpl())->SetWidgetRect(rect);
(...skipping 1055 matching lines...) Expand 10 before | Expand all | Expand 10 after
1092 FWL_ERR FWL_EnabelWidget(IFWL_Widget* widget, FX_BOOL bEnable) { 1092 FWL_ERR FWL_EnabelWidget(IFWL_Widget* widget, FX_BOOL bEnable) {
1093 widget->SetStates(FWL_WGTSTATE_Disabled, !bEnable); 1093 widget->SetStates(FWL_WGTSTATE_Disabled, !bEnable);
1094 IFWL_WidgetMgr* widgetMgr = FWL_GetWidgetMgr(); 1094 IFWL_WidgetMgr* widgetMgr = FWL_GetWidgetMgr();
1095 IFWL_Widget* child = widgetMgr->GetWidget(widget, FWL_WGTRELATION_FirstChild); 1095 IFWL_Widget* child = widgetMgr->GetWidget(widget, FWL_WGTRELATION_FirstChild);
1096 while (child) { 1096 while (child) {
1097 FWL_EnabelWidget(child, bEnable); 1097 FWL_EnabelWidget(child, bEnable);
1098 child = widgetMgr->GetWidget(child, FWL_WGTRELATION_NextSibling); 1098 child = widgetMgr->GetWidget(child, FWL_WGTRELATION_NextSibling);
1099 } 1099 }
1100 return FWL_ERR_Succeeded; 1100 return FWL_ERR_Succeeded;
1101 } 1101 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698