6 years, 2 months ago
(2014-09-24 02:59:37 UTC)
#1
Aleksey Shlyapnikov
https://codereview.chromium.org/595153003/diff/1/chrome/browser/resources/pdf/pdf_scripting_api.js File chrome/browser/resources/pdf/pdf_scripting_api.js (right): https://codereview.chromium.org/595153003/diff/1/chrome/browser/resources/pdf/pdf_scripting_api.js#newcode29 chrome/browser/resources/pdf/pdf_scripting_api.js:29: * viewportHeight: number}} I think every field should be ...
6 years, 2 months ago
(2014-09-24 17:54:43 UTC)
#2
cc: dbeam@ for CloudPrintRequest in cloud_print_interface.js:853 that's exported only for closure compiler. Should we fix ...
6 years, 2 months ago
(2014-09-24 20:39:50 UTC)
#3
cc: dbeam@ for CloudPrintRequest in cloud_print_interface.js:853 that's exported
only for closure compiler. Should we fix it in Compiler Pass?
https://codereview.chromium.org/595153003/diff/1/chrome/browser/resources/pdf...
File chrome/browser/resources/pdf/pdf_scripting_api.js (right):
https://codereview.chromium.org/595153003/diff/1/chrome/browser/resources/pdf...
chrome/browser/resources/pdf/pdf_scripting_api.js:29: * viewportHeight:
number}}
On 2014/09/24 17:54:43, Aleksey Shlyapnikov wrote:
> I think every field should be on its own line (just like the arguments, either
> everything fits onto one line or to each its own line).
Done.
https://codereview.chromium.org/595153003/diff/1/chrome/browser/resources/pri...
File chrome/browser/resources/print_preview/cloud_print_interface.js (right):
https://codereview.chromium.org/595153003/diff/1/chrome/browser/resources/pri...
chrome/browser/resources/print_preview/cloud_print_interface.js:853:
CloudPrintRequest: CloudPrintRequest
On 2014/09/24 17:54:43, Aleksey Shlyapnikov wrote:
> Why are you exporting it? It's not used anywhere outside of this file.
Right now that's the only way to use the type cloudprint.CloudPrintRequest
inside this file inside JSDoc to make it visible for the compiler. It's ugly,
for sure. Is it acceptable to commit such a thing?
https://codereview.chromium.org/595153003/diff/1/chrome/browser/resources/pri...
File chrome/browser/resources/print_preview/preview_generator.js (right):
https://codereview.chromium.org/595153003/diff/1/chrome/browser/resources/pri...
chrome/browser/resources/print_preview/preview_generator.js:62: * @type
{print_preview.ticket_items.MediaSize}
On 2014/09/24 17:54:43, Aleksey Shlyapnikov wrote:
> cp.cdd.MediaSizeTicketItem was a correct type, it is set to the value of this
> ticket item, not to the ticket item itself.
Where is the type cp.cdd.MediaSizeTicketItem declared? I see no declaration in
the code base.
6 years, 2 months ago
(2014-09-24 21:13:18 UTC)
#4
https://codereview.chromium.org/595153003/diff/1/chrome/browser/resources/pri...
File chrome/browser/resources/print_preview/cloud_print_interface.js (right):
https://codereview.chromium.org/595153003/diff/1/chrome/browser/resources/pri...
chrome/browser/resources/print_preview/cloud_print_interface.js:853:
CloudPrintRequest: CloudPrintRequest
On 2014/09/24 20:39:49, Vitaly Pavlenko wrote:
> On 2014/09/24 17:54:43, Aleksey Shlyapnikov wrote:
> > Why are you exporting it? It's not used anywhere outside of this file.
>
> Right now that's the only way to use the type cloudprint.CloudPrintRequest
> inside this file inside JSDoc to make it visible for the compiler. It's ugly,
> for sure. Is it acceptable to commit such a thing?
If we have no workaround, then yes. Let's add a comment why we export it though.
https://codereview.chromium.org/595153003/diff/1/chrome/browser/resources/pri...
File chrome/browser/resources/print_preview/preview_generator.js (right):
https://codereview.chromium.org/595153003/diff/1/chrome/browser/resources/pri...
chrome/browser/resources/print_preview/preview_generator.js:62: * @type
{print_preview.ticket_items.MediaSize}
On 2014/09/24 20:39:50, Vitaly Pavlenko wrote:
> On 2014/09/24 17:54:43, Aleksey Shlyapnikov wrote:
> > cp.cdd.MediaSizeTicketItem was a correct type, it is set to the value of
this
> > ticket item, not to the ticket item itself.
>
> Where is the type cp.cdd.MediaSizeTicketItem declared? I see no declaration in
> the code base.
Well, it is supposed to be generated from proto defs. Can you use your ValueType
here and move cp.cdd.MediaSizeTicketItem to comments?
6 years, 2 months ago
(2014-09-24 22:37:57 UTC)
#5
https://codereview.chromium.org/595153003/diff/1/chrome/browser/resources/pri...
File chrome/browser/resources/print_preview/cloud_print_interface.js (right):
https://codereview.chromium.org/595153003/diff/1/chrome/browser/resources/pri...
chrome/browser/resources/print_preview/cloud_print_interface.js:853:
CloudPrintRequest: CloudPrintRequest
On 2014/09/24 21:13:17, Aleksey Shlyapnikov wrote:
> On 2014/09/24 20:39:49, Vitaly Pavlenko wrote:
> > On 2014/09/24 17:54:43, Aleksey Shlyapnikov wrote:
> > > Why are you exporting it? It's not used anywhere outside of this file.
> >
> > Right now that's the only way to use the type cloudprint.CloudPrintRequest
> > inside this file inside JSDoc to make it visible for the compiler. It's
ugly,
> > for sure. Is it acceptable to commit such a thing?
>
> If we have no workaround, then yes. Let's add a comment why we export it
though.
Done.
https://codereview.chromium.org/595153003/diff/1/chrome/browser/resources/pri...
File chrome/browser/resources/print_preview/preview_generator.js (right):
https://codereview.chromium.org/595153003/diff/1/chrome/browser/resources/pri...
chrome/browser/resources/print_preview/preview_generator.js:62: * @type
{print_preview.ticket_items.MediaSize}
On 2014/09/24 21:13:18, Aleksey Shlyapnikov wrote:
> On 2014/09/24 20:39:50, Vitaly Pavlenko wrote:
> > On 2014/09/24 17:54:43, Aleksey Shlyapnikov wrote:
> > > cp.cdd.MediaSizeTicketItem was a correct type, it is set to the value of
> this
> > > ticket item, not to the ticket item itself.
> >
> > Where is the type cp.cdd.MediaSizeTicketItem declared? I see no declaration
in
> > the code base.
>
> Well, it is supposed to be generated from proto defs. Can you use your
ValueType
> here and move cp.cdd.MediaSizeTicketItem to comments?
Done.
Aleksey Shlyapnikov
lgtm
6 years, 2 months ago
(2014-09-24 22:47:57 UTC)
#6
Issue 595153003: Compile print_preview, part 5: reduce down to 104 errors
(Closed)
Created 6 years, 2 months ago by Vitaly Pavlenko
Modified 4 years ago
Reviewers: Aleksey Shlyapnikov, Dan Beam, Vitaly Buka (NO REVIEWS)
Base URL: https://chromium.googlesource.com/chromium/src.git@I_print_preview_4
Comments: 28