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

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

Issue 1803723002: Move xfa/src up to xfa/. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Rebase to master 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
« no previous file with comments | « xfa/fwl/core/fwl_widgetimp.h ('k') | xfa/fwl/core/fwl_widgetmgrimp.h » ('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/src/fwl/core/fwl_widgetimp.h" 7 #include "xfa/fwl/core/fwl_widgetimp.h"
8 8
9 #include <algorithm> 9 #include <algorithm>
10 10
11 #include "xfa/fde/tto/fde_textout.h"
12 #include "xfa/fwl/core/fwl_appimp.h"
13 #include "xfa/fwl/core/fwl_noteimp.h"
14 #include "xfa/fwl/core/fwl_targetimp.h"
15 #include "xfa/fwl/core/fwl_threadimp.h"
16 #include "xfa/fwl/core/fwl_widgetmgrimp.h"
11 #include "xfa/include/fwl/adapter/fwl_adapternative.h" 17 #include "xfa/include/fwl/adapter/fwl_adapternative.h"
12 #include "xfa/include/fwl/adapter/fwl_adapterthreadmgr.h" 18 #include "xfa/include/fwl/adapter/fwl_adapterthreadmgr.h"
13 #include "xfa/include/fwl/adapter/fwl_adapterwidgetmgr.h" 19 #include "xfa/include/fwl/adapter/fwl_adapterwidgetmgr.h"
14 #include "xfa/include/fwl/basewidget/fwl_combobox.h" 20 #include "xfa/include/fwl/basewidget/fwl_combobox.h"
15 #include "xfa/include/fwl/basewidget/fwl_datetimepicker.h" 21 #include "xfa/include/fwl/basewidget/fwl_datetimepicker.h"
16 #include "xfa/include/fwl/basewidget/fwl_menu.h" 22 #include "xfa/include/fwl/basewidget/fwl_menu.h"
17 #include "xfa/include/fwl/core/fwl_app.h" 23 #include "xfa/include/fwl/core/fwl_app.h"
18 #include "xfa/include/fwl/core/fwl_content.h" 24 #include "xfa/include/fwl/core/fwl_content.h"
19 #include "xfa/include/fwl/core/fwl_form.h" 25 #include "xfa/include/fwl/core/fwl_form.h"
20 #include "xfa/include/fwl/core/fwl_theme.h" 26 #include "xfa/include/fwl/core/fwl_theme.h"
21 #include "xfa/src/fde/tto/fde_textout.h"
22 #include "xfa/src/fwl/core/fwl_appimp.h"
23 #include "xfa/src/fwl/core/fwl_noteimp.h"
24 #include "xfa/src/fwl/core/fwl_targetimp.h"
25 #include "xfa/src/fwl/core/fwl_threadimp.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
« no previous file with comments | « xfa/fwl/core/fwl_widgetimp.h ('k') | xfa/fwl/core/fwl_widgetmgrimp.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698