OLD | NEW |
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 Loading... |
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 Loading... |
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 } |
OLD | NEW |