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

Issue 2935303003: Print Preview: Remove global onPrivetPrintFailed (Closed)

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

Description

Print Preview: Remove global onPrivetPrintFailed Remove global onPrivetPrintFailed method and replace with a WebUI listener. Also rename to onPrintFailed/print-failed since this can also be called due to an extension printer failure. BUG=717296 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:closure_compilation Review-Url: https://codereview.chromium.org/2935303003 Cr-Commit-Position: refs/heads/master@{#479778} Committed: https://chromium.googlesource.com/chromium/src/+/30eeb64af965012272dc1ed7be0c0e6db5005871

Patch Set 1 #

Patch Set 2 : Fix #

Total comments: 4

Patch Set 3 : Add listener tracker to remove listeners #

Patch Set 4 : Fix #

Total comments: 7

Patch Set 5 : Fix annotations #

Unified diffs Side-by-side diffs Delta from patch set Stats (+89 lines, -54 lines) Patch
M chrome/browser/resources/print_preview/compiled_resources2.gyp View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/resources/print_preview/component.js View 1 2 3 4 4 chunks +16 lines, -7 lines 0 comments Download
M chrome/browser/resources/print_preview/data/destination_store.js View 1 2 1 chunk +0 lines, -4 lines 0 comments Download
M chrome/browser/resources/print_preview/native_layer.js View 1 2 3 chunks +0 lines, -14 lines 0 comments Download
M chrome/browser/resources/print_preview/print_preview.html View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/resources/print_preview/print_preview.js View 1 2 3 3 chunks +13 lines, -9 lines 0 comments Download
M chrome/browser/ui/webui/print_preview/print_preview_handler.cc View 1 6 chunks +6 lines, -20 lines 0 comments Download
A ui/webui/resources/html/webui_listener_tracker.html View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M ui/webui/resources/js/compiled_resources2.gyp View 1 2 1 chunk +7 lines, -0 lines 0 comments Download
A ui/webui/resources/js/webui_listener_tracker.js View 1 2 3 1 chunk +42 lines, -0 lines 0 comments Download
M ui/webui/resources/webui_resources.grd View 1 2 1 chunk +2 lines, -0 lines 0 comments Download

Depends on Patchset:

Dependent Patchsets:

Messages

Total messages: 27 (18 generated)
rbpotter
3 years, 6 months ago (2017-06-14 19:25:36 UTC) #8
dpapad
https://codereview.chromium.org/2935303003/diff/20001/chrome/browser/resources/print_preview/native_layer.js File chrome/browser/resources/print_preview/native_layer.js (right): https://codereview.chromium.org/2935303003/diff/20001/chrome/browser/resources/print_preview/native_layer.js#newcode153 chrome/browser/resources/print_preview/native_layer.js:153: PRIVET_PRINT_FAILED: 'print_preview.NativeLayer.PRIVET_PRINT_FAILED', Is this still needed? https://codereview.chromium.org/2935303003/diff/20001/chrome/browser/resources/print_preview/print_preview.js File chrome/browser/resources/print_preview/print_preview.js ...
3 years, 6 months ago (2017-06-14 20:52:45 UTC) #11
rbpotter
https://codereview.chromium.org/2935303003/diff/20001/chrome/browser/resources/print_preview/native_layer.js File chrome/browser/resources/print_preview/native_layer.js (right): https://codereview.chromium.org/2935303003/diff/20001/chrome/browser/resources/print_preview/native_layer.js#newcode153 chrome/browser/resources/print_preview/native_layer.js:153: PRIVET_PRINT_FAILED: 'print_preview.NativeLayer.PRIVET_PRINT_FAILED', On 2017/06/14 20:52:45, dpapad wrote: > Is ...
3 years, 6 months ago (2017-06-14 22:52:55 UTC) #14
dpapad
This looks almost l-g-t-m, see comment about webui_listener_tracker.js location. Also once this lands, we can ...
3 years, 6 months ago (2017-06-15 00:19:18 UTC) #15
dpapad
On 2017/06/15 at 00:19:18, dpapad wrote: > This looks almost l-g-t-m, see comment about webui_listener_tracker.js ...
3 years, 6 months ago (2017-06-15 00:21:24 UTC) #16
rbpotter
https://codereview.chromium.org/2935303003/diff/60001/chrome/browser/resources/print_preview/component.js File chrome/browser/resources/print_preview/component.js (right): https://codereview.chromium.org/2935303003/diff/60001/chrome/browser/resources/print_preview/component.js#newcode26 chrome/browser/resources/print_preview/component.js:26: * @private {EventTracker} On 2017/06/15 00:19:18, dpapad wrote: > ...
3 years, 6 months ago (2017-06-15 01:03:01 UTC) #19
dpapad
LGTM
3 years, 6 months ago (2017-06-15 01:12:06 UTC) #20
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/2935303003/80001
3 years, 6 months ago (2017-06-15 19:16:23 UTC) #24
commit-bot: I haz the power
3 years, 6 months ago (2017-06-15 19:23:40 UTC) #27
Message was sent while issue was closed.
Committed patchset #5 (id:80001) as
https://chromium.googlesource.com/chromium/src/+/30eeb64af965012272dc1ed7be0c...

Powered by Google App Engine
This is Rietveld 408576698