| OLD | NEW |
| 1 // Copyright 2017 The Chromium Authors. All rights reserved. | 1 // Copyright 2017 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.tab; | 5 package org.chromium.chrome.browser.tab; |
| 6 | 6 |
| 7 import android.os.Build; |
| 8 import android.view.PointerIcon; |
| 7 import android.view.ViewGroup; | 9 import android.view.ViewGroup; |
| 8 | 10 |
| 9 import org.chromium.ui.base.ViewAndroidDelegate; | 11 import org.chromium.ui.base.ViewAndroidDelegate; |
| 10 | 12 |
| 11 /** | 13 /** |
| 12 * Implementation of the abstract class {@link ViewAndroidDelegate} for Chrome. | 14 * Implementation of the abstract class {@link ViewAndroidDelegate} for Chrome. |
| 13 */ | 15 */ |
| 14 class TabViewAndroidDelegate extends ViewAndroidDelegate { | 16 class TabViewAndroidDelegate extends ViewAndroidDelegate { |
| 15 /** Used for logging. */ | 17 /** Used for logging. */ |
| 16 private static final String TAG = "TabVAD"; | 18 private static final String TAG = "TabVAD"; |
| (...skipping 23 matching lines...) Expand all Loading... |
| 40 | 42 |
| 41 @Override | 43 @Override |
| 42 public int getSystemWindowInsetBottom() { | 44 public int getSystemWindowInsetBottom() { |
| 43 return mTab.getSystemWindowInsetBottom(); | 45 return mTab.getSystemWindowInsetBottom(); |
| 44 } | 46 } |
| 45 | 47 |
| 46 @Override | 48 @Override |
| 47 public ViewGroup getContainerView() { | 49 public ViewGroup getContainerView() { |
| 48 return mContainerView; | 50 return mContainerView; |
| 49 } | 51 } |
| 52 |
| 53 @Override |
| 54 public void updatePointerIcon(PointerIcon icon) { |
| 55 if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.N) { |
| 56 getContainerView().getRootView().setPointerIcon(icon); |
| 57 } |
| 58 } |
| 50 } | 59 } |
| OLD | NEW |