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

Issue 2273893002: Display content of the annotation when mouse hover. (Closed)

Created:
4 years, 3 months ago by jaepark
Modified:
4 years, 3 months ago
Reviewers:
Lei Zhang, dsinclair
CC:
pdfium-reviews_googlegroups.com
Base URL:
https://pdfium.googlesource.com/pdfium.git@master
Target Ref:
refs/heads/master
Project:
pdfium
Visibility:
Public.

Description

Display content of the annotation when mouse hover. Each annotation has its contents, and users should be able to see the contents. In this patch, PDFium creates a Popup annotation for each annotation and stores the author and the content. When a user mouse hover on the annotation, PDFium draws the corresponding Popup annotation and displays the content. Also, roll DEPS for testing/corpus to 5867fa6. BUG=62625 Committed: https://pdfium.googlesource.com/pdfium/+/35512aa7e4acc3ceb9c6aef5d61eebfb4ae802af

Patch Set 1 #

Patch Set 2 : Removing useless comments. #

Total comments: 34

Patch Set 3 : Display content of the annotation when mouse hover. #

Patch Set 4 : Rebased to upstream #

Patch Set 5 : Display content of the annotation when mouse hover. #

Total comments: 19

Patch Set 6 : Display content of the annotation when mouse hover. #

Total comments: 2

Patch Set 7 : Display content of the annotation when mouse hover. #

Patch Set 8 : Display content of the annotation when mouse hover. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+524 lines, -188 lines) Patch
M BUILD.gn View 1 2 3 4 5 2 chunks +2 lines, -0 lines 0 comments Download
M DEPS View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M core/fpdfdoc/cpdf_annot.cpp View 1 2 3 4 5 3 chunks +8 lines, -1 line 0 comments Download
M core/fpdfdoc/cpdf_annotlist.cpp View 1 2 3 4 5 3 chunks +48 lines, -0 lines 0 comments Download
M core/fpdfdoc/cpvt_generateap.h View 1 chunk +1 line, -0 lines 0 comments Download
M core/fpdfdoc/cpvt_generateap.cpp View 1 2 3 4 5 6 11 chunks +128 lines, -14 lines 0 comments Download
M core/fpdfdoc/include/cpdf_annot.h View 1 2 3 4 5 2 chunks +8 lines, -0 lines 0 comments Download
M fpdfsdk/cpdfsdk_annothandlermgr.cpp View 1 2 3 4 5 14 chunks +65 lines, -148 lines 0 comments Download
M fpdfsdk/cpdfsdk_baannot.cpp View 1 2 3 4 5 2 chunks +9 lines, -0 lines 0 comments Download
A fpdfsdk/cpdfsdk_baannothandler.cpp View 1 2 3 4 5 1 chunk +219 lines, -0 lines 0 comments Download
M fpdfsdk/fsdk_mgr.cpp View 1 2 3 4 5 2 chunks +4 lines, -2 lines 0 comments Download
M fpdfsdk/include/cpdfsdk_annothandlermgr.h View 1 2 3 chunks +9 lines, -5 lines 0 comments Download
M fpdfsdk/include/cpdfsdk_baannot.h View 1 2 3 4 5 2 chunks +3 lines, -0 lines 0 comments Download
A + fpdfsdk/include/cpdfsdk_baannothandler.h View 1 2 3 4 2 chunks +15 lines, -14 lines 0 comments Download
M fpdfsdk/include/fsdk_mgr.h View 1 2 3 4 1 chunk +1 line, -3 lines 0 comments Download
M testing/SUPPRESSIONS View 1 2 3 4 5 6 7 1 chunk +3 lines, -0 lines 0 comments Download

Messages

Total messages: 37 (25 generated)
jaepark
This is a work in progress patch for displaying content of the annotation when mouse ...
4 years, 3 months ago (2016-08-23 22:30:51 UTC) #2
dsinclair
https://codereview.chromium.org/2273893002/diff/20001/core/fpdfdoc/cpdf_annot.cpp File core/fpdfdoc/cpdf_annot.cpp (right): https://codereview.chromium.org/2273893002/diff/20001/core/fpdfdoc/cpdf_annot.cpp#newcode33 core/fpdfdoc/cpdf_annot.cpp:33: else if (m_sSubtype == "Popup") Should we switch m_sSubtype ...
4 years, 3 months ago (2016-08-24 14:00:21 UTC) #3
jaepark
I've also updated the offset of text and position of the popup. New result of ...
4 years, 3 months ago (2016-08-24 18:37:49 UTC) #4
dsinclair
lgtm w/ nit. https://codereview.chromium.org/2273893002/diff/20001/core/fpdfdoc/cpdf_annot.cpp File core/fpdfdoc/cpdf_annot.cpp (right): https://codereview.chromium.org/2273893002/diff/20001/core/fpdfdoc/cpdf_annot.cpp#newcode33 core/fpdfdoc/cpdf_annot.cpp:33: else if (m_sSubtype == "Popup") On ...
4 years, 3 months ago (2016-08-24 18:56:27 UTC) #5
jaepark
Popup should be drawn on top of other annotations so that other annotations are not ...
4 years, 3 months ago (2016-08-26 02:37:29 UTC) #14
Lei Zhang
Finally getting around to take a look. Please rebase. e.g. pdfium.gyp is gone.
4 years, 3 months ago (2016-08-27 01:36:10 UTC) #15
Lei Zhang
https://codereview.chromium.org/2273893002/diff/80001/core/fpdfdoc/cpdf_annotlist.cpp File core/fpdfdoc/cpdf_annotlist.cpp (right): https://codereview.chromium.org/2273893002/diff/80001/core/fpdfdoc/cpdf_annotlist.cpp#newcode85 core/fpdfdoc/cpdf_annotlist.cpp:85: size_t nAnnotListCount = m_AnnotList.size(); no need for variable. https://codereview.chromium.org/2273893002/diff/80001/core/fpdfdoc/cpvt_generateap.cpp ...
4 years, 3 months ago (2016-08-27 02:16:53 UTC) #16
jaepark
Rebased. Also, test cases are updated in https://codereview.chromium.org/2269953003 . https://codereview.chromium.org/2273893002/diff/80001/core/fpdfdoc/cpdf_annotlist.cpp File core/fpdfdoc/cpdf_annotlist.cpp (right): https://codereview.chromium.org/2273893002/diff/80001/core/fpdfdoc/cpdf_annotlist.cpp#newcode85 core/fpdfdoc/cpdf_annotlist.cpp:85: ...
4 years, 3 months ago (2016-08-29 21:19:25 UTC) #21
Lei Zhang
lgtm https://codereview.chromium.org/2273893002/diff/100001/core/fpdfdoc/cpvt_generateap.cpp File core/fpdfdoc/cpvt_generateap.cpp (right): https://codereview.chromium.org/2273893002/diff/100001/core/fpdfdoc/cpvt_generateap.cpp#newcode963 core/fpdfdoc/cpvt_generateap.cpp:963: FX_FLOAT fBorderWidth = 1; const?
4 years, 3 months ago (2016-08-29 22:41:29 UTC) #22
jaepark
I think the mac trybots were failing for some corpus test cases due to font ...
4 years, 3 months ago (2016-08-29 23:59:37 UTC) #32
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/2273893002/140001
4 years, 3 months ago (2016-08-30 00:14:41 UTC) #35
commit-bot: I haz the power
4 years, 3 months ago (2016-08-30 00:15:14 UTC) #37
Message was sent while issue was closed.
Committed patchset #8 (id:140001) as
https://pdfium.googlesource.com/pdfium/+/35512aa7e4acc3ceb9c6aef5d61eebfb4ae8...

Powered by Google App Engine
This is Rietveld 408576698