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

Issue 2459423003: Rename IFWL_Widget::SetDelegate (Closed)

Created:
4 years, 1 month ago by dsinclair
Modified:
4 years, 1 month ago
Reviewers:
Tom Sepez, npm
CC:
pdfium-reviews_googlegroups.com
Target Ref:
refs/heads/master
Project:
pdfium
Visibility:
Public.

Description

Rename IFWL_Widget::SetDelegate The ::SetDelegate method was misleading. The primary use was SetDelegate(nullptr) which returned the current delegate and didn't actually set anything. When a value was passed it would set the |m_pCurDelegate| not the |m_pDelegate|. This Cl breaks ::SetDelegate into ::GetCurrentDelegate and ::SetCurrentDelegate to make it clear what is happening and that this does not effect the |m_pDelegate| variable. Committed: https://pdfium.googlesource.com/pdfium/+/9ec22175f945d227e71c459e7e0b7c464159c18b

Patch Set 1 #

Total comments: 6

Patch Set 2 : Rebase to master #

Patch Set 3 : Review feedback #

Unified diffs Side-by-side diffs Delta from patch set Stats (+97 lines, -96 lines) Patch
M xfa/fwl/core/cfwl_widget.h View 1 chunk +2 lines, -2 lines 0 comments Download
M xfa/fwl/core/cfwl_widget.cpp View 1 2 2 chunks +6 lines, -6 lines 0 comments Download
M xfa/fwl/core/cfwl_widgetmgr.cpp View 2 chunks +5 lines, -8 lines 0 comments Download
M xfa/fwl/core/fwl_noteimp.cpp View 4 chunks +7 lines, -10 lines 0 comments Download
M xfa/fwl/core/ifwl_combobox.cpp View 6 chunks +9 lines, -16 lines 0 comments Download
M xfa/fwl/core/ifwl_combolist.cpp View 2 chunks +2 lines, -4 lines 0 comments Download
M xfa/fwl/core/ifwl_datetimecalendar.cpp View 1 chunk +1 line, -2 lines 0 comments Download
M xfa/fwl/core/ifwl_datetimeedit.cpp View 1 chunk +1 line, -2 lines 0 comments Download
M xfa/fwl/core/ifwl_datetimepicker.cpp View 4 chunks +4 lines, -9 lines 0 comments Download
M xfa/fwl/core/ifwl_form.cpp View 1 chunk +4 lines, -3 lines 0 comments Download
M xfa/fwl/core/ifwl_formproxy.cpp View 1 chunk +1 line, -2 lines 0 comments Download
M xfa/fwl/core/ifwl_listbox.cpp View 1 2 1 chunk +2 lines, -6 lines 0 comments Download
M xfa/fwl/core/ifwl_widget.h View 1 chunk +3 lines, -1 line 0 comments Download
M xfa/fwl/core/ifwl_widget.cpp View 3 chunks +9 lines, -13 lines 0 comments Download
M xfa/fxfa/app/xfa_ffbarcode.cpp View 1 chunk +4 lines, -1 line 0 comments Download
M xfa/fxfa/app/xfa_ffcheckbutton.cpp View 1 chunk +6 lines, -3 lines 0 comments Download
M xfa/fxfa/app/xfa_ffchoicelist.cpp View 2 chunks +8 lines, -2 lines 0 comments Download
M xfa/fxfa/app/xfa_ffimageedit.cpp View 1 chunk +4 lines, -1 line 0 comments Download
M xfa/fxfa/app/xfa_ffpushbutton.cpp View 1 chunk +3 lines, -1 line 0 comments Download
M xfa/fxfa/app/xfa_fftextedit.cpp View 4 chunks +16 lines, -4 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 13 (7 generated)
dsinclair
PTAL.
4 years, 1 month ago (2016-10-31 19:03:26 UTC) #2
Tom Sepez
Better. https://codereview.chromium.org/2459423003/diff/1/xfa/fwl/core/cfwl_widget.cpp File xfa/fwl/core/cfwl_widget.cpp (right): https://codereview.chromium.org/2459423003/diff/1/xfa/fwl/core/cfwl_widget.cpp#newcode138 xfa/fwl/core/cfwl_widget.cpp:138: if (!m_pIface) nit: maybe invert the test and ...
4 years, 1 month ago (2016-10-31 19:12:33 UTC) #5
dsinclair
https://codereview.chromium.org/2459423003/diff/1/xfa/fwl/core/cfwl_widget.cpp File xfa/fwl/core/cfwl_widget.cpp (right): https://codereview.chromium.org/2459423003/diff/1/xfa/fwl/core/cfwl_widget.cpp#newcode138 xfa/fwl/core/cfwl_widget.cpp:138: if (!m_pIface) On 2016/10/31 19:12:33, Tom Sepez wrote: > ...
4 years, 1 month ago (2016-10-31 19:54:50 UTC) #8
Tom Sepez
lgtm
4 years, 1 month ago (2016-10-31 21:55:33 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2459423003/40001
4 years, 1 month ago (2016-11-01 15:21:07 UTC) #11
commit-bot: I haz the power
4 years, 1 month ago (2016-11-01 15:33:08 UTC) #13
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://pdfium.googlesource.com/pdfium/+/9ec22175f945d227e71c459e7e0b7c464159...

Powered by Google App Engine
This is Rietveld 408576698