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

Issue 2969383003: Print Preview: Finish removing global Javascript functions. (Closed)

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

Description

Print Preview: Finish removing global Javascript functions. Remove remaining global javascript functions from the print preview native layer and convert to sendWithPromise and web UI events. BUG=717296 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:closure_compilation Review-Url: https://codereview.chromium.org/2969383003 Cr-Commit-Position: refs/heads/master@{#485430} Committed: https://chromium.googlesource.com/chromium/src/+/c1665b3a3c4c1b59c69bca64af65aeb334a76311

Patch Set 1 #

Patch Set 2 : Clean up #

Total comments: 4

Patch Set 3 : Move listener addition #

Total comments: 11

Patch Set 4 : Address comments #

Total comments: 2

Patch Set 5 : Fix test #

Unified diffs Side-by-side diffs Delta from patch set Stats (+246 lines, -385 lines) Patch
M chrome/browser/resources/print_preview/data/destination_store.js View 1 2 3 6 chunks +22 lines, -20 lines 0 comments Download
M chrome/browser/resources/print_preview/native_layer.js View 1 7 chunks +12 lines, -154 lines 0 comments Download
M chrome/browser/resources/print_preview/preview_generator.js View 1 2 3 4 chunks +55 lines, -58 lines 0 comments Download
M chrome/browser/resources/print_preview/previewarea/preview_area.js View 1 2 2 chunks +1 line, -3 lines 0 comments Download
M chrome/browser/resources/print_preview/print_preview.js View 1 2 5 chunks +54 lines, -45 lines 0 comments Download
M chrome/browser/ui/webui/print_preview/print_preview_handler.h View 2 chunks +18 lines, -1 line 0 comments Download
M chrome/browser/ui/webui/print_preview/print_preview_handler.cc View 1 2 3 3 chunks +37 lines, -9 lines 0 comments Download
M chrome/browser/ui/webui/print_preview/print_preview_ui.h View 1 chunk +0 lines, -3 lines 0 comments Download
M chrome/browser/ui/webui/print_preview/print_preview_ui.cc View 3 chunks +6 lines, -25 lines 0 comments Download
M chrome/test/data/webui/print_preview/native_layer_stub.js View 1 2 3 4 3 chunks +25 lines, -21 lines 0 comments Download
M chrome/test/data/webui/print_preview/plugin_stub.js View 3 chunks +11 lines, -14 lines 0 comments Download
M chrome/test/data/webui/print_preview/print_preview_destination_search_test.js View 1 2 3 2 chunks +0 lines, -10 lines 0 comments Download
M chrome/test/data/webui/print_preview/print_preview_tests.js View 2 chunks +5 lines, -22 lines 0 comments Download

Depends on Patchset:

Messages

Total messages: 38 (26 generated)
rbpotter
3 years, 5 months ago (2017-07-07 01:39:29 UTC) #8
dpapad
https://codereview.chromium.org/2969383003/diff/20001/chrome/browser/resources/print_preview/print_preview.js File chrome/browser/resources/print_preview/print_preview.js (right): https://codereview.chromium.org/2969383003/diff/20001/chrome/browser/resources/print_preview/print_preview.js#newcode352 chrome/browser/resources/print_preview/print_preview.js:352: this.destinationStore_.onDestinationsReload_.bind( Two questions: 1) If onDestinationsReload_ has to be ...
3 years, 5 months ago (2017-07-07 17:28:44 UTC) #11
rbpotter
https://codereview.chromium.org/2969383003/diff/20001/chrome/browser/resources/print_preview/print_preview.js File chrome/browser/resources/print_preview/print_preview.js (right): https://codereview.chromium.org/2969383003/diff/20001/chrome/browser/resources/print_preview/print_preview.js#newcode352 chrome/browser/resources/print_preview/print_preview.js:352: this.destinationStore_.onDestinationsReload_.bind( On 2017/07/07 17:28:43, dpapad wrote: > Two questions: ...
3 years, 5 months ago (2017-07-07 17:40:14 UTC) #12
dpapad
https://codereview.chromium.org/2969383003/diff/20001/chrome/browser/resources/print_preview/print_preview.js File chrome/browser/resources/print_preview/print_preview.js (right): https://codereview.chromium.org/2969383003/diff/20001/chrome/browser/resources/print_preview/print_preview.js#newcode352 chrome/browser/resources/print_preview/print_preview.js:352: this.destinationStore_.onDestinationsReload_.bind( > 1) No, compiler did not complain. Will ...
3 years, 5 months ago (2017-07-07 18:04:29 UTC) #13
rbpotter
https://codereview.chromium.org/2969383003/diff/20001/chrome/browser/resources/print_preview/print_preview.js File chrome/browser/resources/print_preview/print_preview.js (right): https://codereview.chromium.org/2969383003/diff/20001/chrome/browser/resources/print_preview/print_preview.js#newcode352 chrome/browser/resources/print_preview/print_preview.js:352: this.destinationStore_.onDestinationsReload_.bind( On 2017/07/07 18:04:29, dpapad wrote: > > 1) ...
3 years, 5 months ago (2017-07-07 20:45:10 UTC) #18
dpapad
https://codereview.chromium.org/2969383003/diff/40001/chrome/browser/resources/print_preview/data/destination_store.js File chrome/browser/resources/print_preview/data/destination_store.js (right): https://codereview.chromium.org/2969383003/diff/40001/chrome/browser/resources/print_preview/data/destination_store.js#newcode548 chrome/browser/resources/print_preview/data/destination_store.js:548: * Registers the destination store for the WebUI events ...
3 years, 5 months ago (2017-07-07 21:12:41 UTC) #19
rbpotter
https://codereview.chromium.org/2969383003/diff/40001/chrome/browser/resources/print_preview/data/destination_store.js File chrome/browser/resources/print_preview/data/destination_store.js (right): https://codereview.chromium.org/2969383003/diff/40001/chrome/browser/resources/print_preview/data/destination_store.js#newcode548 chrome/browser/resources/print_preview/data/destination_store.js:548: * Registers the destination store for the WebUI events ...
3 years, 5 months ago (2017-07-07 23:58:40 UTC) #22
rbpotter
https://codereview.chromium.org/2969383003/diff/40001/chrome/browser/resources/print_preview/preview_generator.js File chrome/browser/resources/print_preview/preview_generator.js (right): https://codereview.chromium.org/2969383003/diff/40001/chrome/browser/resources/print_preview/preview_generator.js#newcode171 chrome/browser/resources/print_preview/preview_generator.js:171: addWebUIEventListeners: function(listenerTracker) { On 2017/07/07 23:58:39, rbpotter wrote: > ...
3 years, 5 months ago (2017-07-08 00:25:39 UTC) #23
dpapad
LGTM with nit. https://codereview.chromium.org/2969383003/diff/60001/chrome/test/data/webui/print_preview/native_layer_stub.js File chrome/test/data/webui/print_preview/native_layer_stub.js (right): https://codereview.chromium.org/2969383003/diff/60001/chrome/test/data/webui/print_preview/native_layer_stub.js#newcode105 chrome/test/data/webui/print_preview/native_layer_stub.js:105: pageRanges.forEach(function(range) { Nit: This logic can ...
3 years, 5 months ago (2017-07-08 00:40:03 UTC) #24
rbpotter
https://codereview.chromium.org/2969383003/diff/60001/chrome/test/data/webui/print_preview/native_layer_stub.js File chrome/test/data/webui/print_preview/native_layer_stub.js (right): https://codereview.chromium.org/2969383003/diff/60001/chrome/test/data/webui/print_preview/native_layer_stub.js#newcode105 chrome/test/data/webui/print_preview/native_layer_stub.js:105: pageRanges.forEach(function(range) { On 2017/07/08 00:40:03, dpapad wrote: > Nit: ...
3 years, 5 months ago (2017-07-08 03:10:52 UTC) #29
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/2969383003/80001
3 years, 5 months ago (2017-07-10 21:13:32 UTC) #34
commit-bot: I haz the power
3 years, 5 months ago (2017-07-10 22:42:09 UTC) #38
Message was sent while issue was closed.
Committed patchset #5 (id:80001) as
https://chromium.googlesource.com/chromium/src/+/c1665b3a3c4c1b59c69bca64af65...

Powered by Google App Engine
This is Rietveld 408576698