| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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.compositor.bottombar.contextualsearch; | 5 package org.chromium.chrome.browser.compositor.bottombar.contextualsearch; |
| 6 | 6 |
| 7 import android.content.Context; | 7 import android.content.Context; |
| 8 import android.view.ViewGroup; | 8 import android.view.ViewGroup; |
| 9 | 9 |
| 10 import org.chromium.base.ApiCompatibilityUtils; | 10 import org.chromium.base.ApiCompatibilityUtils; |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 58 | 58 |
| 59 /** | 59 /** |
| 60 * The {@link ContextualSearchImageControl} for the panel. | 60 * The {@link ContextualSearchImageControl} for the panel. |
| 61 */ | 61 */ |
| 62 private ContextualSearchImageControl mImageControl; | 62 private ContextualSearchImageControl mImageControl; |
| 63 | 63 |
| 64 /** | 64 /** |
| 65 * The opacity of the Bar's Search Context. | 65 * The opacity of the Bar's Search Context. |
| 66 * This text control may not be initialized until the opacity is set beyond
0. | 66 * This text control may not be initialized until the opacity is set beyond
0. |
| 67 */ | 67 */ |
| 68 private float mSearchBarContextOpacity = 0.f; | 68 private float mSearchBarContextOpacity; |
| 69 | 69 |
| 70 /** | 70 /** |
| 71 * The opacity of the Bar's Search Term. | 71 * The opacity of the Bar's Search Term. |
| 72 * This text control may not be initialized until the opacity is set beyond
0. | 72 * This text control may not be initialized until the opacity is set beyond
0. |
| 73 */ | 73 */ |
| 74 private float mSearchBarTermOpacity = 0.f; | 74 private float mSearchBarTermOpacity; |
| 75 | 75 |
| 76 // Dimensions used for laying out the search bar. | 76 // Dimensions used for laying out the search bar. |
| 77 private final float mTextLayerMinHeight; | 77 private final float mTextLayerMinHeight; |
| 78 private final float mTermCaptionSpacing; | 78 private final float mTermCaptionSpacing; |
| 79 | 79 |
| 80 /** | 80 /** |
| 81 * The visibility percentage for the divider line ranging from 0.f to 1.f. | 81 * The visibility percentage for the divider line ranging from 0.f to 1.f. |
| 82 */ | 82 */ |
| 83 private float mDividerLineVisibilityPercentage; | 83 private float mDividerLineVisibilityPercentage; |
| 84 | 84 |
| (...skipping 501 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 586 } | 586 } |
| 587 } | 587 } |
| 588 | 588 |
| 589 @Override | 589 @Override |
| 590 public void onPropertyAnimationFinished(AnimationType prop) { | 590 public void onPropertyAnimationFinished(AnimationType prop) { |
| 591 if (prop == AnimationType.TOUCH_HIGHLIGHT_VISIBILITY) { | 591 if (prop == AnimationType.TOUCH_HIGHLIGHT_VISIBILITY) { |
| 592 mTouchHighlightVisible = false; | 592 mTouchHighlightVisible = false; |
| 593 } | 593 } |
| 594 } | 594 } |
| 595 } | 595 } |
| OLD | NEW |