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

Issue 7891016: Print Preview: Adding UI for margin settings. (Closed)

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

Description

Print Preview: Adding UI for margin settings. BUG=69337 TEST=Open print preview. Margin options should be available. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=105044

Patch Set 1 #

Patch Set 2 : Initial refactoring #

Patch Set 3 : Adding event listeners in PreviewArea #

Patch Set 4 : Making several cleanups #

Patch Set 5 : Moving some logic in MarginTextbox #

Patch Set 6 : Refactoring more logic to separate classes. #

Patch Set 7 : Move some logic within MarginTextbox #

Patch Set 8 : Moving registration of listeners within MarginTextbox. #

Patch Set 9 : Adding documentation to new classes #

Patch Set 10 : Moving more and removing more logic #

Patch Set 11 : Moving MarginLine to its own file #

Patch Set 12 : Cleanups #

Patch Set 13 : Initializing UI only once #

Patch Set 14 : Fixing positioning of textboxes #

Patch Set 15 : Making MarginsUI sublclass HTMLDivElement #

Patch Set 16 : Positioning UI using percentages (fixes zomming in/out problem) #

Patch Set 17 : Fixing redrawing while invalid values are present #

Patch Set 18 : Applying mask to not paint on top of scrollbars (works for zooming in/out too). #

Patch Set 19 : Resolving conflicts with trunk #

Patch Set 20 : Fixing behavior of textboxes (enter, escape, blur evet) #

Patch Set 21 : Various cleanups #

Patch Set 22 : Adding more documentation. #

Total comments: 26

Patch Set 23 : Addressing comments #

Total comments: 17

Patch Set 24 : Addressing comments #

Patch Set 25 : Removing print_preview.Point #

Total comments: 27

Patch Set 26 : Addressing comments #

Patch Set 27 : Minor changes #

Patch Set 28 : Fixing causing a regeneration because of rounding error. #

Total comments: 23

Patch Set 29 : Addressed comments #

Patch Set 30 : Nit #

Total comments: 1

Patch Set 31 : Resolving conflicts and fixing failing tests. #

Patch Set 32 : Rebasing #

Patch Set 33 : Fixing tests again. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1383 lines, -70 lines) Patch
A chrome/browser/resources/print_preview/margin_line.js View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 1 chunk +181 lines, -0 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 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 4 chunks +402 lines, -48 lines 0 comments Download
A chrome/browser/resources/print_preview/margin_textbox.js View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 1 chunk +282 lines, -0 lines 0 comments Download
A chrome/browser/resources/print_preview/margin_utils.js View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 1 chunk +87 lines, -0 lines 0 comments Download
A chrome/browser/resources/print_preview/margins_ui.js View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 1 chunk +136 lines, -0 lines 0 comments Download
A chrome/browser/resources/print_preview/preview_area.js View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 1 chunk +136 lines, -0 lines 0 comments Download
M chrome/browser/resources/print_preview/print_header.js View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 1 chunk +5 lines, -0 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 13 14 15 16 17 18 19 20 21 22 23 1 chunk +39 lines, -0 lines 0 comments Download
M chrome/browser/resources/print_preview/print_preview.html View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 1 chunk +2 lines, -4 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 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 8 chunks +67 lines, -18 lines 0 comments Download
M chrome/browser/resources/print_preview/print_preview_utils.js View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 1 chunk +21 lines, -0 lines 0 comments Download
M chrome/browser/resources/print_preview/print_preview_utils_test.html View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 1 chunk +12 lines, -0 lines 0 comments Download
M chrome/test/data/webui/print_preview.js View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 1 chunk +13 lines, -0 lines 0 comments Download

Messages

Total messages: 12 (0 generated)
dpapad
Still working on adding some documentation in preview_area.js, did not want to delay the review ...
9 years, 2 months ago (2011-10-04 00:16:16 UTC) #1
Evan Stade
what is this "group name" concept? Is that a holdover from drawing lines for every ...
9 years, 2 months ago (2011-10-04 02:49:17 UTC) #2
dpapad
Addressed comments. groupName is still needed to associate textboxes and lines with the corresponding margin, ...
9 years, 2 months ago (2011-10-04 20:41:20 UTC) #3
Evan Stade
http://codereview.chromium.org/7891016/diff/73028/chrome/browser/resources/print_preview/margin_utils.js File chrome/browser/resources/print_preview/margin_utils.js (right): http://codereview.chromium.org/7891016/diff/73028/chrome/browser/resources/print_preview/margin_utils.js#newcode45 chrome/browser/resources/print_preview/margin_utils.js:45: // TODO(dpapad): convert |value| to number before comparing. I ...
9 years, 2 months ago (2011-10-05 03:05:23 UTC) #4
dpapad
Addressed comments. http://codereview.chromium.org/7891016/diff/73028/chrome/browser/resources/print_preview/margin_utils.js File chrome/browser/resources/print_preview/margin_utils.js (right): http://codereview.chromium.org/7891016/diff/73028/chrome/browser/resources/print_preview/margin_utils.js#newcode45 chrome/browser/resources/print_preview/margin_utils.js:45: // TODO(dpapad): convert |value| to number before ...
9 years, 2 months ago (2011-10-05 16:39:49 UTC) #5
Evan Stade
just nits http://codereview.chromium.org/7891016/diff/73028/chrome/browser/resources/print_preview/print_preview.css File chrome/browser/resources/print_preview/print_preview.css (right): http://codereview.chromium.org/7891016/diff/73028/chrome/browser/resources/print_preview/print_preview.css#newcode752 chrome/browser/resources/print_preview/print_preview.css:752: border-color: #4080FA; On 2011/10/05 16:39:49, dpapad wrote: ...
9 years, 2 months ago (2011-10-05 22:42:14 UTC) #6
dpapad
Addressed comments http://codereview.chromium.org/7891016/diff/80001/chrome/app/generated_resources.grd File chrome/app/generated_resources.grd (right): http://codereview.chromium.org/7891016/diff/80001/chrome/app/generated_resources.grd#newcode6076 chrome/app/generated_resources.grd:6076: Invalid margin values On 2011/10/05 22:42:14, Evan ...
9 years, 2 months ago (2011-10-06 00:05:39 UTC) #7
Evan Stade
http://codereview.chromium.org/7891016/diff/80001/chrome/browser/resources/print_preview/print_preview.js File chrome/browser/resources/print_preview/print_preview.js (right): http://codereview.chromium.org/7891016/diff/80001/chrome/browser/resources/print_preview/print_preview.js#newcode1002 chrome/browser/resources/print_preview/print_preview.js:1002: var pluginInterface = [ dummyPlugin.onload, On 2011/10/06 00:05:39, dpapad ...
9 years, 2 months ago (2011-10-07 03:29:58 UTC) #8
dpapad
Addressed comments. http://codereview.chromium.org/7891016/diff/96003/chrome/browser/resources/print_preview/margin_settings.js File chrome/browser/resources/print_preview/margin_settings.js (right): http://codereview.chromium.org/7891016/diff/96003/chrome/browser/resources/print_preview/margin_settings.js#newcode255 chrome/browser/resources/print_preview/margin_settings.js:255: for (var i = 0; i < ...
9 years, 2 months ago (2011-10-07 16:49:20 UTC) #9
Evan Stade
lgtm http://codereview.chromium.org/7891016/diff/96003/chrome/browser/resources/print_preview/margins_ui.js File chrome/browser/resources/print_preview/margins_ui.js (right): http://codereview.chromium.org/7891016/diff/96003/chrome/browser/resources/print_preview/margins_ui.js#newcode134 chrome/browser/resources/print_preview/margins_ui.js:134: this.style.clip = "rect(" + top + "px," + ...
9 years, 2 months ago (2011-10-07 19:53:09 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/7891016/115001
9 years, 2 months ago (2011-10-12 06:06:54 UTC) #11
commit-bot: I haz the power
9 years, 2 months ago (2011-10-12 08:57:29 UTC) #12
Change committed as 105044

Powered by Google App Engine
This is Rietveld 408576698