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

Issue 8233030: Print Preview: Making margin lines draggable. (Closed)

Created:
9 years, 2 months ago by dpapad
Modified:
9 years, 2 months ago
CC:
chromium-reviews, arv (Not doing code reviews)
Visibility:
Public.

Description

Print Preview: Making margin lines draggable. BUG=69337 TEST=Select custom margins. Click and drag on a margin line to adjust the value. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=106042

Patch Set 1 #

Patch Set 2 : Rebasing #

Patch Set 3 : Dragging works, need to handle corner cases. #

Patch Set 4 : Preventing from dragging to invalid values #

Patch Set 5 : Making plugin capture mouseevents while custom margins are displayed. #

Patch Set 6 : Fixing rounding error issues #

Patch Set 7 : Fixing mouse events outside the plugin area, adding documentations #

Total comments: 27

Patch Set 8 : Addressed comments #

Total comments: 34

Patch Set 9 : Addressed comments #

Patch Set 10 : Moving margins related css rules to a separate file. #

Patch Set 11 : Fixing rounding error corner case. #

Total comments: 4

Patch Set 12 : Addresing comments #

Total comments: 8

Patch Set 13 : Addressing comments #

Patch Set 14 : Fixing corner case #

Patch Set 15 : Rebasing #

Unified diffs Side-by-side diffs Delta from patch set Stats (+797 lines, -284 lines) Patch
M chrome/browser/resources/print_preview/margin_line.js View 1 chunk +12 lines, -90 lines 0 comments Download
M chrome/browser/resources/print_preview/margin_settings.js View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 13 chunks +138 lines, -15 lines 0 comments Download
M chrome/browser/resources/print_preview/margin_textbox.js View 1 2 3 4 5 6 7 8 9 10 11 12 9 chunks +48 lines, -64 lines 0 comments Download
M chrome/browser/resources/print_preview/margin_utils.js View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +75 lines, -13 lines 0 comments Download
A chrome/browser/resources/print_preview/margins.css View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +80 lines, -0 lines 0 comments Download
M chrome/browser/resources/print_preview/margins_ui.js View 1 2 3 4 5 6 7 8 9 10 11 12 3 chunks +108 lines, -43 lines 0 comments Download
A chrome/browser/resources/print_preview/margins_ui_pair.js View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +296 lines, -0 lines 0 comments Download
M chrome/browser/resources/print_preview/preview_area.js View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 2 chunks +16 lines, -8 lines 0 comments Download
M chrome/browser/resources/print_preview/print_preview.css View 1 2 3 4 5 6 7 8 9 10 11 12 7 chunks +21 lines, -51 lines 0 comments Download
M chrome/browser/resources/print_preview/print_preview.html View 1 2 3 4 5 6 7 8 9 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/resources/print_preview/print_preview.js View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 14 (0 generated)
dpapad
9 years, 2 months ago (2011-10-14 17:01:37 UTC) #1
Evan Stade
what happens when the user drags the mouse outside of the mainview (or outside the ...
9 years, 2 months ago (2011-10-14 19:04:49 UTC) #2
dpapad
I am listening for mousemove and mouseup in window.document, not mainview anymore. Therefore they are ...
9 years, 2 months ago (2011-10-14 20:57:58 UTC) #3
Evan Stade
http://codereview.chromium.org/8233030/diff/28001/chrome/browser/resources/print_preview/margins_ui.js File chrome/browser/resources/print_preview/margins_ui.js (right): http://codereview.chromium.org/8233030/diff/28001/chrome/browser/resources/print_preview/margins_ui.js#newcode161 chrome/browser/resources/print_preview/margins_ui.js:161: window.document.onmousemove = null; On 2011/10/14 20:57:58, dpapad wrote: > ...
9 years, 2 months ago (2011-10-14 21:58:36 UTC) #4
dpapad
Addressed comments. http://codereview.chromium.org/8233030/diff/32001/chrome/browser/resources/print_preview/margin_textbox.js File chrome/browser/resources/print_preview/margin_textbox.js (right): http://codereview.chromium.org/8233030/diff/32001/chrome/browser/resources/print_preview/margin_textbox.js#newcode61 chrome/browser/resources/print_preview/margin_textbox.js:61: return print_preview.extractMarginValue(this.value); On 2011/10/14 21:58:36, Evan Stade ...
9 years, 2 months ago (2011-10-14 23:14:38 UTC) #5
Evan Stade
http://codereview.chromium.org/8233030/diff/32001/chrome/browser/resources/print_preview/margin_textbox.js File chrome/browser/resources/print_preview/margin_textbox.js (right): http://codereview.chromium.org/8233030/diff/32001/chrome/browser/resources/print_preview/margin_textbox.js#newcode178 chrome/browser/resources/print_preview/margin_textbox.js:178: * Calculates the coordinates where |this| should be displayed. ...
9 years, 2 months ago (2011-10-17 21:36:45 UTC) #6
dpapad
Addressed comments. Also changed calls to the plugin so that we only query for the ...
9 years, 2 months ago (2011-10-17 23:28:06 UTC) #7
Evan Stade
http://codereview.chromium.org/8233030/diff/43001/chrome/browser/resources/print_preview/margin_utils.js File chrome/browser/resources/print_preview/margin_utils.js (right): http://codereview.chromium.org/8233030/diff/43001/chrome/browser/resources/print_preview/margin_utils.js#newcode52 chrome/browser/resources/print_preview/margin_utils.js:52: * minimum margin, 1 if the value is larger ...
9 years, 2 months ago (2011-10-18 01:04:40 UTC) #8
dpapad
Addressed comments http://codereview.chromium.org/8233030/diff/43001/chrome/browser/resources/print_preview/margin_utils.js File chrome/browser/resources/print_preview/margin_utils.js (right): http://codereview.chromium.org/8233030/diff/43001/chrome/browser/resources/print_preview/margin_utils.js#newcode52 chrome/browser/resources/print_preview/margin_utils.js:52: * minimum margin, 1 if the value ...
9 years, 2 months ago (2011-10-18 02:18:11 UTC) #9
Evan Stade
lgtm
9 years, 2 months ago (2011-10-18 03:56:07 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dpapad@chromium.org/8233030/44013
9 years, 2 months ago (2011-10-18 05:23:32 UTC) #11
commit-bot: I haz the power
Can't apply patch for file chrome/browser/resources/print_preview/margin_settings.js. While running patch -p1 --forward --force; patching file chrome/browser/resources/print_preview/margin_settings.js ...
9 years, 2 months ago (2011-10-18 05:23:34 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dpapad@chromium.org/8233030/46002
9 years, 2 months ago (2011-10-18 05:41:41 UTC) #13
commit-bot: I haz the power
9 years, 2 months ago (2011-10-18 07:28:48 UTC) #14
Change committed as 106042

Powered by Google App Engine
This is Rietveld 408576698