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

Issue 814573004: Fix for Multipage selection by dragging mouse in OOP case in PDF. (Closed)

Created:
5 years, 11 months ago by Deepak
Modified:
5 years, 10 months ago
CC:
chromium-reviews, arv+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix for Multipage selection by dragging mouse in OOP case in PDF. Code was not present for handling drag by mouse. Now we are passing message when their is selection happening and based on mousemove event handler we are scrolling page when mouse points are outside the viewport. When we move mouse outside the viewport and does not move then mousemove events will not come then we are scrolling based on timer. BUG=446831 Committed: https://crrev.com/423f09c6d2be8c916637cdda28ed0ee4e12490e0 Cr-Commit-Position: refs/heads/master@{#316204}

Patch Set 1 #

Patch Set 2 : Approach of handling drag in js file. #

Patch Set 3 : Fixing indentation. #

Patch Set 4 : Addressing nit. #

Total comments: 17

Patch Set 5 : Changes as per review comments. #

Patch Set 6 : Changes for scrolling based on Timer when no mouse move event comes. #

Total comments: 14

Patch Set 7 : Changes as per review comments. #

Patch Set 8 : Addressing nit. #

Patch Set 9 : Addressing nit. #

Patch Set 10 : Addressing nit. #

Total comments: 34

Patch Set 11 : Changes as per review comments. #

Patch Set 12 : Refactoring code by moving scroll drag functionality in separate file. #

Total comments: 23

Patch Set 13 : Changes as per review comments. #

Total comments: 8

Patch Set 14 : Addressing nit. #

Total comments: 12

Patch Set 15 : Changes as per review comments. #

Total comments: 1

Patch Set 16 : Addressing nit. #

Patch Set 17 : Changes as per review comments. #

Total comments: 6

Patch Set 18 : Changes as per review comments. #

Total comments: 2

Patch Set 19 : Addressing nit. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+172 lines, -12 lines) Patch
M chrome/browser/resources/component_extension_resources.grd View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/resources/pdf/index.html View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/resources/pdf/index-material.html View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/resources/pdf/pdf.js View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 3 chunks +7 lines, -10 lines 0 comments Download
A chrome/browser/resources/pdf/viewport_scroller.js View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 1 chunk +135 lines, -0 lines 0 comments Download
M pdf/out_of_process_instance.h View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +1 line, -0 lines 0 comments Download
M pdf/out_of_process_instance.cc View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +11 lines, -0 lines 0 comments Download
M pdf/pdf_engine.h View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +3 lines, -0 lines 0 comments Download
M pdf/pdfium/pdfium_engine.h View 1 7 8 9 10 11 12 1 chunk +3 lines, -0 lines 0 comments Download
M pdf/pdfium/pdfium_engine.cc View 1 2 3 4 5 6 7 8 9 10 11 12 3 chunks +9 lines, -2 lines 0 comments Download

Messages

Total messages: 54 (9 generated)
Deepak
PTAL.
5 years, 11 months ago (2015-01-07 14:07:57 UTC) #2
Deepak
PTAL at my changes. Thanks
5 years, 11 months ago (2015-01-12 11:38:57 UTC) #3
Deepak
PTAL at my changes. Thanks
5 years, 11 months ago (2015-01-14 12:31:54 UTC) #4
Deepak
@gene PTAL and share your thoughts. Thanks
5 years, 11 months ago (2015-01-15 13:44:36 UTC) #5
Deepak
@gene PTAL and share your thoughts. Thanks
5 years, 11 months ago (2015-01-19 14:31:25 UTC) #6
Deepak
PTAL. Thanks
5 years, 11 months ago (2015-01-21 09:02:03 UTC) #8
raymes
sammc@ is currently looking into this. We might use a slightly different approach because the ...
5 years, 11 months ago (2015-01-22 05:07:39 UTC) #10
Deepak
On 2015/01/22 05:07:39, raymes wrote: > sammc@ is currently looking into this. We might use ...
5 years, 11 months ago (2015-01-22 05:26:30 UTC) #11
raymes
Here is the very early start of a CL: https://codereview.chromium.org/865533002/
5 years, 11 months ago (2015-01-22 05:33:51 UTC) #12
Deepak
On 2015/01/22 05:33:51, raymes wrote: > Here is the very early start of a CL: ...
5 years, 11 months ago (2015-01-22 13:45:04 UTC) #13
Deepak
I have made changes using https://codereview.chromium.org/865533002/ as base. It is working as expected. PTAL and ...
5 years, 11 months ago (2015-01-23 11:20:48 UTC) #14
Deepak
PTAL
5 years, 11 months ago (2015-01-27 03:32:44 UTC) #15
Sam McNally
https://codereview.chromium.org/814573004/diff/60001/chrome/browser/resources/pdf/pdf.js File chrome/browser/resources/pdf/pdf.js (right): https://codereview.chromium.org/814573004/diff/60001/chrome/browser/resources/pdf/pdf.js#newcode441 chrome/browser/resources/pdf/pdf.js:441: case 'setIsSelecting': { Match the other cases: no {}. ...
5 years, 11 months ago (2015-01-28 02:43:51 UTC) #16
raymes
https://codereview.chromium.org/814573004/diff/60001/chrome/browser/resources/pdf/pdf.js File chrome/browser/resources/pdf/pdf.js (right): https://codereview.chromium.org/814573004/diff/60001/chrome/browser/resources/pdf/pdf.js#newcode442 chrome/browser/resources/pdf/pdf.js:442: if (message.data.isSelecting == this.isSelecting_) Does this ever happen?
5 years, 11 months ago (2015-01-28 03:33:09 UTC) #17
Deepak
Thanks for review. PTAL. https://codereview.chromium.org/814573004/diff/60001/chrome/browser/resources/pdf/pdf.js File chrome/browser/resources/pdf/pdf.js (right): https://codereview.chromium.org/814573004/diff/60001/chrome/browser/resources/pdf/pdf.js#newcode441 chrome/browser/resources/pdf/pdf.js:441: case 'setIsSelecting': { On 2015/01/28 ...
5 years, 10 months ago (2015-01-28 11:59:27 UTC) #18
Deepak
On 2015/01/28 11:59:27, Deepak wrote: > Thanks for review. > PTAL. > > https://codereview.chromium.org/814573004/diff/60001/chrome/browser/resources/pdf/pdf.js > ...
5 years, 10 months ago (2015-01-30 10:18:48 UTC) #19
Deepak
I have done changes as @sammc suggested That is scrolling based on timer when mouse ...
5 years, 10 months ago (2015-02-02 13:54:10 UTC) #20
Sam McNally
On 2015/02/02 13:54:10, Deepak wrote: > I have done changes as @sammc suggested > That ...
5 years, 10 months ago (2015-02-04 02:56:02 UTC) #21
Deepak
Thanks for review. PTAL. https://codereview.chromium.org/814573004/diff/100001/chrome/browser/resources/pdf/pdf.js File chrome/browser/resources/pdf/pdf.js (right): https://codereview.chromium.org/814573004/diff/100001/chrome/browser/resources/pdf/pdf.js#newcode458 chrome/browser/resources/pdf/pdf.js:458: this.isSelecting_ = message.data.isSelecting; On 2015/02/04 ...
5 years, 10 months ago (2015-02-04 13:50:54 UTC) #22
raymes
Thanks! https://codereview.chromium.org/814573004/diff/180001/chrome/browser/resources/pdf/pdf.js File chrome/browser/resources/pdf/pdf.js (right): https://codereview.chromium.org/814573004/diff/180001/chrome/browser/resources/pdf/pdf.js#newcode638 chrome/browser/resources/pdf/pdf.js:638: }, Can we move all this stuff into ...
5 years, 10 months ago (2015-02-06 03:11:07 UTC) #23
Sam McNally
https://codereview.chromium.org/814573004/diff/180001/chrome/browser/resources/pdf/pdf.js File chrome/browser/resources/pdf/pdf.js (right): https://codereview.chromium.org/814573004/diff/180001/chrome/browser/resources/pdf/pdf.js#newcode61 chrome/browser/resources/pdf/pdf.js:61: * The timer interval for drag scroll when we ...
5 years, 10 months ago (2015-02-06 03:43:07 UTC) #24
Deepak
@Sam Thanks for review. PTAL. https://codereview.chromium.org/814573004/diff/180001/chrome/browser/resources/pdf/pdf.js File chrome/browser/resources/pdf/pdf.js (right): https://codereview.chromium.org/814573004/diff/180001/chrome/browser/resources/pdf/pdf.js#newcode61 chrome/browser/resources/pdf/pdf.js:61: * The timer interval ...
5 years, 10 months ago (2015-02-06 08:33:43 UTC) #25
Deepak
@raymes Have moved related functionality in separate file. @Sam Changes done as suggested. Thanks, PTAL.
5 years, 10 months ago (2015-02-06 10:40:13 UTC) #26
Deepak
@raymes Have moved related functionality in separate file. @Sam Changes done as suggested. Thanks, PTAL.
5 years, 10 months ago (2015-02-09 13:25:47 UTC) #27
Sam McNally
https://codereview.chromium.org/814573004/diff/220001/chrome/browser/resources/pdf/viewportscroller.js File chrome/browser/resources/pdf/viewportscroller.js (right): https://codereview.chromium.org/814573004/diff/220001/chrome/browser/resources/pdf/viewportscroller.js#newcode1 chrome/browser/resources/pdf/viewportscroller.js:1: // Copyright 2015 The Chromium Authors. All rights reserved. ...
5 years, 10 months ago (2015-02-11 06:59:13 UTC) #28
Deepak
Thanks for Review. Changes done as suggested. PTAL. https://codereview.chromium.org/814573004/diff/220001/chrome/browser/resources/pdf/viewportscroller.js File chrome/browser/resources/pdf/viewportscroller.js (right): https://codereview.chromium.org/814573004/diff/220001/chrome/browser/resources/pdf/viewportscroller.js#newcode1 chrome/browser/resources/pdf/viewportscroller.js:1: // ...
5 years, 10 months ago (2015-02-11 10:29:56 UTC) #29
raymes
lgtm please wait for sammc@ https://codereview.chromium.org/814573004/diff/240001/chrome/browser/resources/pdf/viewport_scroller.js File chrome/browser/resources/pdf/viewport_scroller.js (right): https://codereview.chromium.org/814573004/diff/240001/chrome/browser/resources/pdf/viewport_scroller.js#newcode10 chrome/browser/resources/pdf/viewport_scroller.js:10: * @param {Object} plugin ...
5 years, 10 months ago (2015-02-12 06:22:31 UTC) #30
Sam McNally
LGTM with a couple nits. https://codereview.chromium.org/814573004/diff/240001/chrome/browser/resources/pdf/viewport_scroller.js File chrome/browser/resources/pdf/viewport_scroller.js (right): https://codereview.chromium.org/814573004/diff/240001/chrome/browser/resources/pdf/viewport_scroller.js#newcode22 chrome/browser/resources/pdf/viewport_scroller.js:22: this.DRAG_TIMER_INTERVAL = 100; I ...
5 years, 10 months ago (2015-02-12 06:27:45 UTC) #31
Deepak
Thanks @Raymes and @Sam for review. All nit addressed. Thanks https://codereview.chromium.org/814573004/diff/240001/chrome/browser/resources/pdf/viewport_scroller.js File chrome/browser/resources/pdf/viewport_scroller.js (right): https://codereview.chromium.org/814573004/diff/240001/chrome/browser/resources/pdf/viewport_scroller.js#newcode10 ...
5 years, 10 months ago (2015-02-12 08:28:32 UTC) #33
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/814573004/260001
5 years, 10 months ago (2015-02-12 08:29:00 UTC) #35
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/42233)
5 years, 10 months ago (2015-02-12 08:34:57 UTC) #37
Deepak
++Adding @bauerb for component_extension_resources.grd file approval. Thanks
5 years, 10 months ago (2015-02-12 08:39:40 UTC) #39
Bernhard Bauer
https://codereview.chromium.org/814573004/diff/260001/chrome/browser/resources/pdf/viewport_scroller.js File chrome/browser/resources/pdf/viewport_scroller.js (right): https://codereview.chromium.org/814573004/diff/260001/chrome/browser/resources/pdf/viewport_scroller.js#newcode4 chrome/browser/resources/pdf/viewport_scroller.js:4: 'use strict'; ? https://codereview.chromium.org/814573004/diff/260001/chrome/browser/resources/pdf/viewport_scroller.js#newcode10 chrome/browser/resources/pdf/viewport_scroller.js:10: ViewportScroller.DRAG_TIMER_INTERVAL_ = 100; Please ...
5 years, 10 months ago (2015-02-12 09:24:19 UTC) #41
Deepak
PTAL https://codereview.chromium.org/814573004/diff/260001/chrome/browser/resources/pdf/viewport_scroller.js File chrome/browser/resources/pdf/viewport_scroller.js (right): https://codereview.chromium.org/814573004/diff/260001/chrome/browser/resources/pdf/viewport_scroller.js#newcode4 chrome/browser/resources/pdf/viewport_scroller.js:4: On 2015/02/12 09:24:18, Bernhard Bauer wrote: > 'use ...
5 years, 10 months ago (2015-02-12 10:13:49 UTC) #42
Bernhard Bauer
https://codereview.chromium.org/814573004/diff/260001/chrome/browser/resources/pdf/viewport_scroller.js File chrome/browser/resources/pdf/viewport_scroller.js (right): https://codereview.chromium.org/814573004/diff/260001/chrome/browser/resources/pdf/viewport_scroller.js#newcode4 chrome/browser/resources/pdf/viewport_scroller.js:4: On 2015/02/12 10:13:49, Deepak wrote: > On 2015/02/12 09:24:18, ...
5 years, 10 months ago (2015-02-12 10:31:51 UTC) #43
Deepak
Thanks for review. Changes done as suggested. PTAL. On 2015/02/12 10:31:51, Bernhard Bauer wrote: > ...
5 years, 10 months ago (2015-02-12 12:30:56 UTC) #44
Bernhard Bauer
https://codereview.chromium.org/814573004/diff/320001/chrome/browser/resources/pdf/viewport_scroller.js File chrome/browser/resources/pdf/viewport_scroller.js (right): https://codereview.chromium.org/814573004/diff/320001/chrome/browser/resources/pdf/viewport_scroller.js#newcode35 chrome/browser/resources/pdf/viewport_scroller.js:35: this.startTime_ = 0; I would probably call this |lastFrameTime_|. ...
5 years, 10 months ago (2015-02-12 14:25:44 UTC) #45
Sam McNally
https://codereview.chromium.org/814573004/diff/260001/chrome/browser/resources/pdf/viewport_scroller.js File chrome/browser/resources/pdf/viewport_scroller.js (right): https://codereview.chromium.org/814573004/diff/260001/chrome/browser/resources/pdf/viewport_scroller.js#newcode4 chrome/browser/resources/pdf/viewport_scroller.js:4: On 2015/02/12 10:31:51, Bernhard Bauer wrote: > On 2015/02/12 ...
5 years, 10 months ago (2015-02-12 22:32:01 UTC) #46
Deepak
Thanks for review. Changes done as suggested. PTAL https://codereview.chromium.org/814573004/diff/320001/chrome/browser/resources/pdf/viewport_scroller.js File chrome/browser/resources/pdf/viewport_scroller.js (right): https://codereview.chromium.org/814573004/diff/320001/chrome/browser/resources/pdf/viewport_scroller.js#newcode35 chrome/browser/resources/pdf/viewport_scroller.js:35: this.startTime_ ...
5 years, 10 months ago (2015-02-13 03:40:21 UTC) #47
Bernhard Bauer
https://codereview.chromium.org/814573004/diff/340001/chrome/browser/resources/pdf/viewport_scroller.js File chrome/browser/resources/pdf/viewport_scroller.js (right): https://codereview.chromium.org/814573004/diff/340001/chrome/browser/resources/pdf/viewport_scroller.js#newcode71 chrome/browser/resources/pdf/viewport_scroller.js:71: var currentFrameTime_ = Date.now(); And local variables don't end ...
5 years, 10 months ago (2015-02-13 10:06:23 UTC) #48
Deepak
Ah! sorry, I missed that. Changes done. PTAL https://codereview.chromium.org/814573004/diff/340001/chrome/browser/resources/pdf/viewport_scroller.js File chrome/browser/resources/pdf/viewport_scroller.js (right): https://codereview.chromium.org/814573004/diff/340001/chrome/browser/resources/pdf/viewport_scroller.js#newcode71 chrome/browser/resources/pdf/viewport_scroller.js:71: var ...
5 years, 10 months ago (2015-02-13 11:11:09 UTC) #49
Bernhard Bauer
Thanks, LGTM.
5 years, 10 months ago (2015-02-13 11:19:21 UTC) #50
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/814573004/360001
5 years, 10 months ago (2015-02-13 11:28:16 UTC) #52
commit-bot: I haz the power
Committed patchset #19 (id:360001)
5 years, 10 months ago (2015-02-13 11:56:31 UTC) #53
commit-bot: I haz the power
5 years, 10 months ago (2015-02-13 11:57:09 UTC) #54
Message was sent while issue was closed.
Patchset 19 (id:??) landed as
https://crrev.com/423f09c6d2be8c916637cdda28ed0ee4e12490e0
Cr-Commit-Position: refs/heads/master@{#316204}

Powered by Google App Engine
This is Rietveld 408576698