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

Side by Side Diff: chrome/android/java/src/org/chromium/chrome/browser/page_info/PageInfoPopup.java

Issue 2765193002: Prototype for the new UI for the Safe Browsing Subresource Filter. (Closed)
Patch Set: comments Created 3 years, 8 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 unified diff | Download patch
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 package org.chromium.chrome.browser.page_info; 5 package org.chromium.chrome.browser.page_info;
6 6
7 import android.animation.Animator; 7 import android.animation.Animator;
8 import android.animation.AnimatorListenerAdapter; 8 import android.animation.AnimatorListenerAdapter;
9 import android.animation.AnimatorSet; 9 import android.animation.AnimatorSet;
10 import android.animation.ObjectAnimator; 10 import android.animation.ObjectAnimator;
(...skipping 647 matching lines...) Expand 10 before | Expand all | Expand 10 after
658 } else { 658 } else {
659 if (!TextUtils.equals(summary, details)) { 659 if (!TextUtils.equals(summary, details)) {
660 mConnectionSummary.setVisibility(View.VISIBLE); 660 mConnectionSummary.setVisibility(View.VISIBLE);
661 mConnectionSummary.setText(summary); 661 mConnectionSummary.setText(summary);
662 } 662 }
663 messageBuilder.append(details); 663 messageBuilder.append(details);
664 } 664 }
665 665
666 if (isConnectionDetailsLinkVisible()) { 666 if (isConnectionDetailsLinkVisible()) {
667 messageBuilder.append(" "); 667 messageBuilder.append(" ");
668 SpannableString detailsText = new SpannableString( 668 SpannableString detailsText =
669 mContext.getString(R.string.page_info_details_link)); 669 new SpannableString(mContext.getString(R.string.details_link ));
670 final ForegroundColorSpan blueSpan = new ForegroundColorSpan( 670 final ForegroundColorSpan blueSpan = new ForegroundColorSpan(
671 ApiCompatibilityUtils.getColor(mContext.getResources(), 671 ApiCompatibilityUtils.getColor(mContext.getResources(),
672 R.color.page_info_popup_text_link)); 672 R.color.page_info_popup_text_link));
673 detailsText.setSpan( 673 detailsText.setSpan(
674 blueSpan, 0, detailsText.length(), Spannable.SPAN_INCLUSIVE_ EXCLUSIVE); 674 blueSpan, 0, detailsText.length(), Spannable.SPAN_INCLUSIVE_ EXCLUSIVE);
675 messageBuilder.append(detailsText); 675 messageBuilder.append(detailsText);
676 } 676 }
677 mConnectionMessage.setText(messageBuilder); 677 mConnectionMessage.setText(messageBuilder);
678 if (isConnectionDetailsLinkVisible()) mConnectionMessage.setOnClickListe ner(this); 678 if (isConnectionDetailsLinkVisible()) mConnectionMessage.setOnClickListe ner(this);
679 } 679 }
(...skipping 289 matching lines...) Expand 10 before | Expand all | Expand 10 after
969 new PageInfoPopup(activity, tab, offlinePageCreationDate, contentPublish er); 969 new PageInfoPopup(activity, tab, offlinePageCreationDate, contentPublish er);
970 } 970 }
971 971
972 private static native long nativeInit(PageInfoPopup popup, WebContents webCo ntents); 972 private static native long nativeInit(PageInfoPopup popup, WebContents webCo ntents);
973 973
974 private native void nativeDestroy(long nativePageInfoPopupAndroid); 974 private native void nativeDestroy(long nativePageInfoPopupAndroid);
975 975
976 private native void nativeRecordPageInfoAction( 976 private native void nativeRecordPageInfoAction(
977 long nativePageInfoPopupAndroid, int action); 977 long nativePageInfoPopupAndroid, int action);
978 } 978 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698