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

Issue 2865633004: Fix all remaining print preview closure compiler errors (Closed)

Created:
3 years, 7 months ago by rbpotter
Modified:
3 years, 7 months ago
Reviewers:
Dan Beam, dpapad
CC:
arv+watch_chromium.org, chromium-reviews
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix all remaining print preview closure compiler errors BUG=717620 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:closure_compilation Review-Url: https://codereview.chromium.org/2865633004 Cr-Commit-Position: refs/heads/master@{#470677} Committed: https://chromium.googlesource.com/chromium/src/+/419bda2ce75c18c90e66fae1d03fdd1e5479ce04

Patch Set 1 #

Patch Set 2 : Fix remaining issues #

Patch Set 3 : Fix small issues #

Total comments: 14

Patch Set 4 : Address comments #

Total comments: 4

Patch Set 5 : Restore global printPreview for tests #

Total comments: 2

Patch Set 6 : Revert test changes #

Patch Set 7 : Remove TODO and uncomment line #

Total comments: 8

Patch Set 8 : Address comments #

Total comments: 8

Patch Set 9 : Address comments #

Patch Set 10 : Fix onkeydown function #

Unified diffs Side-by-side diffs Delta from patch set Stats (+200 lines, -162 lines) Patch
M chrome/browser/resources/pdf/pdf_scripting_api.js View 1 2 3 4 5 6 7 8 5 chunks +25 lines, -10 lines 0 comments Download
M chrome/browser/resources/print_preview/data/destination_store.js View 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/resources/print_preview/preview_generator.js View 1 2 3 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/resources/print_preview/previewarea/margin_control.js View 1 2 3 2 chunks +2 lines, -1 line 0 comments Download
M chrome/browser/resources/print_preview/previewarea/margin_control_container.js View 1 2 3 4 5 6 7 4 chunks +5 lines, -3 lines 0 comments Download
M chrome/browser/resources/print_preview/previewarea/preview_area.js View 1 2 3 4 5 6 7 10 chunks +28 lines, -26 lines 0 comments Download
M chrome/browser/resources/print_preview/print_preview.js View 1 2 3 4 7 chunks +21 lines, -17 lines 0 comments Download
M chrome/browser/resources/print_preview/search/cloud_destination_list.js View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/resources/print_preview/search/destination_list.js View 4 chunks +7 lines, -6 lines 0 comments Download
M chrome/browser/resources/print_preview/search/destination_list_item.js View 1 2 3 4 5 6 7 8 9 8 chunks +9 lines, -8 lines 0 comments Download
M chrome/browser/resources/print_preview/search/destination_search.js View 1 2 3 4 5 6 7 7 chunks +11 lines, -10 lines 0 comments Download
M chrome/browser/resources/print_preview/search/provisional_destination_resolver.js View 1 2 3 6 chunks +34 lines, -28 lines 0 comments Download
M chrome/browser/resources/print_preview/search/recent_destination_list.js View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/resources/print_preview/settings/destination_settings.js View 1 2 3 8 chunks +30 lines, -28 lines 0 comments Download
M chrome/browser/resources/print_preview/settings/more_settings.js View 1 2 3 4 6 chunks +21 lines, -17 lines 0 comments Download
M third_party/closure_compiler/compiled_resources2.gyp View 1 2 3 4 5 6 1 chunk +1 line, -2 lines 0 comments Download

Depends on Patchset:

Messages

Total messages: 52 (32 generated)
rbpotter
3 years, 7 months ago (2017-05-08 18:49:11 UTC) #5
dpapad
https://codereview.chromium.org/2865633004/diff/40001/chrome/browser/resources/print_preview/preview_generator.js File chrome/browser/resources/print_preview/preview_generator.js (right): https://codereview.chromium.org/2865633004/diff/40001/chrome/browser/resources/print_preview/preview_generator.js#newcode105 chrome/browser/resources/print_preview/preview_generator.js:105: * @type {Array<Object<{from: number, to: number}>>} Shouldn't this be ...
3 years, 7 months ago (2017-05-08 20:40:10 UTC) #7
rbpotter
Addressed comments. Making the printPreview variable local to the anonymous function caused some additional compile ...
3 years, 7 months ago (2017-05-08 23:28:20 UTC) #9
dpapad
https://codereview.chromium.org/2865633004/diff/60001/chrome/test/data/webui/print_preview.js File chrome/test/data/webui/print_preview.js (right): https://codereview.chromium.org/2865633004/diff/60001/chrome/test/data/webui/print_preview.js#newcode89 chrome/test/data/webui/print_preview.js:89: print_preview.IsWebUITest = true; We are adding a DOMContentLoaded handler ...
3 years, 7 months ago (2017-05-08 23:39:49 UTC) #11
dpapad
https://codereview.chromium.org/2865633004/diff/60001/chrome/browser/resources/print_preview/settings/more_settings.js File chrome/browser/resources/print_preview/settings/more_settings.js (right): https://codereview.chromium.org/2865633004/diff/60001/chrome/browser/resources/print_preview/settings/more_settings.js#newcode61 chrome/browser/resources/print_preview/settings/more_settings.js:61: ALL; Can this fit in previous line?
3 years, 7 months ago (2017-05-08 23:50:30 UTC) #12
rbpotter
https://codereview.chromium.org/2865633004/diff/60001/chrome/browser/resources/print_preview/settings/more_settings.js File chrome/browser/resources/print_preview/settings/more_settings.js (right): https://codereview.chromium.org/2865633004/diff/60001/chrome/browser/resources/print_preview/settings/more_settings.js#newcode61 chrome/browser/resources/print_preview/settings/more_settings.js:61: ALL; On 2017/05/08 23:50:30, dpapad wrote: > Can this ...
3 years, 7 months ago (2017-05-09 00:08:52 UTC) #14
dpapad
LGTM https://codereview.chromium.org/2865633004/diff/80001/chrome/test/data/webui/print_preview.js File chrome/test/data/webui/print_preview.js (right): https://codereview.chromium.org/2865633004/diff/80001/chrome/test/data/webui/print_preview.js#newcode122 chrome/test/data/webui/print_preview.js:122: Nit: Maybe revert changes in this file for ...
3 years, 7 months ago (2017-05-09 01:18:08 UTC) #16
rbpotter
Also uncommented line in compiled_resources2 https://codereview.chromium.org/2865633004/diff/80001/chrome/test/data/webui/print_preview.js File chrome/test/data/webui/print_preview.js (right): https://codereview.chromium.org/2865633004/diff/80001/chrome/test/data/webui/print_preview.js#newcode122 chrome/test/data/webui/print_preview.js:122: On 2017/05/09 01:18:07, dpapad ...
3 years, 7 months ago (2017-05-09 01:36:36 UTC) #22
dpapad
On 2017/05/09 at 01:36:36, rbpotter wrote: > Also uncommented line in compiled_resources2 Thanks. > > ...
3 years, 7 months ago (2017-05-09 17:04:50 UTC) #25
rbpotter
On 2017/05/09 17:04:50, dpapad wrote: > On 2017/05/09 at 01:36:36, rbpotter wrote: > > Also ...
3 years, 7 months ago (2017-05-09 20:40:52 UTC) #27
Dan Beam
ultimately the third_party/closure_compiler stuff lgtm (as you're just uncommenting a file) but had other comments ...
3 years, 7 months ago (2017-05-09 21:25:48 UTC) #28
rbpotter
https://codereview.chromium.org/2865633004/diff/140001/chrome/browser/resources/print_preview/previewarea/margin_control_container.js File chrome/browser/resources/print_preview/previewarea/margin_control_container.js (right): https://codereview.chromium.org/2865633004/diff/140001/chrome/browser/resources/print_preview/previewarea/margin_control_container.js#newcode371 chrome/browser/resources/print_preview/previewarea/margin_control_container.js:371: * controls. On 2017/05/09 21:25:47, Dan Beam wrote: > ...
3 years, 7 months ago (2017-05-09 22:32:14 UTC) #31
Dan Beam
still lgtm https://codereview.chromium.org/2865633004/diff/180001/chrome/browser/resources/pdf/pdf_scripting_api.js File chrome/browser/resources/pdf/pdf_scripting_api.js (right): https://codereview.chromium.org/2865633004/diff/180001/chrome/browser/resources/pdf/pdf_scripting_api.js#newcode75 chrome/browser/resources/pdf/pdf_scripting_api.js:75: */ (event.data); nit: this is prettier, imo ...
3 years, 7 months ago (2017-05-10 00:00:14 UTC) #35
rbpotter
https://codereview.chromium.org/2865633004/diff/180001/chrome/browser/resources/pdf/pdf_scripting_api.js File chrome/browser/resources/pdf/pdf_scripting_api.js (right): https://codereview.chromium.org/2865633004/diff/180001/chrome/browser/resources/pdf/pdf_scripting_api.js#newcode75 chrome/browser/resources/pdf/pdf_scripting_api.js:75: */ (event.data); On 2017/05/10 00:00:14, Dan Beam wrote: > ...
3 years, 7 months ago (2017-05-10 01:56:23 UTC) #38
dpapad
https://codereview.chromium.org/2865633004/diff/180001/chrome/browser/resources/print_preview/search/destination_list_item.js File chrome/browser/resources/print_preview/search/destination_list_item.js (right): https://codereview.chromium.org/2865633004/diff/180001/chrome/browser/resources/print_preview/search/destination_list_item.js#newcode337 chrome/browser/resources/print_preview/search/destination_list_item.js:337: if (e && hasKeyModifiers(e)) On 2017/05/10 at 01:56:23, rbpotter ...
3 years, 7 months ago (2017-05-10 02:54:12 UTC) #39
dpapad
https://codereview.chromium.org/2865633004/diff/180001/chrome/browser/resources/print_preview/search/destination_list_item.js File chrome/browser/resources/print_preview/search/destination_list_item.js (right): https://codereview.chromium.org/2865633004/diff/180001/chrome/browser/resources/print_preview/search/destination_list_item.js#newcode337 chrome/browser/resources/print_preview/search/destination_list_item.js:337: if (e && hasKeyModifiers(e)) > Nit(optional): It seems that ...
3 years, 7 months ago (2017-05-10 02:59:20 UTC) #40
Dan Beam
https://codereview.chromium.org/2865633004/diff/180001/chrome/browser/resources/print_preview/search/destination_list_item.js File chrome/browser/resources/print_preview/search/destination_list_item.js (right): https://codereview.chromium.org/2865633004/diff/180001/chrome/browser/resources/print_preview/search/destination_list_item.js#newcode337 chrome/browser/resources/print_preview/search/destination_list_item.js:337: if (e && hasKeyModifiers(e)) On 2017/05/10 02:59:20, dpapad wrote: ...
3 years, 7 months ago (2017-05-10 03:18:35 UTC) #41
rbpotter
https://codereview.chromium.org/2865633004/diff/180001/chrome/browser/resources/print_preview/search/destination_list_item.js File chrome/browser/resources/print_preview/search/destination_list_item.js (right): https://codereview.chromium.org/2865633004/diff/180001/chrome/browser/resources/print_preview/search/destination_list_item.js#newcode337 chrome/browser/resources/print_preview/search/destination_list_item.js:337: if (e && hasKeyModifiers(e)) On 2017/05/10 03:18:35, Dan Beam ...
3 years, 7 months ago (2017-05-10 03:42:11 UTC) #44
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/2865633004/220001
3 years, 7 months ago (2017-05-10 19:38:28 UTC) #49
commit-bot: I haz the power
3 years, 7 months ago (2017-05-10 19:51:25 UTC) #52
Message was sent while issue was closed.
Committed patchset #10 (id:220001) as
https://chromium.googlesource.com/chromium/src/+/419bda2ce75c18c90e66fae1d03f...

Powered by Google App Engine
This is Rietveld 408576698