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

Issue 2010923002: Add opaque "layout item" to widgets for caller's use. (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

Add opaque "layout item" to widgets for caller's use. This avoids another use of CFX_PrivateData. Note that in the old code, we'd be calling through a m_pImpl onto the same underlying object as we passed as the "key" argument when setting the value, which explains why the get calls, happening one object lower, pass the same argument as which they are being inovked against. Committed: https://pdfium.googlesource.com/pdfium/+/54ab2343c338f55735c37ed6751040791e1df1e2

Patch Set 1 #

Patch Set 2 : re-upload #

Patch Set 3 : Rebased #

Total comments: 2

Patch Set 4 : Missed one. #

Total comments: 2

Patch Set 5 : Cast to FFWidget. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+67 lines, -41 lines) Patch
M xfa/fwl/basewidget/fwl_editimp.cpp View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M xfa/fwl/core/fwl_widgetimp.h View 1 2 2 chunks +3 lines, -0 lines 0 comments Download
M xfa/fwl/core/fwl_widgetimp.cpp View 1 2 2 chunks +26 lines, -13 lines 0 comments Download
M xfa/fwl/core/ifwl_widget.h View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M xfa/fwl/lightwidget/cfwl_widget.h View 1 chunk +3 lines, -0 lines 0 comments Download
M xfa/fwl/lightwidget/cfwl_widget.cpp View 2 chunks +10 lines, -3 lines 0 comments Download
M xfa/fxfa/app/xfa_ffbarcode.cpp View 1 chunk +1 line, -1 line 0 comments Download
M xfa/fxfa/app/xfa_ffcheckbutton.cpp View 1 chunk +2 lines, -5 lines 0 comments Download
M xfa/fxfa/app/xfa_ffchoicelist.cpp View 2 chunks +2 lines, -2 lines 0 comments Download
M xfa/fxfa/app/xfa_ffimageedit.cpp View 1 chunk +1 line, -1 line 0 comments Download
M xfa/fxfa/app/xfa_ffpushbutton.cpp View 1 chunk +1 line, -1 line 0 comments Download
M xfa/fxfa/app/xfa_fftextedit.cpp View 4 chunks +4 lines, -4 lines 0 comments Download
M xfa/fxfa/app/xfa_fwladapter.cpp View 1 2 3 4 2 chunks +6 lines, -4 lines 0 comments Download
M xfa/fxfa/app/xfa_fwltheme.cpp View 1 chunk +5 lines, -6 lines 0 comments Download

Messages

Total messages: 13 (5 generated)
Tom Sepez
Lei, for review. https://codereview.chromium.org/2010923002/diff/40001/xfa/fwl/core/fwl_widgetimp.h File xfa/fwl/core/fwl_widgetimp.h (right): https://codereview.chromium.org/2010923002/diff/40001/xfa/fwl/core/fwl_widgetimp.h#newcode167 xfa/fwl/core/fwl_widgetimp.h:167: void* m_pLayoutItem; Note: went with void* ...
4 years, 7 months ago (2016-05-26 17:09:44 UTC) #4
Lei Zhang
https://codereview.chromium.org/2010923002/diff/40001/xfa/fwl/core/fwl_widgetimp.h File xfa/fwl/core/fwl_widgetimp.h (right): https://codereview.chromium.org/2010923002/diff/40001/xfa/fwl/core/fwl_widgetimp.h#newcode167 xfa/fwl/core/fwl_widgetimp.h:167: void* m_pLayoutItem; On 2016/05/26 17:09:44, Tom Sepez wrote: > ...
4 years, 7 months ago (2016-05-26 22:06:46 UTC) #5
Lei Zhang
https://codereview.chromium.org/2010923002/diff/60001/xfa/fxfa/app/xfa_fwladapter.cpp File xfa/fxfa/app/xfa_fwladapter.cpp (right): https://codereview.chromium.org/2010923002/diff/60001/xfa/fxfa/app/xfa_fwladapter.cpp#newcode21 xfa/fxfa/app/xfa_fwladapter.cpp:21: CXFA_FFField* pField = static_cast<CXFA_FFField*>(pWidget->GetLayoutItem()); If you static_cast this to ...
4 years, 7 months ago (2016-05-26 22:43:18 UTC) #6
Tom Sepez
On 2016/05/26 22:06:46, Lei Zhang wrote: > https://codereview.chromium.org/2010923002/diff/40001/xfa/fwl/core/fwl_widgetimp.h > File xfa/fwl/core/fwl_widgetimp.h (right): > > https://codereview.chromium.org/2010923002/diff/40001/xfa/fwl/core/fwl_widgetimp.h#newcode167 ...
4 years, 7 months ago (2016-05-26 23:56:50 UTC) #7
Tom Sepez
https://codereview.chromium.org/2010923002/diff/60001/xfa/fxfa/app/xfa_fwladapter.cpp File xfa/fxfa/app/xfa_fwladapter.cpp (right): https://codereview.chromium.org/2010923002/diff/60001/xfa/fxfa/app/xfa_fwladapter.cpp#newcode21 xfa/fxfa/app/xfa_fwladapter.cpp:21: CXFA_FFField* pField = static_cast<CXFA_FFField*>(pWidget->GetLayoutItem()); On 2016/05/26 22:43:17, Lei Zhang ...
4 years, 7 months ago (2016-05-27 00:02:15 UTC) #8
Lei Zhang
lgtm
4 years, 7 months ago (2016-05-27 00:35:05 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2010923002/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/2010923002/80001
4 years, 7 months ago (2016-05-27 00:35:37 UTC) #11
commit-bot: I haz the power
4 years, 7 months ago (2016-05-27 00:36:01 UTC) #13
Message was sent while issue was closed.
Committed patchset #5 (id:80001) as
https://pdfium.googlesource.com/pdfium/+/54ab2343c338f55735c37ed6751040791e1d...

Powered by Google App Engine
This is Rietveld 408576698