| 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 605 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 616 permissionIcon.setImageResource(R.drawable.exclamation_triangle)
; | 616 permissionIcon.setImageResource(R.drawable.exclamation_triangle)
; |
| 617 permissionIcon.setColorFilter(ApiCompatibilityUtils.getColor( | 617 permissionIcon.setColorFilter(ApiCompatibilityUtils.getColor( |
| 618 mContext.getResources(), R.color.page_info_popup_text_li
nk)); | 618 mContext.getResources(), R.color.page_info_popup_text_li
nk)); |
| 619 | 619 |
| 620 permissionRow.setOnClickListener(this); | 620 permissionRow.setOnClickListener(this); |
| 621 } | 621 } |
| 622 } | 622 } |
| 623 | 623 |
| 624 // The subresource filter permission requires an additional static subti
tle. | 624 // The subresource filter permission requires an additional static subti
tle. |
| 625 if (permission.type == ContentSettingsType.CONTENT_SETTINGS_TYPE_SUBRESO
URCE_FILTER) { | 625 if (permission.type == ContentSettingsType.CONTENT_SETTINGS_TYPE_SUBRESO
URCE_FILTER) { |
| 626 TextView permissionUnavailable = | 626 TextView permissionSubtitle = |
| 627 (TextView) permissionRow.findViewById(R.id.page_info_permiss
ion_subtitle); | 627 (TextView) permissionRow.findViewById(R.id.page_info_permiss
ion_subtitle); |
| 628 permissionUnavailable.setVisibility(View.VISIBLE); | 628 permissionSubtitle.setVisibility(View.VISIBLE); |
| 629 permissionUnavailable.setText(R.string.subresource_filter_permission
_title); | 629 permissionSubtitle.setText(R.string.page_info_permission_subresource
_filter_subtitle); |
| 630 } | 630 } |
| 631 | 631 |
| 632 TextView permissionStatus = (TextView) permissionRow.findViewById( | 632 TextView permissionStatus = (TextView) permissionRow.findViewById( |
| 633 R.id.page_info_permission_status); | 633 R.id.page_info_permission_status); |
| 634 SpannableStringBuilder builder = new SpannableStringBuilder(); | 634 SpannableStringBuilder builder = new SpannableStringBuilder(); |
| 635 SpannableString nameString = new SpannableString(permission.name); | 635 SpannableString nameString = new SpannableString(permission.name); |
| 636 final StyleSpan boldSpan = new StyleSpan(android.graphics.Typeface.BOLD)
; | 636 final StyleSpan boldSpan = new StyleSpan(android.graphics.Typeface.BOLD)
; |
| 637 nameString.setSpan(boldSpan, 0, nameString.length(), Spannable.SPAN_INCL
USIVE_EXCLUSIVE); | 637 nameString.setSpan(boldSpan, 0, nameString.length(), Spannable.SPAN_INCL
USIVE_EXCLUSIVE); |
| 638 | 638 |
| 639 builder.append(nameString); | 639 builder.append(nameString); |
| (...skipping 374 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1014 new PageInfoPopup(activity, tab, offlinePageCreationDate, contentPublish
er); | 1014 new PageInfoPopup(activity, tab, offlinePageCreationDate, contentPublish
er); |
| 1015 } | 1015 } |
| 1016 | 1016 |
| 1017 private static native long nativeInit(PageInfoPopup popup, WebContents webCo
ntents); | 1017 private static native long nativeInit(PageInfoPopup popup, WebContents webCo
ntents); |
| 1018 | 1018 |
| 1019 private native void nativeDestroy(long nativePageInfoPopupAndroid); | 1019 private native void nativeDestroy(long nativePageInfoPopupAndroid); |
| 1020 | 1020 |
| 1021 private native void nativeRecordPageInfoAction( | 1021 private native void nativeRecordPageInfoAction( |
| 1022 long nativePageInfoPopupAndroid, int action); | 1022 long nativePageInfoPopupAndroid, int action); |
| 1023 } | 1023 } |
| OLD | NEW |