New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 763886 link

Starred by 1 user

Issue metadata

Status: Assigned
Owner:
Cc:
EstimatedDays: ----
NextAction: ----
OS: ----
Pri: 3
Type: Bug



Sign in to add a comment

PaymentHandler: Should find appropriate icon size on different platforms.

Project Member Reported by jinho.b...@samsung.com, Sep 11 2017

Issue description

Choose appropriate icon size dynamically on different platforms.
Here we choose a large ideal icon size to be big enough for all platforms.
Note that we only scale down for this icon size but not scale up.
 
Cc: rouslan@chromium.org
Owner: jinho.b...@samsung.com
Status: Assigned (was: Untriaged)
Project Member

Comment 3 by bugdroid1@chromium.org, Sep 20 2017

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/850aa48403481322fb048d26983a7d042443f98f

commit 850aa48403481322fb048d26983a7d042443f98f
Author: Jinho Bang <jinho.bang@samsung.com>
Date: Wed Sep 20 02:03:19 2017

PaymentHandler: Should pass 'type' and 'sizes' from renderer to browser.

In the current implementation, we don't pass an image size and mime type
from renderer to browser. When choosing best icon for display, last
icon in the list is always selected. So, we should pass 'type' and
'sizes' member to browser and then consider them when choosing icon.

Bug: 763886
Change-Id: Icaf297288a7da1d3c605ac9c21aa8a20af0f2af3
Reviewed-on: https://chromium-review.googlesource.com/670225
Reviewed-by: Tom Sepez <tsepez@chromium.org>
Reviewed-by: Rouslan Solomakhin <rouslan@chromium.org>
Commit-Queue: Jinho Bang <jinho.bang@samsung.com>
Cr-Commit-Position: refs/heads/master@{#503025}
[modify] https://crrev.com/850aa48403481322fb048d26983a7d042443f98f/content/browser/payments/payment_app.proto
[modify] https://crrev.com/850aa48403481322fb048d26983a7d042443f98f/content/browser/payments/payment_app_database.cc
[modify] https://crrev.com/850aa48403481322fb048d26983a7d042443f98f/third_party/WebKit/LayoutTests/http/tests/payments/payment-instruments.html
[add] https://crrev.com/850aa48403481322fb048d26983a7d042443f98f/third_party/WebKit/LayoutTests/http/tests/payments/resources/icon-1x.png
[add] https://crrev.com/850aa48403481322fb048d26983a7d042443f98f/third_party/WebKit/LayoutTests/http/tests/payments/resources/icon-2x.png
[modify] https://crrev.com/850aa48403481322fb048d26983a7d042443f98f/third_party/WebKit/Source/modules/payments/ImageObject.idl
[modify] https://crrev.com/850aa48403481322fb048d26983a7d042443f98f/third_party/WebKit/Source/modules/payments/PaymentInstruments.cpp
[modify] https://crrev.com/850aa48403481322fb048d26983a7d042443f98f/third_party/WebKit/public/platform/modules/payments/payment_app.mojom

Cc: -rouslan@chromium.org mhashmi@chromium.org gogerald@chromium.org jinho.b...@samsung.com
Owner: rouslan@chromium.org

Sign in to add a comment