 Chromium Code Reviews
 Chromium Code Reviews Issue 2878403002:
  Support setting mouse cursor icon in Android N.  (Closed)
    
  
    Issue 2878403002:
  Support setting mouse cursor icon in Android N.  (Closed) 
  | OLD | NEW | 
|---|---|
| 1 /* | 1 /* | 
| 2 * Copyright (C) 2009 Google Inc. All rights reserved. | 2 * Copyright (C) 2009 Google Inc. All rights reserved. | 
| 3 * | 3 * | 
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without | 
| 5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are | 
| 6 * met: | 6 * met: | 
| 7 * | 7 * | 
| 8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright | 
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. | 
| 10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above | 
| (...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 107 explicit WebCursorInfo(Type type = kTypePointer) | 107 explicit WebCursorInfo(Type type = kTypePointer) | 
| 108 : type(type), image_scale_factor(1) { | 108 : type(type), image_scale_factor(1) { | 
| 109 #ifdef WIN32 | 109 #ifdef WIN32 | 
| 110 external_handle = 0; | 110 external_handle = 0; | 
| 111 #endif | 111 #endif | 
| 112 } | 112 } | 
| 113 | 113 | 
| 114 #if INSIDE_BLINK | 114 #if INSIDE_BLINK | 
| 115 BLINK_PLATFORM_EXPORT explicit WebCursorInfo(const Cursor&); | 115 BLINK_PLATFORM_EXPORT explicit WebCursorInfo(const Cursor&); | 
| 116 #endif | 116 #endif | 
| 117 | |
| 118 static const char* GetName(WebCursorInfo::Type type) { | |
| 
Jinsuk Kim
2017/05/17 04:49:50
This function is used only for warning message. I'
 
jaebaek
2017/05/18 01:44:28
Done.
 | |
| 119 #define CASE_TYPE(t) \ | |
| 120 case WebCursorInfo::k##t: \ | |
| 
Jinsuk Kim
2017/05/17 04:49:50
Indentation looks wrong.
 
jaebaek
2017/05/18 01:44:28
Done.
 | |
| 121 return #t | |
| 122 switch (type) { | |
| 123 CASE_TYPE(TypePointer); | |
| 124 CASE_TYPE(TypeCross); | |
| 125 CASE_TYPE(TypeHand); | |
| 126 CASE_TYPE(TypeIBeam); | |
| 127 CASE_TYPE(TypeWait); | |
| 128 CASE_TYPE(TypeHelp); | |
| 129 CASE_TYPE(TypeEastResize); | |
| 130 CASE_TYPE(TypeNorthResize); | |
| 131 CASE_TYPE(TypeNorthEastResize); | |
| 132 CASE_TYPE(TypeNorthWestResize); | |
| 133 CASE_TYPE(TypeSouthResize); | |
| 134 CASE_TYPE(TypeSouthEastResize); | |
| 135 CASE_TYPE(TypeSouthWestResize); | |
| 136 CASE_TYPE(TypeWestResize); | |
| 137 CASE_TYPE(TypeNorthSouthResize); | |
| 138 CASE_TYPE(TypeEastWestResize); | |
| 139 CASE_TYPE(TypeNorthEastSouthWestResize); | |
| 140 CASE_TYPE(TypeNorthWestSouthEastResize); | |
| 141 CASE_TYPE(TypeColumnResize); | |
| 142 CASE_TYPE(TypeRowResize); | |
| 143 CASE_TYPE(TypeMiddlePanning); | |
| 144 CASE_TYPE(TypeEastPanning); | |
| 145 CASE_TYPE(TypeNorthPanning); | |
| 146 CASE_TYPE(TypeNorthEastPanning); | |
| 147 CASE_TYPE(TypeNorthWestPanning); | |
| 148 CASE_TYPE(TypeSouthPanning); | |
| 149 CASE_TYPE(TypeSouthEastPanning); | |
| 150 CASE_TYPE(TypeSouthWestPanning); | |
| 151 CASE_TYPE(TypeWestPanning); | |
| 152 CASE_TYPE(TypeMove); | |
| 153 CASE_TYPE(TypeVerticalText); | |
| 154 CASE_TYPE(TypeCell); | |
| 155 CASE_TYPE(TypeContextMenu); | |
| 156 CASE_TYPE(TypeAlias); | |
| 157 CASE_TYPE(TypeProgress); | |
| 158 CASE_TYPE(TypeNoDrop); | |
| 159 CASE_TYPE(TypeCopy); | |
| 160 CASE_TYPE(TypeNone); | |
| 161 CASE_TYPE(TypeNotAllowed); | |
| 162 CASE_TYPE(TypeZoomIn); | |
| 163 CASE_TYPE(TypeZoomOut); | |
| 164 CASE_TYPE(TypeGrab); | |
| 165 CASE_TYPE(TypeGrabbing); | |
| 166 CASE_TYPE(TypeCustom); | |
| 167 default: | |
| 168 NOTREACHED(); | |
| 169 return "(Not defined)"; | |
| 170 } | |
| 171 #undef CASE_TYPE | |
| 172 } | |
| 117 }; | 173 }; | 
| 118 | 174 | 
| 119 } // namespace blink | 175 } // namespace blink | 
| 120 | 176 | 
| 121 #endif | 177 #endif | 
| OLD | NEW |