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.appmenu; | 5 package org.chromium.chrome.browser.appmenu; |
6 | 6 |
7 import android.view.MotionEvent; | 7 import android.view.MotionEvent; |
8 import android.view.View; | 8 import android.view.View; |
9 import android.view.View.OnTouchListener; | 9 import android.view.View.OnTouchListener; |
10 | 10 |
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
96 | 96 |
97 // If user starts to drag on this menu button, ACTION_DOWN and all the s ubsequent touch | 97 // If user starts to drag on this menu button, ACTION_DOWN and all the s ubsequent touch |
98 // events are received here. We need to forward this event to the app me nu to handle | 98 // events are received here. We need to forward this event to the app me nu to handle |
99 // dragging correctly. | 99 // dragging correctly. |
100 AppMenuDragHelper dragHelper = mMenuHandler.getAppMenuDragHelper(); | 100 AppMenuDragHelper dragHelper = mMenuHandler.getAppMenuDragHelper(); |
101 if (dragHelper != null) { | 101 if (dragHelper != null) { |
102 isTouchEventConsumed |= dragHelper.handleDragging(event); | 102 isTouchEventConsumed |= dragHelper.handleDragging(event); |
103 } | 103 } |
104 return isTouchEventConsumed; | 104 return isTouchEventConsumed; |
105 } | 105 } |
106 } | 106 } |
aurimas (slooooooooow)
2014/08/12 15:59:44
Undo this change.
AKVT
2014/08/12 16:22:39
Done.
| |
OLD | NEW |