| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2010 Apple Inc. All rights reserved. | 2 * Copyright (C) 2010 Apple 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 | 5 * modification, are permitted provided that the following conditions |
| 6 * are met: | 6 * are met: |
| 7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
| 8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
| 9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
| 10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
| (...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 83 case Cursor::EastWestResize: | 83 case Cursor::EastWestResize: |
| 84 return eastWestResizeCursor(); | 84 return eastWestResizeCursor(); |
| 85 case Cursor::NorthEastSouthWestResize: | 85 case Cursor::NorthEastSouthWestResize: |
| 86 return northEastSouthWestResizeCursor(); | 86 return northEastSouthWestResizeCursor(); |
| 87 case Cursor::NorthWestSouthEastResize: | 87 case Cursor::NorthWestSouthEastResize: |
| 88 return northWestSouthEastResizeCursor(); | 88 return northWestSouthEastResizeCursor(); |
| 89 case Cursor::ColumnResize: | 89 case Cursor::ColumnResize: |
| 90 return columnResizeCursor(); | 90 return columnResizeCursor(); |
| 91 case Cursor::RowResize: | 91 case Cursor::RowResize: |
| 92 return rowResizeCursor(); | 92 return rowResizeCursor(); |
| 93 #if OS(WIN) |
| 93 case Cursor::MiddlePanning: | 94 case Cursor::MiddlePanning: |
| 94 return middlePanningCursor(); | 95 return middlePanningCursor(); |
| 95 case Cursor::EastPanning: | 96 case Cursor::EastPanning: |
| 96 return eastPanningCursor(); | 97 return eastPanningCursor(); |
| 97 case Cursor::NorthPanning: | 98 case Cursor::NorthPanning: |
| 98 return northPanningCursor(); | 99 return northPanningCursor(); |
| 99 case Cursor::NorthEastPanning: | 100 case Cursor::NorthEastPanning: |
| 100 return northEastPanningCursor(); | 101 return northEastPanningCursor(); |
| 101 case Cursor::NorthWestPanning: | 102 case Cursor::NorthWestPanning: |
| 102 return northWestPanningCursor(); | 103 return northWestPanningCursor(); |
| 103 case Cursor::SouthPanning: | 104 case Cursor::SouthPanning: |
| 104 return southPanningCursor(); | 105 return southPanningCursor(); |
| 105 case Cursor::SouthEastPanning: | 106 case Cursor::SouthEastPanning: |
| 106 return southEastPanningCursor(); | 107 return southEastPanningCursor(); |
| 107 case Cursor::SouthWestPanning: | 108 case Cursor::SouthWestPanning: |
| 108 return southWestPanningCursor(); | 109 return southWestPanningCursor(); |
| 109 case Cursor::WestPanning: | 110 case Cursor::WestPanning: |
| 110 return westPanningCursor(); | 111 return westPanningCursor(); |
| 112 #endif // OS(WIN) |
| 111 case Cursor::Move: | 113 case Cursor::Move: |
| 112 return moveCursor(); | 114 return moveCursor(); |
| 113 case Cursor::VerticalText: | 115 case Cursor::VerticalText: |
| 114 return verticalTextCursor(); | 116 return verticalTextCursor(); |
| 115 case Cursor::Cell: | 117 case Cursor::Cell: |
| 116 return cellCursor(); | 118 return cellCursor(); |
| 117 case Cursor::ContextMenu: | 119 case Cursor::ContextMenu: |
| 118 return contextMenuCursor(); | 120 return contextMenuCursor(); |
| 119 case Cursor::Alias: | 121 case Cursor::Alias: |
| 120 return aliasCursor(); | 122 return aliasCursor(); |
| (...skipping 249 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 370 DEFINE_STATIC_LOCAL(Cursor, c, (Cursor::ColumnResize)); | 372 DEFINE_STATIC_LOCAL(Cursor, c, (Cursor::ColumnResize)); |
| 371 return c; | 373 return c; |
| 372 } | 374 } |
| 373 | 375 |
| 374 const Cursor& rowResizeCursor() | 376 const Cursor& rowResizeCursor() |
| 375 { | 377 { |
| 376 DEFINE_STATIC_LOCAL(Cursor, c, (Cursor::RowResize)); | 378 DEFINE_STATIC_LOCAL(Cursor, c, (Cursor::RowResize)); |
| 377 return c; | 379 return c; |
| 378 } | 380 } |
| 379 | 381 |
| 382 #if OS(WIN) |
| 380 const Cursor& middlePanningCursor() | 383 const Cursor& middlePanningCursor() |
| 381 { | 384 { |
| 382 DEFINE_STATIC_LOCAL(Cursor, c, (Cursor::MiddlePanning)); | 385 DEFINE_STATIC_LOCAL(Cursor, c, (Cursor::MiddlePanning)); |
| 383 return c; | 386 return c; |
| 384 } | 387 } |
| 385 | 388 |
| 386 const Cursor& eastPanningCursor() | 389 const Cursor& eastPanningCursor() |
| 387 { | 390 { |
| 388 DEFINE_STATIC_LOCAL(Cursor, c, (Cursor::EastPanning)); | 391 DEFINE_STATIC_LOCAL(Cursor, c, (Cursor::EastPanning)); |
| 389 return c; | 392 return c; |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 423 { | 426 { |
| 424 DEFINE_STATIC_LOCAL(Cursor, c, (Cursor::SouthWestPanning)); | 427 DEFINE_STATIC_LOCAL(Cursor, c, (Cursor::SouthWestPanning)); |
| 425 return c; | 428 return c; |
| 426 } | 429 } |
| 427 | 430 |
| 428 const Cursor& westPanningCursor() | 431 const Cursor& westPanningCursor() |
| 429 { | 432 { |
| 430 DEFINE_STATIC_LOCAL(Cursor, c, (Cursor::WestPanning)); | 433 DEFINE_STATIC_LOCAL(Cursor, c, (Cursor::WestPanning)); |
| 431 return c; | 434 return c; |
| 432 } | 435 } |
| 436 #endif // OS(WIN) |
| 433 | 437 |
| 434 const Cursor& grabCursor() | 438 const Cursor& grabCursor() |
| 435 { | 439 { |
| 436 DEFINE_STATIC_LOCAL(Cursor, c, (Cursor::Grab)); | 440 DEFINE_STATIC_LOCAL(Cursor, c, (Cursor::Grab)); |
| 437 return c; | 441 return c; |
| 438 } | 442 } |
| 439 | 443 |
| 440 const Cursor& grabbingCursor() | 444 const Cursor& grabbingCursor() |
| 441 { | 445 { |
| 442 DEFINE_STATIC_LOCAL(Cursor, c, (Cursor::Grabbing)); | 446 DEFINE_STATIC_LOCAL(Cursor, c, (Cursor::Grabbing)); |
| 443 return c; | 447 return c; |
| 444 } | 448 } |
| 445 | 449 |
| 446 } // namespace WebCore | 450 } // namespace WebCore |
| OLD | NEW |