OSDN Git Service

Allow changing mouse pointer icon for the current context.
authorJun Mukai <mukai@google.com>
Sat, 12 Sep 2015 01:08:31 +0000 (18:08 -0700)
committerJun Mukai <mukai@google.com>
Thu, 15 Oct 2015 08:47:29 +0000 (01:47 -0700)
commit1db5397d88e722b1ab82ccb2b429ceec1179ccd8
tree016fcb17678d0e555626c318956e11f7a99b9843
parent0a5e256d9fd56607ab4bbd987268fbfa3fe935fe
Allow changing mouse pointer icon for the current context.

Right now, it only supports I-beam on EditText, but further
rules will come in the future.

The png files for the icons are from chromium.

Bug: 24180385
Change-Id: I8de4ec8a5412b4830c08aa232c5083841c5c751c
72 files changed:
core/java/android/hardware/input/IInputManager.aidl
core/java/android/hardware/input/InputManager.java
core/java/android/view/InputDevice.java
core/java/android/view/PointerIcon.java
core/java/android/view/View.java
core/java/android/view/ViewGroup.java
core/java/android/view/ViewRootImpl.java
core/java/android/widget/TextView.java
core/jni/android_view_PointerIcon.h
core/res/res/drawable-mdpi/pointer_alias.png [new file with mode: 0644]
core/res/res/drawable-mdpi/pointer_all_scroll.png [new file with mode: 0644]
core/res/res/drawable-mdpi/pointer_cell.png [new file with mode: 0644]
core/res/res/drawable-mdpi/pointer_context_menu.png [new file with mode: 0644]
core/res/res/drawable-mdpi/pointer_copy.png [new file with mode: 0644]
core/res/res/drawable-mdpi/pointer_crosshair.png [new file with mode: 0644]
core/res/res/drawable-mdpi/pointer_grab.png [new file with mode: 0644]
core/res/res/drawable-mdpi/pointer_grabbing.png [new file with mode: 0644]
core/res/res/drawable-mdpi/pointer_hand.png [new file with mode: 0644]
core/res/res/drawable-mdpi/pointer_help.png [new file with mode: 0644]
core/res/res/drawable-mdpi/pointer_horizontal_double_arrow.png [new file with mode: 0644]
core/res/res/drawable-mdpi/pointer_nodrop.png [new file with mode: 0644]
core/res/res/drawable-mdpi/pointer_text.png [new file with mode: 0644]
core/res/res/drawable-mdpi/pointer_top_left_diagonal_double_arrow.png [new file with mode: 0644]
core/res/res/drawable-mdpi/pointer_top_right_diagonal_double_arrow.png [new file with mode: 0644]
core/res/res/drawable-mdpi/pointer_vertical_double_arrow.png [new file with mode: 0644]
core/res/res/drawable-mdpi/pointer_vertical_text.png [new file with mode: 0644]
core/res/res/drawable-mdpi/pointer_zoom_in.png [new file with mode: 0644]
core/res/res/drawable-mdpi/pointer_zoom_out.png [new file with mode: 0644]
core/res/res/drawable-xhdpi/pointer_alias.png [new file with mode: 0644]
core/res/res/drawable-xhdpi/pointer_all_scroll.png [new file with mode: 0644]
core/res/res/drawable-xhdpi/pointer_cell.png [new file with mode: 0644]
core/res/res/drawable-xhdpi/pointer_context_menu.png [new file with mode: 0644]
core/res/res/drawable-xhdpi/pointer_copy.png [new file with mode: 0644]
core/res/res/drawable-xhdpi/pointer_crosshair.png [new file with mode: 0644]
core/res/res/drawable-xhdpi/pointer_grab.png [new file with mode: 0644]
core/res/res/drawable-xhdpi/pointer_grabbing.png [new file with mode: 0644]
core/res/res/drawable-xhdpi/pointer_hand.png [new file with mode: 0644]
core/res/res/drawable-xhdpi/pointer_help.png [new file with mode: 0644]
core/res/res/drawable-xhdpi/pointer_horizontal_double_arrow.png [new file with mode: 0644]
core/res/res/drawable-xhdpi/pointer_nodrop.png [new file with mode: 0644]
core/res/res/drawable-xhdpi/pointer_text.png [new file with mode: 0644]
core/res/res/drawable-xhdpi/pointer_top_left_diagonal_double_arrow.png [new file with mode: 0644]
core/res/res/drawable-xhdpi/pointer_top_right_diagonal_double_arrow.png [new file with mode: 0644]
core/res/res/drawable-xhdpi/pointer_vertical_double_arrow.png [new file with mode: 0644]
core/res/res/drawable-xhdpi/pointer_vertical_text.png [new file with mode: 0644]
core/res/res/drawable-xhdpi/pointer_zoom_in.png [new file with mode: 0644]
core/res/res/drawable-xhdpi/pointer_zoom_out.png [new file with mode: 0644]
core/res/res/drawable/pointer_alias_icon.xml [new file with mode: 0644]
core/res/res/drawable/pointer_all_scroll_icon.xml [new file with mode: 0644]
core/res/res/drawable/pointer_cell_icon.xml [new file with mode: 0644]
core/res/res/drawable/pointer_context_menu_icon.xml [new file with mode: 0644]
core/res/res/drawable/pointer_copy_icon.xml [new file with mode: 0644]
core/res/res/drawable/pointer_crosshair_icon.xml [new file with mode: 0644]
core/res/res/drawable/pointer_grab_icon.xml [new file with mode: 0644]
core/res/res/drawable/pointer_grabbing_icon.xml [new file with mode: 0644]
core/res/res/drawable/pointer_hand_icon.xml [new file with mode: 0644]
core/res/res/drawable/pointer_help_icon.xml [new file with mode: 0644]
core/res/res/drawable/pointer_horizontal_double_arrow_icon.xml [new file with mode: 0644]
core/res/res/drawable/pointer_nodrop_icon.xml [new file with mode: 0644]
core/res/res/drawable/pointer_text_icon.xml [new file with mode: 0644]
core/res/res/drawable/pointer_top_left_diagonal_double_arrow_icon.xml [new file with mode: 0644]
core/res/res/drawable/pointer_top_right_diagonal_double_arrow_icon.xml [new file with mode: 0644]
core/res/res/drawable/pointer_vertical_double_arrow_icon.xml [new file with mode: 0644]
core/res/res/drawable/pointer_vertical_text_icon.xml [new file with mode: 0644]
core/res/res/drawable/pointer_zoom_in_icon.xml [new file with mode: 0644]
core/res/res/drawable/pointer_zoom_out_icon.xml [new file with mode: 0644]
core/res/res/values/attrs.xml
core/res/res/values/styles.xml
libs/input/PointerController.cpp
libs/input/PointerController.h
services/core/java/com/android/server/input/InputManagerService.java
services/core/jni/com_android_server_input_InputManagerService.cpp