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

Issue 2560873005: Cleanup CFWL_Widget code to return CFX_RectFs where appropriate (Closed)

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

Description

Cleanup CFWL_Widget code to return CFX_RectFs where appropriate This Cl changes the various Get*Rect methods in CFWL_Widget to return CFX_RectF classes instead of taking an out parameter. The Repaint method is split into Repaint() and RepaintRect() in order to change the param to a const CFX_RectF& from a CFX_RectF*. Committed: https://pdfium.googlesource.com/pdfium/+/43ac44cbf52076fd2354d5276c95d5b4b4a06d64

Patch Set 1 #

Total comments: 7

Patch Set 2 : Review feedback #

Unified diffs Side-by-side diffs Delta from patch set Stats (+140 lines, -164 lines) Patch
M xfa/fwl/cfwl_caret.cpp View 1 chunk +1 line, -1 line 0 comments Download
M xfa/fwl/cfwl_checkbox.cpp View 8 chunks +8 lines, -8 lines 0 comments Download
M xfa/fwl/cfwl_combobox.cpp View 10 chunks +12 lines, -12 lines 0 comments Download
M xfa/fwl/cfwl_comboedit.cpp View 1 chunk +1 line, -1 line 0 comments Download
M xfa/fwl/cfwl_combolist.cpp View 2 chunks +2 lines, -2 lines 0 comments Download
M xfa/fwl/cfwl_datetimeedit.cpp View 1 chunk +1 line, -1 line 0 comments Download
M xfa/fwl/cfwl_datetimepicker.cpp View 9 chunks +13 lines, -13 lines 0 comments Download
M xfa/fwl/cfwl_edit.cpp View 10 chunks +11 lines, -18 lines 0 comments Download
M xfa/fwl/cfwl_form.h View 1 chunk +1 line, -1 line 0 comments Download
M xfa/fwl/cfwl_form.cpp View 6 chunks +9 lines, -8 lines 0 comments Download
M xfa/fwl/cfwl_listbox.cpp View 6 chunks +6 lines, -6 lines 0 comments Download
M xfa/fwl/cfwl_monthcalendar.cpp View 6 chunks +10 lines, -10 lines 0 comments Download
M xfa/fwl/cfwl_picturebox.cpp View 1 chunk +1 line, -1 line 0 comments Download
M xfa/fwl/cfwl_pushbutton.cpp View 5 chunks +6 lines, -6 lines 0 comments Download
M xfa/fwl/cfwl_scrollbar.cpp View 6 chunks +6 lines, -6 lines 0 comments Download
M xfa/fwl/cfwl_spinbutton.cpp View 8 chunks +9 lines, -13 lines 0 comments Download
M xfa/fwl/cfwl_widget.h View 3 chunks +5 lines, -4 lines 0 comments Download
M xfa/fwl/cfwl_widget.cpp View 1 7 chunks +27 lines, -38 lines 0 comments Download
M xfa/fwl/cfwl_widgetmgr.h View 1 chunk +1 line, -1 line 0 comments Download
M xfa/fwl/cfwl_widgetmgr.cpp View 3 chunks +8 lines, -11 lines 0 comments Download
M xfa/fxfa/app/xfa_fwladapter.h View 1 chunk +1 line, -1 line 0 comments Download
M xfa/fxfa/app/xfa_fwladapter.cpp View 1 chunk +1 line, -2 lines 0 comments Download

Depends on Patchset:

Messages

Total messages: 14 (8 generated)
dsinclair
PTAL.
4 years ago (2016-12-08 16:05:39 UTC) #2
Tom Sepez
https://codereview.chromium.org/2560873005/diff/1/xfa/fwl/cfwl_widget.cpp File xfa/fwl/cfwl_widget.cpp (right): https://codereview.chromium.org/2560873005/diff/1/xfa/fwl/cfwl_widget.cpp#newcode168 xfa/fwl/cfwl_widget.cpp:168: if (HasEdge() && GetEdgeRect().Contains(fx, fy)) nice. https://codereview.chromium.org/2560873005/diff/1/xfa/fwl/cfwl_widget.cpp#newcode355 xfa/fwl/cfwl_widget.cpp:355: rect.left ...
4 years ago (2016-12-08 19:16:21 UTC) #7
dsinclair
https://codereview.chromium.org/2560873005/diff/1/xfa/fwl/cfwl_widget.cpp File xfa/fwl/cfwl_widget.cpp (right): https://codereview.chromium.org/2560873005/diff/1/xfa/fwl/cfwl_widget.cpp#newcode355 xfa/fwl/cfwl_widget.cpp:355: rect.left = rect.top = 0; On 2016/12/08 19:16:20, Tom ...
4 years ago (2016-12-08 19:20:47 UTC) #8
Tom Sepez
lgtm
4 years ago (2016-12-08 21:01:37 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/2560873005/20001
4 years ago (2016-12-08 21:52:29 UTC) #11
commit-bot: I haz the power
4 years ago (2016-12-08 22:05:18 UTC) #14
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://pdfium.googlesource.com/pdfium/+/43ac44cbf52076fd2354d5276c95d5b4b4a0...

Powered by Google App Engine
This is Rietveld 408576698