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

Issue 900503002: List printers managed by extensions in print preview (Closed)

Created:
5 years, 10 months ago by tbarzic
Modified:
5 years, 10 months ago
CC:
chromium-reviews, arv+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

List printers managed by extensions in print preview The CL adds support for print destinations managed by extensions (using chrome.printerProvider API) to print preview. These destinations are added to local printers list with the icon set to the extension icon, but that will probably be changed before the API goes to stable. Also, this does not implement print requests for these destinations, so the 'Print' button is disabled for them. BUG=408772 Committed: https://crrev.com/598c3e9b0e32c0e11debfa2d2da79586c5576a59 Cr-Commit-Position: refs/heads/master@{#314621}

Patch Set 1 #

Total comments: 4

Patch Set 2 : . #

Total comments: 22

Patch Set 3 : . #

Patch Set 4 : . #

Patch Set 5 : . #

Total comments: 7

Patch Set 6 : . #

Unified diffs Side-by-side diffs Delta from patch set Stats (+507 lines, -72 lines) Patch
M chrome/browser/resources/print_preview/data/app_state.js View 1 2 3 chunks +10 lines, -0 lines 0 comments Download
M chrome/browser/resources/print_preview/data/destination.js View 1 2 3 4 5 7 chunks +30 lines, -1 line 0 comments Download
M chrome/browser/resources/print_preview/data/destination_store.js View 1 2 3 4 5 12 chunks +141 lines, -6 lines 0 comments Download
M chrome/browser/resources/print_preview/data/local_parsers.js View 1 2 1 chunk +22 lines, -1 line 0 comments Download
M chrome/browser/resources/print_preview/native_layer.js View 1 2 3 4 7 chunks +77 lines, -0 lines 0 comments Download
M chrome/browser/resources/print_preview/print_header.js View 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/ui/webui/print_preview/print_preview_handler.h View 1 2 3 4 3 chunks +21 lines, -0 lines 0 comments Download
M chrome/browser/ui/webui/print_preview/print_preview_handler.cc View 1 2 3 4 chunks +68 lines, -0 lines 0 comments Download
M extensions/browser/api/printer_provider/printer_provider_api.h View 1 2 3 3 chunks +23 lines, -16 lines 0 comments Download
M extensions/browser/api/printer_provider/printer_provider_api.cc View 1 2 3 4 6 chunks +64 lines, -8 lines 0 comments Download
M extensions/browser/api/printer_provider/printer_provider_apitest.cc View 1 2 3 4 5 7 chunks +26 lines, -25 lines 0 comments Download
M extensions/browser/api/printer_provider_internal/printer_provider_internal_api.h View 1 2 1 chunk +4 lines, -3 lines 0 comments Download
M extensions/browser/api/printer_provider_internal/printer_provider_internal_api.cc View 1 2 2 chunks +11 lines, -11 lines 0 comments Download
M extensions/browser/api/printer_provider_internal/printer_provider_internal_api_observer.h View 1 2 3 chunks +7 lines, -1 line 0 comments Download

Messages

Total messages: 22 (4 generated)
tbarzic
5 years, 10 months ago (2015-02-03 02:21:13 UTC) #2
Vitaly Buka (NO REVIEWS)
lgtm Aleksey, PTAL? https://codereview.chromium.org/900503002/diff/1/chrome/browser/ui/webui/print_preview/print_preview_handler.cc File chrome/browser/ui/webui/print_preview/print_preview_handler.cc (right): https://codereview.chromium.org/900503002/diff/1/chrome/browser/ui/webui/print_preview/print_preview_handler.cc#newcode744 chrome/browser/ui/webui/print_preview/print_preview_handler.cc:744: ok = ok && args->GetString(0, &extension_id); ...
5 years, 10 months ago (2015-02-03 16:55:48 UTC) #3
tbarzic
https://codereview.chromium.org/900503002/diff/1/chrome/browser/ui/webui/print_preview/print_preview_handler.cc File chrome/browser/ui/webui/print_preview/print_preview_handler.cc (right): https://codereview.chromium.org/900503002/diff/1/chrome/browser/ui/webui/print_preview/print_preview_handler.cc#newcode1656 chrome/browser/ui/webui/print_preview/print_preview_handler.cc:1656: base::StringValue(printer_id), On 2015/02/03 16:55:48, Vitaly Buka wrote: > consider ...
5 years, 10 months ago (2015-02-03 17:07:27 UTC) #4
Vitaly Buka (NO REVIEWS)
I am more concerting about new filed extensionID in destination. Why WebUI need extension ID? ...
5 years, 10 months ago (2015-02-03 17:12:30 UTC) #5
Vitaly Buka (NO REVIEWS)
On 2015/02/03 17:12:30, Vitaly Buka wrote: > I am more concerting about new filed extensionID ...
5 years, 10 months ago (2015-02-03 17:13:46 UTC) #6
tbarzic
yeah, even if the exact UI changes, we'll probably still need a way to attribute ...
5 years, 10 months ago (2015-02-03 17:16:33 UTC) #7
Vitaly Buka (NO REVIEWS)
On 2015/02/03 17:13:46, Vitaly Buka wrote: > On 2015/02/03 17:12:30, Vitaly Buka wrote: > > ...
5 years, 10 months ago (2015-02-03 17:16:43 UTC) #8
tbarzic
On 2015/02/03 17:16:43, Vitaly Buka wrote: > On 2015/02/03 17:13:46, Vitaly Buka wrote: > > ...
5 years, 10 months ago (2015-02-03 17:19:20 UTC) #9
Vitaly Buka (NO REVIEWS)
On 2015/02/03 17:19:20, tbarzic wrote: > On 2015/02/03 17:16:43, Vitaly Buka wrote: > > On ...
5 years, 10 months ago (2015-02-03 17:20:59 UTC) #10
Aleksey Shlyapnikov
https://codereview.chromium.org/900503002/diff/20001/chrome/browser/resources/print_preview/data/destination_store.js File chrome/browser/resources/print_preview/data/destination_store.js (right): https://codereview.chromium.org/900503002/diff/20001/chrome/browser/resources/print_preview/data/destination_store.js#newcode233 chrome/browser/resources/print_preview/data/destination_store.js:233: DestinationStore.EXTENSION_SEARCH_DURATION_ = 2000; Just 2 seconds? https://codereview.chromium.org/900503002/diff/20001/chrome/browser/resources/print_preview/data/local_parsers.js File chrome/browser/resources/print_preview/data/local_parsers.js ...
5 years, 10 months ago (2015-02-03 20:18:24 UTC) #11
tbarzic
Moved printer id marshaling to PrinterProviderAPI. https://codereview.chromium.org/900503002/diff/20001/chrome/browser/resources/print_preview/data/destination_store.js File chrome/browser/resources/print_preview/data/destination_store.js (right): https://codereview.chromium.org/900503002/diff/20001/chrome/browser/resources/print_preview/data/destination_store.js#newcode233 chrome/browser/resources/print_preview/data/destination_store.js:233: DestinationStore.EXTENSION_SEARCH_DURATION_ = 2000; ...
5 years, 10 months ago (2015-02-04 02:21:23 UTC) #12
Vitaly Buka (NO REVIEWS)
lgtm https://codereview.chromium.org/900503002/diff/80001/chrome/browser/resources/print_preview/data/destination_store.js File chrome/browser/resources/print_preview/data/destination_store.js (right): https://codereview.chromium.org/900503002/diff/80001/chrome/browser/resources/print_preview/data/destination_store.js#newcode377 chrome/browser/resources/print_preview/data/destination_store.js:377: this.appState_.selectedDestinationExtensionId) { this should be impossible
5 years, 10 months ago (2015-02-04 02:54:45 UTC) #13
Aleksey Shlyapnikov
lgtm https://codereview.chromium.org/900503002/diff/80001/chrome/browser/resources/print_preview/data/destination.js File chrome/browser/resources/print_preview/data/destination.js (right): https://codereview.chromium.org/900503002/diff/80001/chrome/browser/resources/print_preview/data/destination.js#newcode361 chrome/browser/resources/print_preview/data/destination.js:361: * for extension managed printers. Nit: It is ...
5 years, 10 months ago (2015-02-04 18:50:27 UTC) #14
tbarzic
https://codereview.chromium.org/900503002/diff/80001/chrome/browser/resources/print_preview/data/destination.js File chrome/browser/resources/print_preview/data/destination.js (right): https://codereview.chromium.org/900503002/diff/80001/chrome/browser/resources/print_preview/data/destination.js#newcode361 chrome/browser/resources/print_preview/data/destination.js:361: * for extension managed printers. On 2015/02/04 18:50:27, Aleksey ...
5 years, 10 months ago (2015-02-04 19:27:41 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/900503002/100001
5 years, 10 months ago (2015-02-04 19:29:12 UTC) #18
commit-bot: I haz the power
Committed patchset #6 (id:100001)
5 years, 10 months ago (2015-02-04 20:16:23 UTC) #19
commit-bot: I haz the power
Patchset 6 (id:??) landed as https://crrev.com/598c3e9b0e32c0e11debfa2d2da79586c5576a59 Cr-Commit-Position: refs/heads/master@{#314621}
5 years, 10 months ago (2015-02-04 20:17:41 UTC) #20
Nico
5 years, 10 months ago (2015-02-06 00:46:23 UTC) #22
Message was sent while issue was closed.
https://codereview.chromium.org/900503002/diff/80001/extensions/browser/api/p...
File extensions/browser/api/printer_provider/printer_provider_apitest.cc
(right):

https://codereview.chromium.org/900503002/diff/80001/extensions/browser/api/p...
extensions/browser/api/printer_provider/printer_provider_apitest.cc:271:
"\"id\":\"%s:printer1\","
(fyi: https://codereview.chromium.org/902643002/ undoes this. strange
coincidence that this change happened on the same day i'm cq'ing my change, as
this feature has historically been used very rarely in the chrome codebase)

Powered by Google App Engine
This is Rietveld 408576698