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

Issue 2166193002: Handle ctrl + shift + left click on links in PDF. (Closed)

Created:
4 years, 5 months ago by jaepark
Modified:
4 years, 4 months ago
Reviewers:
Lei Zhang, dsinclair, sky
CC:
chromium-reviews, chromium-apps-reviews_chromium.org, arv+watch_chromium.org, extensions-reviews_chromium.org, dsinclair
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Handle ctrl + shift + left click on links in PDF. Ctrl + shift + left (or shift + middle) click on links should open a new foreground tab. BUG=630075 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:closure_compilation Committed: https://crrev.com/1b44ac414765de1d882f295006cfe2687872320b Cr-Commit-Position: refs/heads/master@{#407840}

Patch Set 1 #

Total comments: 10

Patch Set 2 : Handle ctrl + shift + left click on links in PDF. #

Total comments: 1

Patch Set 3 : Handle ctrl + shift + left click on links in PDF. #

Total comments: 10

Patch Set 4 : Handle ctrl + shift + left click on links in PDF. #

Total comments: 8

Patch Set 5 : Handle ctrl + shift + left click on links in PDF. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+178 lines, -54 lines) Patch
M chrome/browser/pdf/pdf_extension_test.cc View 1 2 3 3 chunks +73 lines, -7 lines 0 comments Download
M chrome/browser/resources/pdf/navigator.js View 1 2 3 4 2 chunks +46 lines, -12 lines 0 comments Download
M chrome/browser/resources/pdf/pdf.js View 1 2 4 chunks +17 lines, -10 lines 0 comments Download
M chrome/test/data/pdf/navigator_test.js View 1 2 6 chunks +14 lines, -8 lines 0 comments Download
M pdf/BUILD.gn View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M pdf/DEPS View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M pdf/out_of_process_instance.h View 1 2 1 chunk +2 lines, -1 line 0 comments Download
M pdf/out_of_process_instance.cc View 1 2 2 chunks +3 lines, -3 lines 0 comments Download
M pdf/pdf.gyp View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M pdf/pdf_engine.h View 1 2 3 3 chunks +3 lines, -7 lines 0 comments Download
M pdf/pdfium/pdfium_engine.cc View 1 2 3 4 2 chunks +14 lines, -4 lines 0 comments Download
M pdf/preview_mode_client.h View 1 2 1 chunk +2 lines, -1 line 0 comments Download
M pdf/preview_mode_client.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 64 (44 generated)
jaepark
4 years, 5 months ago (2016-07-21 02:47:51 UTC) #5
Lei Zhang
There are red trybots. You may also be interested in ui::DispositionFromClick(). https://codereview.chromium.org/2166193002/diff/1/chrome/browser/resources/pdf/navigator.js File chrome/browser/resources/pdf/navigator.js (right): ...
4 years, 5 months ago (2016-07-21 05:34:28 UTC) #8
dsinclair
https://codereview.chromium.org/2166193002/diff/1/pdf/pdfium/pdfium_engine.h File pdf/pdfium/pdfium_engine.h (right): https://codereview.chromium.org/2166193002/diff/1/pdf/pdfium/pdfium_engine.h#newcode52 pdf/pdfium/pdfium_engine.h:52: enum NavigateOption { Can this be an enum class ...
4 years, 5 months ago (2016-07-21 13:34:06 UTC) #10
jaepark
Fixed red trybots. I looked into ui::DispositionFromClick(), but the expected behavior was different (such as ...
4 years, 5 months ago (2016-07-21 22:34:33 UTC) #24
Lei Zhang
On 2016/07/21 22:34:33, jaepark wrote: > Fixed red trybots. > > I looked into ui::DispositionFromClick(), ...
4 years, 5 months ago (2016-07-21 23:00:53 UTC) #25
jaepark
On 2016/07/21 23:00:53, Lei Zhang wrote: > How is it different? On my Linux desktop, ...
4 years, 5 months ago (2016-07-21 23:08:41 UTC) #26
jaepark
On 2016/07/21 23:00:53, Lei Zhang wrote: > How is it different? On my Linux desktop, ...
4 years, 5 months ago (2016-07-22 05:35:05 UTC) #27
Lei Zhang
On 2016/07/22 05:35:05, jaepark wrote: > You added one or more #includes that violate checkdeps ...
4 years, 5 months ago (2016-07-22 06:27:27 UTC) #28
jaepark
Modified to use ui::DispositionFromClick() and WindowOpenDisposition enum in ui/base/window_open_disposition.h.
4 years, 5 months ago (2016-07-22 19:09:58 UTC) #37
Lei Zhang
https://codereview.chromium.org/2166193002/diff/80001/chrome/browser/pdf/pdf_extension_test.cc File chrome/browser/pdf/pdf_extension_test.cc (right): https://codereview.chromium.org/2166193002/diff/80001/chrome/browser/pdf/pdf_extension_test.cc#newcode800 chrome/browser/pdf/pdf_extension_test.cc:800: blink::WebInputEvent::MetaKey | blink::WebInputEvent::ShiftKey; You can add a helper function ...
4 years, 5 months ago (2016-07-23 00:39:38 UTC) #38
jaepark
https://codereview.chromium.org/2166193002/diff/80001/chrome/browser/pdf/pdf_extension_test.cc File chrome/browser/pdf/pdf_extension_test.cc (right): https://codereview.chromium.org/2166193002/diff/80001/chrome/browser/pdf/pdf_extension_test.cc#newcode800 chrome/browser/pdf/pdf_extension_test.cc:800: blink::WebInputEvent::MetaKey | blink::WebInputEvent::ShiftKey; On 2016/07/23 00:39:38, Lei Zhang wrote: ...
4 years, 5 months ago (2016-07-23 03:52:30 UTC) #39
Lei Zhang
https://codereview.chromium.org/2166193002/diff/100001/chrome/browser/resources/pdf/navigator.js File chrome/browser/resources/pdf/navigator.js (right): https://codereview.chromium.org/2166193002/diff/100001/chrome/browser/resources/pdf/navigator.js#newcode49 chrome/browser/resources/pdf/navigator.js:49: * @param {boolean} newTab Whether to perform the navigation ...
4 years, 5 months ago (2016-07-25 22:10:03 UTC) #44
jaepark
https://codereview.chromium.org/2166193002/diff/100001/chrome/browser/resources/pdf/navigator.js File chrome/browser/resources/pdf/navigator.js (right): https://codereview.chromium.org/2166193002/diff/100001/chrome/browser/resources/pdf/navigator.js#newcode49 chrome/browser/resources/pdf/navigator.js:49: * @param {boolean} newTab Whether to perform the navigation ...
4 years, 5 months ago (2016-07-25 23:24:13 UTC) #46
Lei Zhang
lgtm
4 years, 5 months ago (2016-07-25 23:30:39 UTC) #49
jaepark
+sky to review ui/base dependency.
4 years, 5 months ago (2016-07-26 01:10:39 UTC) #57
Lei Zhang
On 2016/07/26 01:10:39, jaepark wrote: > +sky to review ui/base dependency. Historical context: pdf/ used ...
4 years, 5 months ago (2016-07-26 01:23:33 UTC) #58
sky
LGTM
4 years, 4 months ago (2016-07-26 16:17:38 UTC) #59
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/2166193002/140001
4 years, 4 months ago (2016-07-26 17:18:52 UTC) #61
commit-bot: I haz the power
Committed patchset #5 (id:140001)
4 years, 4 months ago (2016-07-26 17:24:20 UTC) #62
commit-bot: I haz the power
4 years, 4 months ago (2016-07-26 17:26:55 UTC) #64
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/1b44ac414765de1d882f295006cfe2687872320b
Cr-Commit-Position: refs/heads/master@{#407840}

Powered by Google App Engine
This is Rietveld 408576698