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

Issue 2530993002: Cleanup FWL Event and Message code. (Closed)

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

Description

Cleanup FWL Event and Message code. This CL removes any CFWL_Evt classes for which nothing was listening to the events. For events with no parameters the override class was removed and the event type passed into CFWL_Event which is used instead. Any event or message parameters which are un-read have been removed. Committed: https://pdfium.googlesource.com/pdfium/+/4614b45a6592530c4cd930f139c366ce20d359f4

Patch Set 1 #

Total comments: 12

Patch Set 2 : Cleanup #

Total comments: 12

Patch Set 3 : Review feedback #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+332 lines, -988 lines) Patch
M BUILD.gn View 1 1 chunk +0 lines, -24 lines 0 comments Download
M xfa/fwl/core/cfwl_barcode.cpp View 1 2 1 chunk +1 line, -1 line 0 comments Download
M xfa/fwl/core/cfwl_checkbox.cpp View 1 2 5 chunks +8 lines, -11 lines 0 comments Download
M xfa/fwl/core/cfwl_combobox.cpp View 1 2 12 chunks +23 lines, -37 lines 0 comments Download
M xfa/fwl/core/cfwl_comboboxproxy.cpp View 1 2 2 chunks +4 lines, -4 lines 0 comments Download
M xfa/fwl/core/cfwl_comboedit.cpp View 1 2 1 chunk +4 lines, -4 lines 0 comments Download
M xfa/fwl/core/cfwl_combolist.cpp View 1 2 2 chunks +6 lines, -6 lines 0 comments Download
M xfa/fwl/core/cfwl_datetimeedit.cpp View 1 2 1 chunk +4 lines, -5 lines 0 comments Download
M xfa/fwl/core/cfwl_datetimepicker.cpp View 1 2 6 chunks +9 lines, -12 lines 0 comments Download
M xfa/fwl/core/cfwl_edit.h View 1 2 1 chunk +3 lines, -1 line 0 comments Download
M xfa/fwl/core/cfwl_edit.cpp View 1 2 10 chunks +26 lines, -37 lines 0 comments Download
M xfa/fwl/core/cfwl_event.h View 1 2 1 chunk +23 lines, -25 lines 2 comments Download
M xfa/fwl/core/cfwl_event.cpp View 1 2 1 chunk +10 lines, -5 lines 0 comments Download
D xfa/fwl/core/cfwl_evtcheckstatechanged.h View 1 chunk +0 lines, -20 lines 0 comments Download
D xfa/fwl/core/cfwl_evtcheckstatechanged.cpp View 1 chunk +0 lines, -15 lines 0 comments Download
M xfa/fwl/core/cfwl_evtcheckword.h View 1 2 1 chunk +1 line, -3 lines 0 comments Download
M xfa/fwl/core/cfwl_evtcheckword.cpp View 1 2 1 chunk +2 lines, -4 lines 0 comments Download
D xfa/fwl/core/cfwl_evtclick.h View 1 chunk +0 lines, -20 lines 0 comments Download
D xfa/fwl/core/cfwl_evtclick.cpp View 1 chunk +0 lines, -15 lines 0 comments Download
D xfa/fwl/core/cfwl_evtclose.h View 1 chunk +0 lines, -20 lines 0 comments Download
D xfa/fwl/core/cfwl_evtclose.cpp View 1 chunk +0 lines, -15 lines 0 comments Download
D xfa/fwl/core/cfwl_evteditchanged.h View 1 chunk +0 lines, -20 lines 0 comments Download
D xfa/fwl/core/cfwl_evteditchanged.cpp View 1 chunk +0 lines, -15 lines 0 comments Download
D xfa/fwl/core/cfwl_evtkey.h View 1 chunk +0 lines, -24 lines 0 comments Download
D xfa/fwl/core/cfwl_evtkey.cpp View 1 chunk +0 lines, -15 lines 0 comments Download
D xfa/fwl/core/cfwl_evtkillfocus.h View 1 chunk +0 lines, -22 lines 0 comments Download
D xfa/fwl/core/cfwl_evtkillfocus.cpp View 1 chunk +0 lines, -15 lines 0 comments Download
M xfa/fwl/core/cfwl_evtmouse.h View 1 2 1 chunk +2 lines, -6 lines 0 comments Download
M xfa/fwl/core/cfwl_evtmouse.cpp View 1 2 1 chunk +5 lines, -5 lines 0 comments Download
D xfa/fwl/core/cfwl_evtmousewheel.h View 1 chunk +0 lines, -26 lines 0 comments Download
D xfa/fwl/core/cfwl_evtmousewheel.cpp View 1 chunk +0 lines, -15 lines 0 comments Download
D xfa/fwl/core/cfwl_evtpostdropdown.h View 1 chunk +0 lines, -20 lines 0 comments Download
D xfa/fwl/core/cfwl_evtpostdropdown.cpp View 1 chunk +0 lines, -15 lines 0 comments Download
D xfa/fwl/core/cfwl_evtpredropdown.h View 1 chunk +0 lines, -20 lines 0 comments Download
D xfa/fwl/core/cfwl_evtpredropdown.cpp View 1 chunk +0 lines, -15 lines 0 comments Download
M xfa/fwl/core/cfwl_evtscroll.h View 1 2 1 chunk +15 lines, -18 lines 0 comments Download
M xfa/fwl/core/cfwl_evtscroll.cpp View 1 2 1 chunk +2 lines, -5 lines 0 comments Download
M xfa/fwl/core/cfwl_evtselectchanged.h View 1 2 1 chunk +1 line, -3 lines 0 comments Download
M xfa/fwl/core/cfwl_evtselectchanged.cpp View 1 2 1 chunk +2 lines, -5 lines 0 comments Download
D xfa/fwl/core/cfwl_evtsetfocus.h View 1 chunk +0 lines, -22 lines 0 comments Download
D xfa/fwl/core/cfwl_evtsetfocus.cpp View 1 chunk +0 lines, -15 lines 0 comments Download
D xfa/fwl/core/cfwl_evtsizechanged.h View 1 chunk +0 lines, -24 lines 0 comments Download
D xfa/fwl/core/cfwl_evtsizechanged.cpp View 1 chunk +0 lines, -15 lines 0 comments Download
M xfa/fwl/core/cfwl_evttextchanged.h View 1 2 1 chunk +1 line, -6 lines 0 comments Download
M xfa/fwl/core/cfwl_evttextchanged.cpp View 1 2 1 chunk +2 lines, -5 lines 0 comments Download
D xfa/fwl/core/cfwl_evttextfull.h View 1 chunk +0 lines, -20 lines 0 comments Download
D xfa/fwl/core/cfwl_evttextfull.cpp View 1 chunk +0 lines, -15 lines 0 comments Download
M xfa/fwl/core/cfwl_evtvalidate.h View 1 2 1 chunk +1 line, -4 lines 0 comments Download
M xfa/fwl/core/cfwl_evtvalidate.cpp View 1 2 1 chunk +2 lines, -5 lines 0 comments Download
M xfa/fwl/core/cfwl_form.cpp View 1 2 3 chunks +4 lines, -5 lines 0 comments Download
M xfa/fwl/core/cfwl_listbox.h View 1 2 1 chunk +3 lines, -1 line 0 comments Download
M xfa/fwl/core/cfwl_listbox.cpp View 1 2 4 chunks +18 lines, -19 lines 0 comments Download
M xfa/fwl/core/cfwl_message.h View 1 2 1 chunk +9 lines, -11 lines 0 comments Download
M xfa/fwl/core/cfwl_message.cpp View 1 2 1 chunk +13 lines, -6 lines 0 comments Download
M xfa/fwl/core/cfwl_monthcalendar.cpp View 1 2 1 chunk +5 lines, -6 lines 0 comments Download
M xfa/fwl/core/cfwl_msgkey.h View 1 2 1 chunk +1 line, -2 lines 0 comments Download
M xfa/fwl/core/cfwl_msgkey.cpp View 1 2 1 chunk +2 lines, -5 lines 0 comments Download
M xfa/fwl/core/cfwl_msgkillfocus.h View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
M xfa/fwl/core/cfwl_msgkillfocus.cpp View 1 2 1 chunk +6 lines, -5 lines 0 comments Download
M xfa/fwl/core/cfwl_msgmouse.h View 1 2 1 chunk +1 line, -2 lines 0 comments Download
M xfa/fwl/core/cfwl_msgmouse.cpp View 1 2 1 chunk +2 lines, -5 lines 0 comments Download
M xfa/fwl/core/cfwl_msgmousewheel.h View 1 2 1 chunk +1 line, -2 lines 0 comments Download
M xfa/fwl/core/cfwl_msgmousewheel.cpp View 1 2 1 chunk +3 lines, -5 lines 0 comments Download
M xfa/fwl/core/cfwl_msgsetfocus.h View 1 2 1 chunk +1 line, -4 lines 0 comments Download
M xfa/fwl/core/cfwl_msgsetfocus.cpp View 1 2 1 chunk +3 lines, -5 lines 0 comments Download
M xfa/fwl/core/cfwl_notedriver.cpp View 1 2 5 chunks +11 lines, -16 lines 0 comments Download
M xfa/fwl/core/cfwl_pushbutton.cpp View 1 2 5 chunks +14 lines, -21 lines 0 comments Download
M xfa/fwl/core/cfwl_scrollbar.h View 1 2 2 chunks +2 lines, -2 lines 0 comments Download
M xfa/fwl/core/cfwl_scrollbar.cpp View 1 2 5 chunks +17 lines, -19 lines 0 comments Download
M xfa/fwl/core/cfwl_spinbutton.h View 1 2 chunks +0 lines, -2 lines 0 comments Download
M xfa/fwl/core/cfwl_spinbutton.cpp View 1 2 6 chunks +9 lines, -13 lines 0 comments Download
M xfa/fwl/core/cfwl_widget.h View 1 chunk +0 lines, -1 line 0 comments Download
M xfa/fwl/core/cfwl_widget.cpp View 1 2 4 chunks +7 lines, -83 lines 0 comments Download
M xfa/fxfa/app/xfa_ffcheckbutton.cpp View 1 2 2 chunks +3 lines, -4 lines 0 comments Download
M xfa/fxfa/app/xfa_ffchoicelist.cpp View 1 2 2 chunks +7 lines, -7 lines 0 comments Download
M xfa/fxfa/app/xfa_fffield.cpp View 1 2 17 chunks +19 lines, -39 lines 0 comments Download
M xfa/fxfa/app/xfa_ffimageedit.cpp View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
M xfa/fxfa/app/xfa_fftextedit.cpp View 1 2 6 chunks +10 lines, -15 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 29 (16 generated)
dsinclair
PTAL.
4 years ago (2016-11-25 04:37:41 UTC) #4
npm
https://codereview.chromium.org/2530993002/diff/1/xfa/fwl/core/cfwl_widget.cpp File xfa/fwl/core/cfwl_widget.cpp (left): https://codereview.chromium.org/2530993002/diff/1/xfa/fwl/core/cfwl_widget.cpp#oldcode92 xfa/fwl/core/cfwl_widget.cpp:92: if (FXSYS_fabs(rtOld.width - rect.width) > 0.5f || Why is ...
4 years ago (2016-11-28 15:16:57 UTC) #7
Tom Sepez
https://codereview.chromium.org/2530993002/diff/1/xfa/fwl/core/cfwl_event.h File xfa/fwl/core/cfwl_event.h (right): https://codereview.chromium.org/2530993002/diff/1/xfa/fwl/core/cfwl_event.h#newcode18 xfa/fwl/core/cfwl_event.h:18: CheckStateChanged, Maybe want None = 0, worry about implicit ...
4 years ago (2016-11-28 18:26:33 UTC) #8
dsinclair
https://codereview.chromium.org/2530993002/diff/1/xfa/fwl/core/cfwl_event.h File xfa/fwl/core/cfwl_event.h (right): https://codereview.chromium.org/2530993002/diff/1/xfa/fwl/core/cfwl_event.h#newcode18 xfa/fwl/core/cfwl_event.h:18: CheckStateChanged, On 2016/11/28 18:26:33, Tom Sepez wrote: > Maybe ...
4 years ago (2016-12-05 20:14:05 UTC) #9
npm
https://codereview.chromium.org/2530993002/diff/1/xfa/fwl/core/cfwl_widget.cpp File xfa/fwl/core/cfwl_widget.cpp (left): https://codereview.chromium.org/2530993002/diff/1/xfa/fwl/core/cfwl_widget.cpp#oldcode92 xfa/fwl/core/cfwl_widget.cpp:92: if (FXSYS_fabs(rtOld.width - rect.width) > 0.5f || On 2016/12/05 ...
4 years ago (2016-12-05 20:42:38 UTC) #10
dsinclair
https://codereview.chromium.org/2530993002/diff/1/xfa/fwl/core/cfwl_widget.cpp File xfa/fwl/core/cfwl_widget.cpp (left): https://codereview.chromium.org/2530993002/diff/1/xfa/fwl/core/cfwl_widget.cpp#oldcode92 xfa/fwl/core/cfwl_widget.cpp:92: if (FXSYS_fabs(rtOld.width - rect.width) > 0.5f || On 2016/12/05 ...
4 years ago (2016-12-06 14:05:50 UTC) #11
dsinclair
ping
4 years ago (2016-12-07 13:55:16 UTC) #16
Tom Sepez
Up to you how much of this you want to do. LGTM otherwise. If you ...
4 years ago (2016-12-07 18:48:27 UTC) #17
dsinclair
PTAL. I agree about the class names, but am holding off for a followup. There ...
4 years ago (2016-12-07 20:02:02 UTC) #18
Tom Sepez
lgtm https://codereview.chromium.org/2530993002/diff/40001/xfa/fwl/core/cfwl_event.h File xfa/fwl/core/cfwl_event.h (right): https://codereview.chromium.org/2530993002/diff/40001/xfa/fwl/core/cfwl_event.h#newcode22 xfa/fwl/core/cfwl_event.h:22: enum class Type { nit: given that we're ...
4 years ago (2016-12-08 00:56:46 UTC) #23
dsinclair
https://codereview.chromium.org/2530993002/diff/40001/xfa/fwl/core/cfwl_event.h File xfa/fwl/core/cfwl_event.h (right): https://codereview.chromium.org/2530993002/diff/40001/xfa/fwl/core/cfwl_event.h#newcode22 xfa/fwl/core/cfwl_event.h:22: enum class Type { On 2016/12/08 00:56:46, Tom Sepez ...
4 years ago (2016-12-08 00:59:54 UTC) #24
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/2530993002/40001
4 years ago (2016-12-08 01:01:29 UTC) #26
commit-bot: I haz the power
4 years ago (2016-12-08 01:02:03 UTC) #29
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://pdfium.googlesource.com/pdfium/+/4614b45a6592530c4cd930f139c366ce20d3...

Powered by Google App Engine
This is Rietveld 408576698