Changeset 79942 in webkit
- Timestamp:
- Feb 28, 2011, 4:51:45 PM (14 years ago)
- Location:
- trunk/Source
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r79936 r79942 1 2011-02-28 Avi Drissman <avi@google.com> 2 3 Reviewed by James Robinson. 4 5 WebCursorInfo needs to match enums in platform/Cursor.h 6 https://bugs.webkit.org/show_bug.cgi?id=55094 7 8 * platform/chromium/CursorChromium.cpp: 9 (WebCore::grabCursor): 10 (WebCore::grabbingCursor): 11 * platform/chromium/PlatformCursor.h: 12 1 13 2011-02-28 Jia Pu <jpu@apple.com> 2 14 -
trunk/Source/WebCore/platform/chromium/CursorChromium.cpp
r63339 r79942 32 32 #include "Cursor.h" 33 33 34 #include <wtf/Assertions.h> 35 34 36 namespace WebCore { 35 37 … … 307 309 const Cursor& grabCursor() 308 310 { 309 return pointerCursor(); 311 static const Cursor c(PlatformCursor::TypeGrab); 312 return c; 310 313 } 311 314 312 315 const Cursor& grabbingCursor() 313 316 { 314 return pointerCursor(); 317 static const Cursor c(PlatformCursor::TypeGrabbing); 318 return c; 315 319 } 316 320 317 321 } // namespace WebCore 322 323 #define COMPILE_ASSERT_MATCHING_ENUM(cursor_name, platform_cursor_name) \ 324 COMPILE_ASSERT(int(WebCore::Cursor::cursor_name) == int(WebCore::PlatformCursor::platform_cursor_name), mismatching_enums) 325 326 COMPILE_ASSERT_MATCHING_ENUM(Pointer, TypePointer); 327 COMPILE_ASSERT_MATCHING_ENUM(Cross, TypeCross); 328 COMPILE_ASSERT_MATCHING_ENUM(Hand, TypeHand); 329 COMPILE_ASSERT_MATCHING_ENUM(IBeam, TypeIBeam); 330 COMPILE_ASSERT_MATCHING_ENUM(Wait, TypeWait); 331 COMPILE_ASSERT_MATCHING_ENUM(Help, TypeHelp); 332 COMPILE_ASSERT_MATCHING_ENUM(EastResize, TypeEastResize); 333 COMPILE_ASSERT_MATCHING_ENUM(NorthResize, TypeNorthResize); 334 COMPILE_ASSERT_MATCHING_ENUM(NorthEastResize, TypeNorthEastResize); 335 COMPILE_ASSERT_MATCHING_ENUM(NorthWestResize, TypeNorthWestResize); 336 COMPILE_ASSERT_MATCHING_ENUM(SouthResize, TypeSouthResize); 337 COMPILE_ASSERT_MATCHING_ENUM(SouthEastResize, TypeSouthEastResize); 338 COMPILE_ASSERT_MATCHING_ENUM(SouthWestResize, TypeSouthWestResize); 339 COMPILE_ASSERT_MATCHING_ENUM(WestResize, TypeWestResize); 340 COMPILE_ASSERT_MATCHING_ENUM(NorthSouthResize, TypeNorthSouthResize); 341 COMPILE_ASSERT_MATCHING_ENUM(EastWestResize, TypeEastWestResize); 342 COMPILE_ASSERT_MATCHING_ENUM(NorthEastSouthWestResize, TypeNorthEastSouthWestResize); 343 COMPILE_ASSERT_MATCHING_ENUM(NorthWestSouthEastResize, TypeNorthWestSouthEastResize); 344 COMPILE_ASSERT_MATCHING_ENUM(ColumnResize, TypeColumnResize); 345 COMPILE_ASSERT_MATCHING_ENUM(RowResize, TypeRowResize); 346 COMPILE_ASSERT_MATCHING_ENUM(MiddlePanning, TypeMiddlePanning); 347 COMPILE_ASSERT_MATCHING_ENUM(EastPanning, TypeEastPanning); 348 COMPILE_ASSERT_MATCHING_ENUM(NorthPanning, TypeNorthPanning); 349 COMPILE_ASSERT_MATCHING_ENUM(NorthEastPanning, TypeNorthEastPanning); 350 COMPILE_ASSERT_MATCHING_ENUM(NorthWestPanning, TypeNorthWestPanning); 351 COMPILE_ASSERT_MATCHING_ENUM(SouthPanning, TypeSouthPanning); 352 COMPILE_ASSERT_MATCHING_ENUM(SouthEastPanning, TypeSouthEastPanning); 353 COMPILE_ASSERT_MATCHING_ENUM(SouthWestPanning, TypeSouthWestPanning); 354 COMPILE_ASSERT_MATCHING_ENUM(WestPanning, TypeWestPanning); 355 COMPILE_ASSERT_MATCHING_ENUM(Move, TypeMove); 356 COMPILE_ASSERT_MATCHING_ENUM(VerticalText, TypeVerticalText); 357 COMPILE_ASSERT_MATCHING_ENUM(Cell, TypeCell); 358 COMPILE_ASSERT_MATCHING_ENUM(ContextMenu, TypeContextMenu); 359 COMPILE_ASSERT_MATCHING_ENUM(Alias, TypeAlias); 360 COMPILE_ASSERT_MATCHING_ENUM(Progress, TypeProgress); 361 COMPILE_ASSERT_MATCHING_ENUM(NoDrop, TypeNoDrop); 362 COMPILE_ASSERT_MATCHING_ENUM(Copy, TypeCopy); 363 COMPILE_ASSERT_MATCHING_ENUM(None, TypeNone); 364 COMPILE_ASSERT_MATCHING_ENUM(NotAllowed, TypeNotAllowed); 365 COMPILE_ASSERT_MATCHING_ENUM(ZoomIn, TypeZoomIn); 366 COMPILE_ASSERT_MATCHING_ENUM(ZoomOut, TypeZoomOut); 367 COMPILE_ASSERT_MATCHING_ENUM(Grab, TypeGrab); 368 COMPILE_ASSERT_MATCHING_ENUM(Grabbing, TypeGrabbing); 369 COMPILE_ASSERT_MATCHING_ENUM(Custom, TypeCustom); -
trunk/Source/WebCore/platform/chromium/PlatformCursor.h
r39903 r79942 82 82 TypeZoomIn, 83 83 TypeZoomOut, 84 TypeGrab, 85 TypeGrabbing, 84 86 TypeCustom 85 87 }; -
trunk/Source/WebKit/chromium/ChangeLog
r79920 r79942 1 2011-02-28 Avi Drissman <avi@google.com> 2 3 Reviewed by James Robinson. 4 5 WebCursorInfo needs to match enums in platform/Cursor.h 6 https://bugs.webkit.org/show_bug.cgi?id=55094 7 8 * public/WebCursorInfo.h: 9 * src/AssertMatchingEnums.cpp: 10 1 11 2011-02-28 Sheriff Bot <webkit.review.bot@gmail.com> 2 12 -
trunk/Source/WebKit/chromium/public/WebCursorInfo.h
r50678 r79942 89 89 TypeZoomIn, 90 90 TypeZoomOut, 91 TypeGrab, 92 TypeGrabbing, 91 93 TypeCustom 92 94 }; -
trunk/Source/WebKit/chromium/src/AssertMatchingEnums.cpp
r79920 r79942 259 259 COMPILE_ASSERT_MATCHING_ENUM(WebCursorInfo::TypeZoomIn, PlatformCursor::TypeZoomIn); 260 260 COMPILE_ASSERT_MATCHING_ENUM(WebCursorInfo::TypeZoomOut, PlatformCursor::TypeZoomOut); 261 COMPILE_ASSERT_MATCHING_ENUM(WebCursorInfo::TypeGrab, PlatformCursor::TypeGrab); 262 COMPILE_ASSERT_MATCHING_ENUM(WebCursorInfo::TypeGrabbing, PlatformCursor::TypeGrabbing); 261 263 COMPILE_ASSERT_MATCHING_ENUM(WebCursorInfo::TypeCustom, PlatformCursor::TypeCustom); 262 264
Note:
See TracChangeset
for help on using the changeset viewer.