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.pageinfo; | 5 package org.chromium.chrome.browser.pageinfo; |
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 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
130 | 130 |
131 // The number of lines to display when the URL is expanded. This should
be enough to display | 131 // The number of lines to display when the URL is expanded. This should
be enough to display |
132 // at most two lines of the fragment if there is one in the URL. | 132 // at most two lines of the fragment if there is one in the URL. |
133 private Integer mFullLinesToDisplay; | 133 private Integer mFullLinesToDisplay; |
134 | 134 |
135 // If true, the text view will show the truncated text. If false, it | 135 // If true, the text view will show the truncated text. If false, it |
136 // will show the full, expanded text. | 136 // will show the full, expanded text. |
137 private boolean mIsShowingTruncatedText = true; | 137 private boolean mIsShowingTruncatedText = true; |
138 | 138 |
139 // The profile to use when getting the end index for the origin. | 139 // The profile to use when getting the end index for the origin. |
140 private Profile mProfile = null; | 140 private Profile mProfile; |
141 | 141 |
142 // The maximum number of lines currently shown in the view | 142 // The maximum number of lines currently shown in the view |
143 private int mCurrentMaxLines = Integer.MAX_VALUE; | 143 private int mCurrentMaxLines = Integer.MAX_VALUE; |
144 | 144 |
145 /** Constructor for inflating from XML. */ | 145 /** Constructor for inflating from XML. */ |
146 public ElidedUrlTextView(Context context, AttributeSet attrs) { | 146 public ElidedUrlTextView(Context context, AttributeSet attrs) { |
147 super(context, attrs); | 147 super(context, attrs); |
148 } | 148 } |
149 | 149 |
150 @Override | 150 @Override |
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
259 private final TextView mConnectionMessage; | 259 private final TextView mConnectionMessage; |
260 private final LinearLayout mPermissionsList; | 260 private final LinearLayout mPermissionsList; |
261 private final Button mInstantAppButton; | 261 private final Button mInstantAppButton; |
262 private final Button mSiteSettingsButton; | 262 private final Button mSiteSettingsButton; |
263 private final Button mOpenOnlineButton; | 263 private final Button mOpenOnlineButton; |
264 | 264 |
265 // The dialog the container is placed in. | 265 // The dialog the container is placed in. |
266 private final Dialog mDialog; | 266 private final Dialog mDialog; |
267 | 267 |
268 // Animation which is currently running, if there is one. | 268 // Animation which is currently running, if there is one. |
269 private AnimatorSet mCurrentAnimation = null; | 269 private AnimatorSet mCurrentAnimation; |
270 | 270 |
271 private boolean mDismissWithoutAnimation; | 271 private boolean mDismissWithoutAnimation; |
272 | 272 |
273 // The full URL from the URL bar, which is copied to the user's clipboard wh
en they select 'Copy | 273 // The full URL from the URL bar, which is copied to the user's clipboard wh
en they select 'Copy |
274 // URL'. | 274 // URL'. |
275 private String mFullUrl; | 275 private String mFullUrl; |
276 | 276 |
277 // A parsed version of mFullUrl. Is null if the URL is invalid/cannot be | 277 // A parsed version of mFullUrl. Is null if the URL is invalid/cannot be |
278 // parsed. | 278 // parsed. |
279 private URI mParsedUrl; | 279 private URI mParsedUrl; |
(...skipping 665 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
945 new WebsiteSettingsPopup(activity, tab, offlinePageCreationDate, content
Publisher); | 945 new WebsiteSettingsPopup(activity, tab, offlinePageCreationDate, content
Publisher); |
946 } | 946 } |
947 | 947 |
948 private static native long nativeInit(WebsiteSettingsPopup popup, WebContent
s webContents); | 948 private static native long nativeInit(WebsiteSettingsPopup popup, WebContent
s webContents); |
949 | 949 |
950 private native void nativeDestroy(long nativeWebsiteSettingsPopupAndroid); | 950 private native void nativeDestroy(long nativeWebsiteSettingsPopupAndroid); |
951 | 951 |
952 private native void nativeRecordWebsiteSettingsAction( | 952 private native void nativeRecordWebsiteSettingsAction( |
953 long nativeWebsiteSettingsPopupAndroid, int action); | 953 long nativeWebsiteSettingsPopupAndroid, int action); |
954 } | 954 } |
OLD | NEW |