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

Issue 2333383002: [Merge to 54] Add observer for BAAnnots from Javascript (Closed)

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

Description

[Merge to 54] Add observer for BAAnnots from Javascript This Cl moves the observer code from the CPDFSDK_Widget up into the CPDFSDK_Annot base class and then adds a second observer for CPDFSDK_BAAnnot objects. This allows us to attach an observer to the Annot javascript class which will update its internal pointer to the BAAnnot if the BAAnnot is destroyed by the CPDFSDK_PageView being destroyed. BUG=chromium:642307 R=tsepez@chromium.org Review-Url: https://codereview.chromium.org/2306663002 Committed: https://pdfium.googlesource.com/pdfium/+/0703fa810bc79a335ddfdab3e7661159caf88e2d

Patch Set 1 #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+82 lines, -58 lines) Patch
M fpdfsdk/cpdfsdk_annot.cpp View 2 chunks +31 lines, -1 line 0 comments Download
M fpdfsdk/cpdfsdk_widget.cpp View 3 chunks +1 line, -31 lines 0 comments Download
M fpdfsdk/include/cpdfsdk_annot.h View 2 chunks +14 lines, -0 lines 0 comments Download
M fpdfsdk/include/cpdfsdk_widget.h View 3 chunks +0 lines, -15 lines 1 comment Download
M fpdfsdk/javascript/Annot.h View 2 chunks +4 lines, -1 line 0 comments Download
M fpdfsdk/javascript/Annot.cpp View 5 chunks +28 lines, -7 lines 1 comment Download
M fpdfsdk/javascript/Field.cpp View 1 chunk +4 lines, -3 lines 0 comments Download

Messages

Total messages: 5 (2 generated)
dsinclair
PTAL. https://codereview.chromium.org/2333383002/diff/1/fpdfsdk/include/cpdfsdk_widget.h File fpdfsdk/include/cpdfsdk_widget.h (right): https://codereview.chromium.org/2333383002/diff/1/fpdfsdk/include/cpdfsdk_widget.h#newcode67 fpdfsdk/include/cpdfsdk_widget.h:67: CFX_ByteString GetSubType() const override; Merge conflicted here. https://codereview.chromium.org/2333383002/diff/1/fpdfsdk/javascript/Annot.cpp ...
4 years, 3 months ago (2016-09-13 18:28:35 UTC) #2
Tom Sepez
lgtm
4 years, 3 months ago (2016-09-13 18:40:06 UTC) #3
dsinclair
4 years, 3 months ago (2016-09-13 18:53:01 UTC) #5
Message was sent while issue was closed.
Committed patchset #1 (id:1) manually as
0703fa810bc79a335ddfdab3e7661159caf88e2d (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698