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

Issue 615853003: Handle the keyboard event for ctrl+a inside pdf.js instead of out_of_process_pdf.cc (Closed)

Created:
6 years, 2 months ago by Deepak
Modified:
6 years, 2 months ago
Reviewers:
raymes, Nikhil, xiyuan
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Handle the keyboard event for ctrl+a inside pdf.js instead of out_of_process_pdf.cc This moves the logic to handle the ctrl+a keyboard event into the pdf.js container page, sending a message to the plugin to select all the text. This ensures that the event is handled, even if the plugin element doesn't have focus in the document. BUG=419986 Committed: https://crrev.com/2faaced431869fd80ba281d230d0bc4bcfec32fb Cr-Commit-Position: refs/heads/master@{#297998}

Patch Set 1 #

Patch Set 2 : Changes as per review comments. #

Total comments: 4

Patch Set 3 : Changes as per comments. #

Total comments: 4

Patch Set 4 : Changes as per review comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+11 lines, -10 lines) Patch
M chrome/browser/resources/pdf/pdf.js View 1 2 3 1 chunk +7 lines, -0 lines 0 comments Download
M pdf/out_of_process_instance.cc View 1 2 3 3 chunks +4 lines, -10 lines 0 comments Download

Messages

Total messages: 30 (5 generated)
Deepak
PTAL
6 years, 2 months ago (2014-10-01 10:36:57 UTC) #2
raymes
I don't think this is needed because the functionality is implemented in the JS. On ...
6 years, 2 months ago (2014-10-01 12:28:01 UTC) #3
Deepak
I saw the keyboard_event.GetKeyCode() for 'A' with SelectAll call is present here,so thought that rotation ...
6 years, 2 months ago (2014-10-01 12:33:23 UTC) #4
raymes
I think we should change ctrl+a as well. The problem is that if the plugin ...
6 years, 2 months ago (2014-10-01 14:10:53 UTC) #5
Deepak
On 2014/10/01 14:10:53, raymes wrote: > I think we should change ctrl+a as well. The ...
6 years, 2 months ago (2014-10-01 14:29:34 UTC) #6
Nikhil
Thanks deepak.m1@ for working on this! I verified this functionality, and it seems to be ...
6 years, 2 months ago (2014-10-01 14:48:30 UTC) #7
Deepak
On 2014/10/01 14:48:30, Nikhil wrote: > Thanks deepak.m1@ for working on this! I verified this ...
6 years, 2 months ago (2014-10-01 15:30:54 UTC) #8
raymes
> > > I agree, rotation works without the handling in OOP HandleInputEvent(). > Here ...
6 years, 2 months ago (2014-10-01 16:02:19 UTC) #9
Nikhil
deepak.m1@ - To help you get started and assuming we just want to pull out ...
6 years, 2 months ago (2014-10-01 17:08:39 UTC) #10
Deepak
On 2014/10/01 17:08:39, Nikhil wrote: > deepak.m1@ - To help you get started and assuming ...
6 years, 2 months ago (2014-10-02 08:02:23 UTC) #11
Nikhil
Please wait for raymes@ to take a look at this before you update the patch ...
6 years, 2 months ago (2014-10-02 12:27:01 UTC) #12
Deepak
PTAL. https://codereview.chromium.org/615853003/diff/20001/pdf/out_of_process_instance.cc File pdf/out_of_process_instance.cc (right): https://codereview.chromium.org/615853003/diff/20001/pdf/out_of_process_instance.cc#newcode130 pdf/out_of_process_instance.cc:130: const char kJSSelectAllType[] = "selectAll"; On 2014/10/02 12:27:01, ...
6 years, 2 months ago (2014-10-02 12:40:32 UTC) #13
raymes
lgtm with the following minor changes Also I updated the CL description a bit, I ...
6 years, 2 months ago (2014-10-02 14:18:56 UTC) #14
Deepak
Thanks @raymus for review & your time. I have done changes as suggested. PTAL. https://codereview.chromium.org/615853003/diff/40001/chrome/browser/resources/pdf/pdf.js ...
6 years, 2 months ago (2014-10-02 14:57:35 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/615853003/60001
6 years, 2 months ago (2014-10-02 15:01:49 UTC) #17
raymes
Once you have 'lgtm' from all reviewers and address any additional comments, feel free to ...
6 years, 2 months ago (2014-10-02 15:01:52 UTC) #18
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/15033)
6 years, 2 months ago (2014-10-02 15:09:45 UTC) #20
Nikhil
deepak.m1@ - Could you please file a bug for this? Or update the description with ...
6 years, 2 months ago (2014-10-02 15:55:25 UTC) #21
Deepak
On 2014/10/02 15:55:25, Nikhil wrote: > deepak.m1@ - Could you please file a bug for ...
6 years, 2 months ago (2014-10-02 17:20:50 UTC) #22
Deepak
@xiyuan PTAL. @Nikhil, New bug 419986 logged for tracking this changes.And updated in review also. ...
6 years, 2 months ago (2014-10-03 05:56:23 UTC) #24
xiyuan
lgtm
6 years, 2 months ago (2014-10-03 06:08:51 UTC) #25
Deepak
On 2014/10/03 06:08:51, xiyuan wrote: > lgtm Thanks xiyuan.
6 years, 2 months ago (2014-10-03 06:09:32 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/615853003/60001
6 years, 2 months ago (2014-10-03 06:09:50 UTC) #28
commit-bot: I haz the power
Committed patchset #4 (id:60001) as f329b8c43c794d1fca04a3ad7f8874695afc162c
6 years, 2 months ago (2014-10-03 06:13:27 UTC) #29
commit-bot: I haz the power
6 years, 2 months ago (2014-10-03 06:15:19 UTC) #30
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/2faaced431869fd80ba281d230d0bc4bcfec32fb
Cr-Commit-Position: refs/heads/master@{#297998}

Powered by Google App Engine
This is Rietveld 408576698