Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(203)

Side by Side Diff: chrome/android/java/src/org/chromium/chrome/browser/tab/TabViewAndroidDelegate.java

Issue 2878403002: Support setting mouse cursor icon in Android N. (Closed)
Patch Set: nit Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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);
Ted C 2017/06/07 19:27:18 since this mutates the root view, what happens in
jaebaek 2017/06/08 01:00:11 It seems we cannot make the pointer icon visible b
57 }
58 }
50 } 59 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698