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

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

Issue 1827923002: Move xfa/include/fwl/{core,basewidget} to xfa/fwl/{core,basewidget}. (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/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" 11 #include "xfa/fde/tto/fde_textout.h"
12 #include "xfa/fwl/basewidget/ifwl_combobox.h"
13 #include "xfa/fwl/basewidget/ifwl_datetimepicker.h"
14 #include "xfa/fwl/core/cfwl_message.h"
15 #include "xfa/fwl/core/cfwl_themebackground.h"
16 #include "xfa/fwl/core/cfwl_themepart.h"
17 #include "xfa/fwl/core/cfwl_themetext.h"
12 #include "xfa/fwl/core/fwl_appimp.h" 18 #include "xfa/fwl/core/fwl_appimp.h"
13 #include "xfa/fwl/core/fwl_noteimp.h" 19 #include "xfa/fwl/core/fwl_noteimp.h"
14 #include "xfa/fwl/core/fwl_targetimp.h" 20 #include "xfa/fwl/core/fwl_targetimp.h"
15 #include "xfa/fwl/core/fwl_threadimp.h" 21 #include "xfa/fwl/core/fwl_threadimp.h"
16 #include "xfa/fwl/core/fwl_widgetmgrimp.h" 22 #include "xfa/fwl/core/fwl_widgetmgrimp.h"
17 #include "xfa/include/fwl/adapter/fwl_adapternative.h" 23 #include "xfa/fwl/core/ifwl_adapternative.h"
18 #include "xfa/include/fwl/adapter/fwl_adapterthreadmgr.h" 24 #include "xfa/fwl/core/ifwl_adapterthreadmgr.h"
19 #include "xfa/include/fwl/adapter/fwl_adapterwidgetmgr.h" 25 #include "xfa/fwl/core/ifwl_adapterwidgetmgr.h"
20 #include "xfa/include/fwl/basewidget/fwl_combobox.h" 26 #include "xfa/fwl/core/ifwl_app.h"
21 #include "xfa/include/fwl/basewidget/fwl_datetimepicker.h" 27 #include "xfa/fwl/core/ifwl_content.h"
22 #include "xfa/include/fwl/basewidget/fwl_menu.h" 28 #include "xfa/fwl/core/ifwl_custom.h"
23 #include "xfa/include/fwl/core/fwl_app.h" 29 #include "xfa/fwl/core/ifwl_form.h"
24 #include "xfa/include/fwl/core/fwl_content.h" 30 #include "xfa/fwl/core/ifwl_proxy.h"
25 #include "xfa/include/fwl/core/fwl_form.h" 31 #include "xfa/fwl/core/ifwl_themeprovider.h"
26 #include "xfa/include/fwl/core/fwl_theme.h" 32
33 #define FWL_CLASSHASH_Menu 3957949655
34 #define FWL_STYLEEXT_MNU_Vert (1L << 0)
27 35
28 FWL_ERR IFWL_Widget::GetWidgetRect(CFX_RectF& rect, FX_BOOL bAutoSize) { 36 FWL_ERR IFWL_Widget::GetWidgetRect(CFX_RectF& rect, FX_BOOL bAutoSize) {
29 return static_cast<CFWL_WidgetImp*>(GetImpl()) 37 return static_cast<CFWL_WidgetImp*>(GetImpl())
30 ->GetWidgetRect(rect, bAutoSize); 38 ->GetWidgetRect(rect, bAutoSize);
31 } 39 }
32 FWL_ERR IFWL_Widget::GetGlobalRect(CFX_RectF& rect) { 40 FWL_ERR IFWL_Widget::GetGlobalRect(CFX_RectF& rect) {
33 return static_cast<CFWL_WidgetImp*>(GetImpl())->GetGlobalRect(rect); 41 return static_cast<CFWL_WidgetImp*>(GetImpl())->GetGlobalRect(rect);
34 } 42 }
35 FWL_ERR IFWL_Widget::SetWidgetRect(const CFX_RectF& rect) { 43 FWL_ERR IFWL_Widget::SetWidgetRect(const CFX_RectF& rect) {
36 return static_cast<CFWL_WidgetImp*>(GetImpl())->SetWidgetRect(rect); 44 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) { 1100 FWL_ERR FWL_EnabelWidget(IFWL_Widget* widget, FX_BOOL bEnable) {
1093 widget->SetStates(FWL_WGTSTATE_Disabled, !bEnable); 1101 widget->SetStates(FWL_WGTSTATE_Disabled, !bEnable);
1094 IFWL_WidgetMgr* widgetMgr = FWL_GetWidgetMgr(); 1102 IFWL_WidgetMgr* widgetMgr = FWL_GetWidgetMgr();
1095 IFWL_Widget* child = widgetMgr->GetWidget(widget, FWL_WGTRELATION_FirstChild); 1103 IFWL_Widget* child = widgetMgr->GetWidget(widget, FWL_WGTRELATION_FirstChild);
1096 while (child) { 1104 while (child) {
1097 FWL_EnabelWidget(child, bEnable); 1105 FWL_EnabelWidget(child, bEnable);
1098 child = widgetMgr->GetWidget(child, FWL_WGTRELATION_NextSibling); 1106 child = widgetMgr->GetWidget(child, FWL_WGTRELATION_NextSibling);
1099 } 1107 }
1100 return FWL_ERR_Succeeded; 1108 return FWL_ERR_Succeeded;
1101 } 1109 }
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