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

Unified Diff: chrome/android/java/src/org/chromium/chrome/browser/payments/ui/PaymentRequestUiErrorView.java

Issue 2698703003: [Payments] Add UI elements to secure branding for payments (Closed)
Patch Set: support rotation Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/android/java/src/org/chromium/chrome/browser/payments/ui/PaymentRequestUiErrorView.java
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/payments/ui/PaymentRequestUiErrorView.java b/chrome/android/java/src/org/chromium/chrome/browser/payments/ui/PaymentRequestUiErrorView.java
index 12097c088fd4d30ab7208eb769b7603faa3c774d..135a3f9f08bef93c2707fd0ec5a24ce53e51815c 100644
--- a/chrome/android/java/src/org/chromium/chrome/browser/payments/ui/PaymentRequestUiErrorView.java
+++ b/chrome/android/java/src/org/chromium/chrome/browser/payments/ui/PaymentRequestUiErrorView.java
@@ -11,8 +11,6 @@ import android.view.Gravity;
import android.view.View;
import android.view.ViewGroup;
import android.widget.FrameLayout;
-import android.widget.ImageView;
-import android.widget.TextView;
import org.chromium.base.ApiCompatibilityUtils;
import org.chromium.chrome.R;
@@ -34,8 +32,7 @@ public class PaymentRequestUiErrorView extends BoundedLinearLayout {
* @param origin Origin of the webpage.
*/
public void initialize(String title, String origin) {
- ((TextView) findViewById(R.id.page_title)).setText(title);
- ((TextView) findViewById(R.id.hostname)).setText(origin);
+ ((PaymentRequestHeader) findViewById(R.id.header)).setTitleAndOrigin(title, origin);
// Remove the close button, then expand the page information to take up the space formerly
// occupied by the X.
@@ -79,7 +76,7 @@ public class PaymentRequestUiErrorView extends BoundedLinearLayout {
* @param bitmap Icon to display.
*/
public void setBitmap(Bitmap bitmap) {
- ((ImageView) findViewById(R.id.icon_view)).setImageBitmap(bitmap);
+ ((PaymentRequestHeader) findViewById(R.id.header)).setTitleBitmap(bitmap);
}
/**

Powered by Google App Engine
This is Rietveld 408576698