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

Issue 2368403002: Watch destruction of widgets around OnAAction() method (Closed)

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

Description

Watch destruction of widgets around OnAAction() method. We implemented the CFX_Observable mechanism for detecting stale objects some time ago; now just use it in more places. Change method signatures to required an ObservedPtr to indicate that the callers are aware that the value may be destroyed out from underneath them. BUG=649659 Committed: https://pdfium.googlesource.com/pdfium/+/f8074cefb2f8d947fa83d151bcbe080b485d6e6b

Patch Set 1 #

Patch Set 2 : make better #

Patch Set 3 : WIP #

Patch Set 4 : Pass everywhere #

Total comments: 2

Patch Set 5 : Pass as pointers #

Patch Set 6 : rebase, fix bExit expressions #

Total comments: 4

Patch Set 7 : Nits, mising ! #

Patch Set 8 : rebase #

Patch Set 9 : blown merge #

Unified diffs Side-by-side diffs Delta from patch set Stats (+559 lines, -545 lines) Patch
M fpdfsdk/cpdfsdk_annothandlermgr.cpp View 1 2 3 4 3 chunks +59 lines, -56 lines 0 comments Download
M fpdfsdk/cpdfsdk_baannothandler.cpp View 1 2 3 4 2 chunks +33 lines, -28 lines 0 comments Download
M fpdfsdk/cpdfsdk_document.cpp View 1 2 3 4 4 chunks +17 lines, -16 lines 0 comments Download
M fpdfsdk/cpdfsdk_pageview.cpp View 1 2 3 4 5 6 7 chunks +54 lines, -53 lines 0 comments Download
M fpdfsdk/cpdfsdk_widgethandler.cpp View 1 2 3 4 3 chunks +34 lines, -31 lines 0 comments Download
M fpdfsdk/cpdfsdk_xfawidgethandler.cpp View 1 2 3 4 2 chunks +99 lines, -89 lines 0 comments Download
M fpdfsdk/formfiller/cffl_checkbox.cpp View 1 2 3 4 1 chunk +6 lines, -4 lines 0 comments Download
M fpdfsdk/formfiller/cffl_formfiller.cpp View 1 2 3 4 5 1 chunk +5 lines, -6 lines 0 comments Download
M fpdfsdk/formfiller/cffl_interactiveformfiller.h View 1 2 3 4 5 6 7 8 4 chunks +15 lines, -16 lines 0 comments Download
M fpdfsdk/formfiller/cffl_interactiveformfiller.cpp View 1 2 3 4 5 20 chunks +139 lines, -161 lines 0 comments Download
M fpdfsdk/formfiller/cffl_radiobutton.cpp View 1 2 3 4 5 1 chunk +3 lines, -5 lines 0 comments Download
M fpdfsdk/fpdfxfa/cpdfxfa_docenvironment.cpp View 1 2 3 4 2 chunks +4 lines, -3 lines 0 comments Download
M fpdfsdk/include/cpdfsdk_annothandlermgr.h View 1 2 3 4 2 chunks +14 lines, -14 lines 0 comments Download
M fpdfsdk/include/cpdfsdk_baannothandler.h View 1 2 3 4 2 chunks +17 lines, -14 lines 0 comments Download
M fpdfsdk/include/cpdfsdk_document.h View 1 2 3 4 3 chunks +3 lines, -3 lines 0 comments Download
M fpdfsdk/include/cpdfsdk_pageview.h View 1 2 3 4 3 chunks +4 lines, -2 lines 0 comments Download
M fpdfsdk/include/cpdfsdk_widgethandler.h View 1 2 3 4 2 chunks +17 lines, -14 lines 0 comments Download
M fpdfsdk/include/cpdfsdk_xfawidgethandler.h View 1 2 3 4 2 chunks +16 lines, -14 lines 0 comments Download
M fpdfsdk/include/ipdfsdk_annothandler.h View 1 2 3 4 3 chunks +18 lines, -15 lines 0 comments Download
M fpdfsdk/javascript/Field.cpp View 1 2 3 4 1 chunk +2 lines, -1 line 0 comments Download

Messages

Total messages: 30 (23 generated)
Tom Sepez
Lei, for review.
4 years, 2 months ago (2016-09-27 16:43:58 UTC) #10
Lei Zhang
Is passing by pointer really that bad? We have (*it)->func() for STL iterators and it ...
4 years, 2 months ago (2016-09-27 17:02:22 UTC) #16
Tom Sepez
https://codereview.chromium.org/2368403002/diff/60001/fpdfsdk/formfiller/cffl_formfiller.cpp File fpdfsdk/formfiller/cffl_formfiller.cpp (right): https://codereview.chromium.org/2368403002/diff/60001/fpdfsdk/formfiller/cffl_formfiller.cpp#newcode532 fpdfsdk/formfiller/cffl_formfiller.cpp:532: if (!pObserved) On 2016/09/27 17:02:22, Lei Zhang wrote: > ...
4 years, 2 months ago (2016-09-27 20:21:08 UTC) #17
Lei Zhang
lgtm https://codereview.chromium.org/2368403002/diff/100001/fpdfsdk/cpdfsdk_pageview.cpp File fpdfsdk/cpdfsdk_pageview.cpp (right): https://codereview.chromium.org/2368403002/diff/100001/fpdfsdk/cpdfsdk_pageview.cpp#newcode331 fpdfsdk/cpdfsdk_pageview.cpp:331: if (pAnnot) Is this missing an '!' ? ...
4 years, 2 months ago (2016-09-27 20:45:03 UTC) #20
Tom Sepez
https://codereview.chromium.org/2368403002/diff/100001/fpdfsdk/cpdfsdk_pageview.cpp File fpdfsdk/cpdfsdk_pageview.cpp (right): https://codereview.chromium.org/2368403002/diff/100001/fpdfsdk/cpdfsdk_pageview.cpp#newcode331 fpdfsdk/cpdfsdk_pageview.cpp:331: if (pAnnot) On 2016/09/27 20:45:03, Lei Zhang wrote: > ...
4 years, 2 months ago (2016-09-27 20:49:32 UTC) #21
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/2368403002/160001
4 years, 2 months ago (2016-09-27 21:29:39 UTC) #28
commit-bot: I haz the power
4 years, 2 months ago (2016-09-27 21:30:01 UTC) #30
Message was sent while issue was closed.
Committed patchset #9 (id:160001) as
https://pdfium.googlesource.com/pdfium/+/f8074cefb2f8d947fa83d151bcbe080b485d...

Powered by Google App Engine
This is Rietveld 408576698