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

Issue 2004213002: Remove IWFL_WidgetMgr in favor of CFWL_WidgetMgr (Closed)

Created:
4 years, 7 months ago by Tom Sepez
Modified:
4 years, 7 months ago
Reviewers:
Lei Zhang
CC:
pdfium-reviews_googlegroups.com
Base URL:
https://pdfium.googlesource.com/pdfium.git@master
Target Ref:
refs/heads/master
Project:
pdfium
Visibility:
Public.

Description

Remove IWFL_WidgetMgr in favor of CFWL_WidgetMgr. The pure virtual class isn't buying us anything, and is costing us an otherwise unneeded vtable. Fix pre-existing presubmit warning in fwl_noteimp.cpp:88: If statement had no body and no else clause ... Remove switch on enum() and make separate GetWidget() methods. Committed: https://pdfium.googlesource.com/pdfium/+/1529756d0d62638ea0fc7965416bef717ff47413

Patch Set 1 #

Total comments: 2

Patch Set 2 : Remove IFWL_WidgetMgr entirely, #

Patch Set 3 : Kill unused methods. #

Patch Set 4 : Replace switch(enum) with dedicated methods. #

Patch Set 5 : Fix logic error in sibling widget code #

Patch Set 6 : Fix pre-existing presubmit warning #

Patch Set 7 : Fix mac build. #

Total comments: 6

Patch Set 8 : Explicit ctor #

Unified diffs Side-by-side diffs Delta from patch set Stats (+184 lines, -265 lines) Patch
M BUILD.gn View 1 2 3 4 5 6 1 chunk +0 lines, -1 line 0 comments Download
M xfa.gyp View 1 1 chunk +0 lines, -1 line 0 comments Download
M xfa/fwl/basewidget/fwl_checkboximp.cpp View 1 1 chunk +1 line, -2 lines 0 comments Download
M xfa/fwl/basewidget/fwl_editimp.cpp View 1 2 3 1 chunk +1 line, -2 lines 0 comments Download
M xfa/fwl/core/fwl_appimp.h View 1 2 chunks +1 line, -2 lines 0 comments Download
M xfa/fwl/core/fwl_appimp.cpp View 1 2 chunks +3 lines, -4 lines 0 comments Download
M xfa/fwl/core/fwl_formimp.cpp View 1 2 3 4 5 6 6 chunks +10 lines, -11 lines 0 comments Download
M xfa/fwl/core/fwl_noteimp.cpp View 1 2 3 4 5 12 chunks +29 lines, -36 lines 0 comments Download
M xfa/fwl/core/fwl_widgetimp.cpp View 1 2 3 11 chunks +23 lines, -26 lines 0 comments Download
M xfa/fwl/core/fwl_widgetmgrimp.h View 1 2 3 4 5 6 7 3 chunks +19 lines, -16 lines 0 comments Download
M xfa/fwl/core/fwl_widgetmgrimp.cpp View 1 2 3 4 15 chunks +90 lines, -109 lines 0 comments Download
M xfa/fwl/core/ifwl_app.h View 1 2 chunks +2 lines, -2 lines 0 comments Download
M xfa/fwl/core/ifwl_widgetmgr.h View 1 1 chunk +0 lines, -47 lines 0 comments Download
M xfa/fwl/lightwidget/cfwl_widget.cpp View 1 1 chunk +1 line, -1 line 0 comments Download
M xfa/fwl/theme/cfwl_widgettp.cpp View 1 2 3 2 chunks +4 lines, -5 lines 0 comments Download

Messages

Total messages: 18 (7 generated)
Tom Sepez
Lei, for review.
4 years, 7 months ago (2016-05-23 21:53:16 UTC) #3
Lei Zhang
lgtm https://codereview.chromium.org/2004213002/diff/1/xfa/fwl/lightwidget/cfwl_widget.cpp File xfa/fwl/lightwidget/cfwl_widget.cpp (right): https://codereview.chromium.org/2004213002/diff/1/xfa/fwl/lightwidget/cfwl_widget.cpp#newcode220 xfa/fwl/lightwidget/cfwl_widget.cpp:220: m_pWidgetMgr = static_cast<CFWL_WidgetMgr*>(IFWL_WidgetMgr::GetInstance()); Do we want to get ...
4 years, 7 months ago (2016-05-23 21:57:20 UTC) #4
Tom Sepez
https://codereview.chromium.org/2004213002/diff/1/xfa/fwl/lightwidget/cfwl_widget.cpp File xfa/fwl/lightwidget/cfwl_widget.cpp (right): https://codereview.chromium.org/2004213002/diff/1/xfa/fwl/lightwidget/cfwl_widget.cpp#newcode220 xfa/fwl/lightwidget/cfwl_widget.cpp:220: m_pWidgetMgr = static_cast<CFWL_WidgetMgr*>(IFWL_WidgetMgr::GetInstance()); On 2016/05/23 21:57:20, Lei Zhang wrote: ...
4 years, 7 months ago (2016-05-23 22:02:55 UTC) #5
Tom Sepez
Lei, PTAL.
4 years, 7 months ago (2016-05-24 00:22:07 UTC) #8
Lei Zhang
Do you want to rename fwl_widgetmgrimp.{cpp,h} to cfwl_widgetmgr{cpp,h}? https://codereview.chromium.org/2004213002/diff/120001/xfa/fwl/core/fwl_widgetmgrimp.h File xfa/fwl/core/fwl_widgetmgrimp.h (right): https://codereview.chromium.org/2004213002/diff/120001/xfa/fwl/core/fwl_widgetmgrimp.h#newcode64 xfa/fwl/core/fwl_widgetmgrimp.h:64: CFWL_WidgetMgr(CXFA_FFApp* ...
4 years, 7 months ago (2016-05-24 00:36:11 UTC) #9
Lei Zhang
https://codereview.chromium.org/2004213002/diff/120001/xfa/fwl/core/fwl_widgetmgrimp.h File xfa/fwl/core/fwl_widgetmgrimp.h (right): https://codereview.chromium.org/2004213002/diff/120001/xfa/fwl/core/fwl_widgetmgrimp.h#newcode77 xfa/fwl/core/fwl_widgetmgrimp.h:77: FX_BOOL SetWidgetIndex(IFWL_Widget* pWidget, int32_t nIndex); On 2016/05/24 00:36:10, Lei ...
4 years, 7 months ago (2016-05-24 00:36:51 UTC) #10
Lei Zhang
https://codereview.chromium.org/2004213002/diff/120001/xfa/fwl/core/fwl_widgetmgrimp.cpp File xfa/fwl/core/fwl_widgetmgrimp.cpp (right): https://codereview.chromium.org/2004213002/diff/120001/xfa/fwl/core/fwl_widgetmgrimp.cpp#newcode421 xfa/fwl/core/fwl_widgetmgrimp.cpp:421: ++iRet; Umm, right.
4 years, 7 months ago (2016-05-24 00:40:00 UTC) #11
Tom Sepez
https://codereview.chromium.org/2004213002/diff/120001/xfa/fwl/core/fwl_widgetmgrimp.h File xfa/fwl/core/fwl_widgetmgrimp.h (right): https://codereview.chromium.org/2004213002/diff/120001/xfa/fwl/core/fwl_widgetmgrimp.h#newcode64 xfa/fwl/core/fwl_widgetmgrimp.h:64: CFWL_WidgetMgr(CXFA_FFApp* pAdapterNative); On 2016/05/24 00:36:10, Lei Zhang wrote: > ...
4 years, 7 months ago (2016-05-24 16:27:15 UTC) #12
Tom Sepez
On 2016/05/24 00:36:11, Lei Zhang wrote: > Do you want to rename fwl_widgetmgrimp.{cpp,h} to cfwl_widgetmgr{cpp,h}? ...
4 years, 7 months ago (2016-05-24 16:28:22 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2004213002/140001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/2004213002/140001
4 years, 7 months ago (2016-05-24 16:28:41 UTC) #16
commit-bot: I haz the power
4 years, 7 months ago (2016-05-24 16:46:07 UTC) #18
Message was sent while issue was closed.
Committed patchset #8 (id:140001) as
https://pdfium.googlesource.com/pdfium/+/1529756d0d62638ea0fc7965416bef717ff4...

Powered by Google App Engine
This is Rietveld 408576698