| 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; | 5 package org.chromium.chrome.browser.compositor.bottombar; |
| 6 | 6 |
| 7 import android.app.Activity; | 7 import android.app.Activity; |
| 8 import android.content.Context; | 8 import android.content.Context; |
| 9 import android.graphics.RectF; | 9 import android.graphics.RectF; |
| 10 | 10 |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 47 // TODO(pedrosimonetti): consider removing the UNDEFINED state | 47 // TODO(pedrosimonetti): consider removing the UNDEFINED state |
| 48 UNDEFINED, | 48 UNDEFINED, |
| 49 CLOSED, | 49 CLOSED, |
| 50 PEEKED, | 50 PEEKED, |
| 51 EXPANDED, | 51 EXPANDED, |
| 52 MAXIMIZED | 52 MAXIMIZED |
| 53 } | 53 } |
| 54 | 54 |
| 55 /** | 55 /** |
| 56 * The reason for a change in the Overlay Panel's state. | 56 * The reason for a change in the Overlay Panel's state. |
| 57 * TODO(mdjones): Separate generic reasons from Contextual Search reasons. | |
| 58 */ | 57 */ |
| 59 public enum StateChangeReason { | 58 public enum StateChangeReason { |
| 60 UNKNOWN, | 59 UNKNOWN, |
| 61 RESET, | 60 RESET, |
| 62 BACK_PRESS, | 61 BACK_PRESS, |
| 63 TEXT_SELECT_TAP, | 62 TEXT_SELECT_TAP, |
| 64 TEXT_SELECT_LONG_PRESS, | 63 TEXT_SELECT_LONG_PRESS, |
| 65 INVALID_SELECTION, | 64 INVALID_SELECTION, |
| 66 CLEARED_SELECTION, | 65 CLEARED_SELECTION, |
| 67 BASE_PAGE_TAP, | 66 BASE_PAGE_TAP, |
| 68 BASE_PAGE_SCROLL, | 67 BASE_PAGE_SCROLL, |
| 69 SEARCH_BAR_TAP, | 68 SEARCH_BAR_TAP, |
| 70 SERP_NAVIGATION, | 69 SERP_NAVIGATION, |
| 71 TAB_PROMOTION, | 70 TAB_PROMOTION, |
| 72 CLICK, | 71 CLICK, |
| 73 SWIPE, | 72 SWIPE, |
| 74 FLING, | 73 FLING, |
| 75 OPTIN, | 74 OPTIN, |
| 76 OPTOUT, | 75 OPTOUT, |
| 77 CLOSE_BUTTON, | 76 CLOSE_BUTTON, |
| 78 SUPPRESS, | 77 SUPPRESS, |
| 79 UNSUPPRESS, | 78 UNSUPPRESS |
| 80 FULLSCREEN_ENTERED, | |
| 81 FULLSCREEN_EXITED, | |
| 82 INFOBAR_SHOWN, | |
| 83 INFOBAR_HIDDEN, | |
| 84 CONTENT_CHANGED, | |
| 85 KEYBOARD_SHOWN, | |
| 86 KEYBOARD_HIDDEN, | |
| 87 TAB_NAVIGATION | |
| 88 } | 79 } |
| 89 | 80 |
| 90 /** The activity this panel is in. */ | 81 /** The activity this panel is in. */ |
| 91 protected ChromeActivity mActivity; | 82 protected ChromeActivity mActivity; |
| 92 | 83 |
| 93 /** The initial height of the Overlay Panel. */ | 84 /** The initial height of the Overlay Panel. */ |
| 94 private float mInitialPanelHeight; | 85 private float mInitialPanelHeight; |
| 95 | 86 |
| 96 /** The initial location of a touch on the panel */ | 87 /** The initial location of a touch on the panel */ |
| 97 private float mInitialPanelTouchY; | 88 private float mInitialPanelTouchY; |
| (...skipping 792 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 890 | 881 |
| 891 @Override | 882 @Override |
| 892 public void tabPageLoadFinished(int id, boolean incognito) {} | 883 public void tabPageLoadFinished(int id, boolean incognito) {} |
| 893 | 884 |
| 894 @Override | 885 @Override |
| 895 public void tabLoadStarted(int id, boolean incognito) {} | 886 public void tabLoadStarted(int id, boolean incognito) {} |
| 896 | 887 |
| 897 @Override | 888 @Override |
| 898 public void tabLoadFinished(int id, boolean incognito) {} | 889 public void tabLoadFinished(int id, boolean incognito) {} |
| 899 } | 890 } |
| OLD | NEW |