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

Issue 2311343003: Make Observers into a templated class (Closed)

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

Description

Patch Set 1 #

Patch Set 2 : rebase #

Total comments: 2

Patch Set 3 : Suppress assignment #

Total comments: 1

Patch Set 4 : Add back ASSERTS #

Total comments: 1

Patch Set 5 : Missing initial registration #

Patch Set 6 : Make Annot is-a CPDFSDK_Annot::Observer #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+76 lines, -53 lines) Patch
A core/fxcrt/include/cfx_observable.h View 1 2 3 4 1 chunk +66 lines, -0 lines 0 comments Download
M fpdfsdk/cpdfsdk_annot.cpp View 1 1 chunk +1 line, -30 lines 0 comments Download
M fpdfsdk/include/cpdfsdk_annot.h View 1 3 chunks +2 lines, -15 lines 0 comments Download
M fpdfsdk/javascript/Annot.h View 1 2 3 4 5 2 chunks +1 line, -2 lines 0 comments Download
M fpdfsdk/javascript/Annot.cpp View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M fpdfsdk/javascript/Field.cpp View 1 2 3 4 1 chunk +5 lines, -5 lines 2 comments Download

Messages

Total messages: 28 (13 generated)
Tom Sepez
Dan, Lei, for discussion. Maybe we should just go all the way and make this ...
4 years, 3 months ago (2016-09-06 23:50:46 UTC) #2
dsinclair
On 2016/09/06 23:50:46, Tom Sepez wrote: > Dan, Lei, for discussion. Maybe we should just ...
4 years, 3 months ago (2016-09-07 12:53:06 UTC) #3
dsinclair
https://codereview.chromium.org/2311343003/diff/20001/fpdfsdk/javascript/Field.cpp File fpdfsdk/javascript/Field.cpp (right): https://codereview.chromium.org/2311343003/diff/20001/fpdfsdk/javascript/Field.cpp#newcode272 fpdfsdk/javascript/Field.cpp:272: CFX_Observable<CPDFSDK_Annot>::Observer observer(&pAnnot); If we make the Widget and BAAnnot ...
4 years, 3 months ago (2016-09-07 16:51:53 UTC) #4
Tom Sepez
> Can you update this to ToT. I'd like to see it with the BAAnnot ...
4 years, 3 months ago (2016-09-07 16:52:17 UTC) #5
Tom Sepez
https://codereview.chromium.org/2311343003/diff/40001/fpdfsdk/javascript/Field.cpp File fpdfsdk/javascript/Field.cpp (right): https://codereview.chromium.org/2311343003/diff/40001/fpdfsdk/javascript/Field.cpp#newcode273 fpdfsdk/javascript/Field.cpp:273: CFX_WideString sValue = Note: I put back two casts ...
4 years, 3 months ago (2016-09-07 16:54:48 UTC) #6
Tom Sepez
https://codereview.chromium.org/2311343003/diff/60001/core/fxcrt/include/cfx_observable.h File core/fxcrt/include/cfx_observable.h (right): https://codereview.chromium.org/2311343003/diff/60001/core/fxcrt/include/cfx_observable.h#newcode16 core/fxcrt/include/cfx_observable.h:16: class Observer { An Observable<>::Observer that observes observables.
4 years, 3 months ago (2016-09-07 17:10:17 UTC) #11
Tom Sepez
https://codereview.chromium.org/2311343003/diff/20001/fpdfsdk/javascript/Field.cpp File fpdfsdk/javascript/Field.cpp (right): https://codereview.chromium.org/2311343003/diff/20001/fpdfsdk/javascript/Field.cpp#newcode272 fpdfsdk/javascript/Field.cpp:272: CFX_Observable<CPDFSDK_Annot>::Observer observer(&pAnnot); On 2016/09/07 16:51:53, dsinclair wrote: > If ...
4 years, 3 months ago (2016-09-07 19:03:18 UTC) #14
Tom Sepez
Ok, PS#5 for review.
4 years, 3 months ago (2016-09-07 20:32:48 UTC) #17
Tom Sepez
On 2016/09/07 20:32:48, Tom Sepez wrote: > Ok, PS#5 for review. ps#6 even better. Thanks ...
4 years, 3 months ago (2016-09-07 20:38:42 UTC) #18
dsinclair
lgtm
4 years, 3 months ago (2016-09-07 20:53:17 UTC) #20
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/2311343003/100001
4 years, 3 months ago (2016-09-07 20:53:25 UTC) #21
Lei Zhang
lgtm https://codereview.chromium.org/2311343003/diff/100001/fpdfsdk/javascript/Field.cpp File fpdfsdk/javascript/Field.cpp (right): https://codereview.chromium.org/2311343003/diff/100001/fpdfsdk/javascript/Field.cpp#newcode275 fpdfsdk/javascript/Field.cpp:275: if (pAnnot) { Isn't this always true?
4 years, 3 months ago (2016-09-07 21:01:30 UTC) #23
Tom Sepez
https://codereview.chromium.org/2311343003/diff/100001/fpdfsdk/javascript/Field.cpp File fpdfsdk/javascript/Field.cpp (right): https://codereview.chromium.org/2311343003/diff/100001/fpdfsdk/javascript/Field.cpp#newcode275 fpdfsdk/javascript/Field.cpp:275: if (pAnnot) { On 2016/09/07 21:01:29, Lei Zhang wrote: ...
4 years, 3 months ago (2016-09-07 21:10:28 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/2311343003/100001
4 years, 3 months ago (2016-09-07 21:11:12 UTC) #26
commit-bot: I haz the power
4 years, 3 months ago (2016-09-07 21:11:31 UTC) #28
Message was sent while issue was closed.
Committed patchset #6 (id:100001) as
https://pdfium.googlesource.com/pdfium/+/7b68f616e49235267eeac8db51aadade6d60...

Powered by Google App Engine
This is Rietveld 408576698