Index: webkit/glue/webcursor_gtk_data.h |
diff --git a/webkit/glue/webcursor_gtk_data.h b/webkit/glue/webcursor_gtk_data.h |
index a9831433450f9b00e24005ac25e430a07bdcc683..ff6e598cb88bc77a172aad5e7da27fc358c92f20 100644 |
--- a/webkit/glue/webcursor_gtk_data.h |
+++ b/webkit/glue/webcursor_gtk_data.h |
@@ -32,7 +32,7 @@ |
*/ |
/* MOZ_CURSOR_VERTICAL_TEXT */ |
-static const char moz_vertical_text_bits[] = { |
+static const unsigned char moz_vertical_text_bits[] = { |
Peter Kasting
2012/06/07 18:09:52
Nit: I still think uint8 would be a better type
Han Shen
2012/06/07 19:09:11
Done.
|
0x00, 0x00, 0x00, 0x00, 0x02, 0x40, 0x00, 0x00, 0x02, 0x40, 0x00, 0x00, |
0x06, 0x60, 0x00, 0x00, 0xfc, 0x3f, 0x00, 0x00, 0x06, 0x60, 0x00, 0x00, |
0x02, 0x40, 0x00, 0x00, 0x02, 0x40, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, |
@@ -45,7 +45,7 @@ static const char moz_vertical_text_bits[] = { |
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, |
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 }; |
-static const char moz_vertical_text_mask_bits[] = { |
+static const unsigned char moz_vertical_text_mask_bits[] = { |
0x07, 0xe0, 0x00, 0x00, 0x07, 0xe0, 0x00, 0x00, 0x0f, 0xf0, 0x00, 0x00, |
0xff, 0xff, 0x00, 0x00, 0xfe, 0x7f, 0x00, 0x00, 0xff, 0xff, 0x00, 0x00, |
0x0f, 0xf0, 0x00, 0x00, 0x07, 0xe0, 0x00, 0x00, 0x07, 0xe0, 0x00, 0x00, |
@@ -59,7 +59,7 @@ static const char moz_vertical_text_mask_bits[] = { |
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 }; |
/* MOZ_CURSOR_CONTEXT_MENU */ |
-static const char moz_menu_bits[] = { |
+static const unsigned char moz_menu_bits[] = { |
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, |
0x0c, 0x00, 0x00, 0x00, 0x1c, 0x00, 0x00, 0x00, 0x3c, 0x00, 0x00, 0x00, |
0x7c, 0x00, 0x00, 0x00, 0xfc, 0x00, 0x00, 0x00, 0xfc, 0xfd, 0x00, 0x00, |
@@ -72,7 +72,7 @@ static const char moz_menu_bits[] = { |
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, |
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 }; |
-static const char moz_menu_mask_bits[] = { |
+static const unsigned char moz_menu_mask_bits[] = { |
0x00, 0x00, 0x00, 0x00, 0x06, 0x00, 0x00, 0x00, 0x0e, 0x00, 0x00, 0x00, |
0x1e, 0x00, 0x00, 0x00, 0x3e, 0x00, 0x00, 0x00, 0x7e, 0x00, 0x00, 0x00, |
0xfe, 0x00, 0x00, 0x00, 0xfe, 0xfd, 0x00, 0x00, 0xfe, 0xff, 0x01, 0x00, |
@@ -86,7 +86,7 @@ static const char moz_menu_mask_bits[] = { |
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 }; |
/* MOZ_CURSOR_COPY */ |
-static const char moz_copy_bits[] = { |
+static const unsigned char moz_copy_bits[] = { |
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, |
0x0c, 0x00, 0x00, 0x00, 0x1c, 0x00, 0x00, 0x00, 0x3c, 0x00, 0x00, 0x00, |
0x7c, 0x00, 0x00, 0x00, 0xfc, 0x00, 0x00, 0x00, 0xfc, 0x01, 0x00, 0x00, |
@@ -99,7 +99,7 @@ static const char moz_copy_bits[] = { |
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, |
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 }; |
-static const char moz_copy_mask_bits[] = { |
+static const unsigned char moz_copy_mask_bits[] = { |
0x00, 0x00, 0x00, 0x00, 0x06, 0x00, 0x00, 0x00, 0x0e, 0x00, 0x00, 0x00, |
0x1e, 0x00, 0x00, 0x00, 0x3e, 0x00, 0x00, 0x00, 0x7e, 0x00, 0x00, 0x00, |
0xfe, 0x00, 0x00, 0x00, 0xfe, 0x01, 0x00, 0x00, 0xfe, 0x03, 0x00, 0x00, |
@@ -113,7 +113,7 @@ static const char moz_copy_mask_bits[] = { |
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 }; |
/* MOZ_CURSOR_ALIAS */ |
-static const char moz_alias_bits[] = { |
+static const unsigned char moz_alias_bits[] = { |
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, |
0x0c, 0x00, 0x00, 0x00, 0x1c, 0x00, 0x00, 0x00, 0x3c, 0x00, 0x00, 0x00, |
0x7c, 0x00, 0x00, 0x00, 0xfc, 0x00, 0x00, 0x00, 0xfc, 0x01, 0x00, 0x00, |
@@ -126,7 +126,7 @@ static const char moz_alias_bits[] = { |
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, |
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 }; |
-static const char moz_alias_mask_bits[] = { |
+static const unsigned char moz_alias_mask_bits[] = { |
0x00, 0x00, 0x00, 0x00, 0x06, 0x00, 0x00, 0x00, 0x0e, 0x00, 0x00, 0x00, |
0x1e, 0x00, 0x00, 0x00, 0x3e, 0x00, 0x00, 0x00, 0x7e, 0x00, 0x00, 0x00, |
0xfe, 0x00, 0x00, 0x00, 0xfe, 0x01, 0x00, 0x00, 0xfe, 0x03, 0x00, 0x00, |
@@ -140,7 +140,7 @@ static const char moz_alias_mask_bits[] = { |
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 }; |
/* MOZ_CURSOR_ZOOM_IN */ |
-static const char moz_zoom_in_bits[] = { |
+static const unsigned char moz_zoom_in_bits[] = { |
0xf0, 0x00, 0x00, 0x00, 0x0c, 0x03, 0x00, 0x00, 0x02, 0x04, 0x00, 0x00, |
0x62, 0x04, 0x00, 0x00, 0x61, 0x08, 0x00, 0x00, 0xf9, 0x09, 0x00, 0x00, |
0xf9, 0x09, 0x00, 0x00, 0x61, 0x08, 0x00, 0x00, 0x62, 0x04, 0x00, 0x00, |
@@ -153,7 +153,7 @@ static const char moz_zoom_in_bits[] = { |
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, |
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 }; |
-static const char moz_zoom_in_mask_bits[] = { |
+static const unsigned char moz_zoom_in_mask_bits[] = { |
0xf0, 0x00, 0x00, 0x00, 0xfc, 0x03, 0x00, 0x00, 0xfe, 0x07, 0x00, 0x00, |
0xfe, 0x07, 0x00, 0x00, 0xff, 0x0f, 0x00, 0x00, 0xff, 0x0f, 0x00, 0x00, |
0xff, 0x0f, 0x00, 0x00, 0xff, 0x0f, 0x00, 0x00, 0xfe, 0x07, 0x00, 0x00, |
@@ -167,7 +167,7 @@ static const char moz_zoom_in_mask_bits[] = { |
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 }; |
/* MOZ_CURSOR_ZOOM_OUT */ |
-static const char moz_zoom_out_bits[] = { |
+static const unsigned char moz_zoom_out_bits[] = { |
0xf0, 0x00, 0x00, 0x00, 0x0c, 0x03, 0x00, 0x00, 0x02, 0x04, 0x00, 0x00, |
0x02, 0x04, 0x00, 0x00, 0x01, 0x08, 0x00, 0x00, 0xf9, 0x09, 0x00, 0x00, |
0xf9, 0x09, 0x00, 0x00, 0x01, 0x08, 0x00, 0x00, 0x02, 0x04, 0x00, 0x00, |
@@ -180,7 +180,7 @@ static const char moz_zoom_out_bits[] = { |
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, |
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 }; |
-static const char moz_zoom_out_mask_bits[] = { |
+static const unsigned char moz_zoom_out_mask_bits[] = { |
0xf0, 0x00, 0x00, 0x00, 0xfc, 0x03, 0x00, 0x00, 0xfe, 0x07, 0x00, 0x00, |
0xfe, 0x07, 0x00, 0x00, 0xff, 0x0f, 0x00, 0x00, 0xff, 0x0f, 0x00, 0x00, |
0xff, 0x0f, 0x00, 0x00, 0xff, 0x0f, 0x00, 0x00, 0xfe, 0x07, 0x00, 0x00, |
@@ -194,7 +194,7 @@ static const char moz_zoom_out_mask_bits[] = { |
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 }; |
/* MOZ_CURSOR_HAND_GRAB */ |
-static const char moz_hand_grab_bits[] = { |
+static const unsigned char moz_hand_grab_bits[] = { |
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x06, 0x00, 0x00, |
0x60, 0x39, 0x00, 0x00, 0x90, 0x49, 0x00, 0x00, 0x90, 0x49, 0x01, 0x00, |
0x20, 0xc9, 0x02, 0x00, 0x20, 0x49, 0x02, 0x00, 0x58, 0x40, 0x02, 0x00, |
@@ -207,7 +207,7 @@ static const char moz_hand_grab_bits[] = { |
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, |
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 }; |
-static const char moz_hand_grab_mask_bits[] = { |
+static const unsigned char moz_hand_grab_mask_bits[] = { |
0x00, 0x00, 0x00, 0x00, 0x00, 0x06, 0x00, 0x00, 0x60, 0x3f, 0x00, 0x00, |
0xf0, 0x7f, 0x00, 0x00, 0xf8, 0xff, 0x01, 0x00, 0xf8, 0xff, 0x03, 0x00, |
0xf0, 0xff, 0x07, 0x00, 0xf8, 0xff, 0x07, 0x00, 0xfc, 0xff, 0x07, 0x00, |
@@ -221,7 +221,7 @@ static const char moz_hand_grab_mask_bits[] = { |
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 }; |
/* MOZ_CURSOR_HAND_GRABBING */ |
-static const char moz_hand_grabbing_bits[] = { |
+static const unsigned char moz_hand_grabbing_bits[] = { |
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, |
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, |
0xc0, 0x36, 0x00, 0x00, 0x20, 0xc9, 0x00, 0x00, 0x20, 0x40, 0x01, 0x00, |
@@ -234,7 +234,7 @@ static const char moz_hand_grabbing_bits[] = { |
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, |
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 }; |
-static const char moz_hand_grabbing_mask_bits[] = { |
+static const unsigned char moz_hand_grabbing_mask_bits[] = { |
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, |
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xc0, 0x36, 0x00, 0x00, |
0xe0, 0xff, 0x00, 0x00, 0xf0, 0xff, 0x01, 0x00, 0xf0, 0xff, 0x03, 0x00, |
@@ -268,14 +268,22 @@ typedef struct { |
// create custom pixmap cursor from cursors in nsGTKCursorData.h |
static const CustomCursor CustomCursors[] = { |
- { "copy", moz_copy_bits, moz_copy_mask_bits, 2, 2 }, |
- { "alias", moz_alias_bits, moz_alias_mask_bits, 2, 2 }, |
- { "context-menu", moz_menu_bits, moz_menu_mask_bits, 2, 2 }, |
- { "zoom-in", moz_zoom_in_bits, moz_zoom_in_mask_bits, 6, 6 }, |
- { "zoom-out", moz_zoom_out_bits, moz_zoom_out_mask_bits, 6, 6 }, |
- { "vertical-text", moz_vertical_text_bits, moz_vertical_text_mask_bits, 8, 4 }, |
- { "grab", moz_hand_grab_bits, moz_hand_grab_mask_bits, 10, 10 }, |
- { "grabbing", moz_hand_grabbing_bits, moz_hand_grabbing_mask_bits, 10, 10 } |
+ { "copy", reinterpret_cast<const char*>(moz_copy_bits), |
+ reinterpret_cast<const char*>(moz_copy_mask_bits), 2, 2 }, |
+ { "alias", reinterpret_cast<const char*>(moz_alias_bits), |
+ reinterpret_cast<const char*>(moz_alias_mask_bits), 2, 2 }, |
+ { "context-menu", reinterpret_cast<const char*>(moz_menu_bits), |
+ reinterpret_cast<const char*>(moz_menu_mask_bits), 2, 2 }, |
+ { "zoom-in", reinterpret_cast<const char*>(moz_zoom_in_bits), |
+ reinterpret_cast<const char*>(moz_zoom_in_mask_bits), 6, 6 }, |
+ { "zoom-out", reinterpret_cast<const char*>(moz_zoom_out_bits), |
+ reinterpret_cast<const char*>(moz_zoom_out_mask_bits), 6, 6 }, |
+ { "vertical-text", reinterpret_cast<const char*>(moz_vertical_text_bits), |
+ reinterpret_cast<const char*>(moz_vertical_text_mask_bits), 8, 4 }, |
+ { "grab", reinterpret_cast<const char*>(moz_hand_grab_bits), |
+ reinterpret_cast<const char*>(moz_hand_grab_mask_bits), 10, 10 }, |
+ { "grabbing", reinterpret_cast<const char*>(moz_hand_grabbing_bits), |
+ reinterpret_cast<const char*>(moz_hand_grabbing_mask_bits), 10, 10 } |
}; |
// This cursor intentionally left out of above structs. It is only used by |
@@ -284,7 +292,7 @@ static const CustomCursor CustomCursors[] = { |
// to as left_ptr_watch). |
/* MOZ_CURSOR_SPINNING */ |
-static const char moz_spinning_bits[] = { |
+static const unsigned char moz_spinning_bits[] = { |
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, |
0x0c, 0x00, 0x00, 0x00, 0x1c, 0x00, 0x00, 0x00, 0x3c, 0x00, 0x00, 0x00, |
0x7c, 0x00, 0x00, 0x00, 0xfc, 0x00, 0x00, 0x00, 0xfc, 0x01, 0x00, 0x00, |
@@ -297,7 +305,7 @@ static const char moz_spinning_bits[] = { |
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, |
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 }; |
-static const char moz_spinning_mask_bits[] = { |
+static const unsigned char moz_spinning_mask_bits[] = { |
0x00, 0x00, 0x00, 0x00, 0x06, 0x00, 0x00, 0x00, 0x0e, 0x00, 0x00, 0x00, |
0x1e, 0x00, 0x00, 0x00, 0x3e, 0x00, 0x00, 0x00, 0x7e, 0x00, 0x00, 0x00, |
0xfe, 0x00, 0x00, 0x00, 0xfe, 0x01, 0x00, 0x00, 0xfe, 0x3b, 0x00, 0x00, |