| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2012 Google Inc. All rights reserved. | 2 * Copyright (C) 2012 Google Inc. All rights reserved. |
| 3 * Copyright (C) 2013 Apple Inc. All rights reserved. | 3 * Copyright (C) 2013 Apple Inc. All rights reserved. |
| 4 * | 4 * |
| 5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
| 6 * modification, are permitted provided that the following conditions | 6 * modification, are permitted provided that the following conditions |
| 7 * are met: | 7 * are met: |
| 8 * | 8 * |
| 9 * 1. Redistributions of source code must retain the above copyright | 9 * 1. Redistributions of source code must retain the above copyright |
| 10 * notice, this list of conditions and the following disclaimer. | 10 * notice, this list of conditions and the following disclaimer. |
| (...skipping 1954 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1965 case Cursor::Grabbing: return "Grabbing"; | 1965 case Cursor::Grabbing: return "Grabbing"; |
| 1966 case Cursor::Custom: return "Custom"; | 1966 case Cursor::Custom: return "Custom"; |
| 1967 } | 1967 } |
| 1968 | 1968 |
| 1969 ASSERT_NOT_REACHED(); | 1969 ASSERT_NOT_REACHED(); |
| 1970 return "UNKNOWN"; | 1970 return "UNKNOWN"; |
| 1971 } | 1971 } |
| 1972 | 1972 |
| 1973 String Internals::getCurrentCursorInfo() | 1973 String Internals::getCurrentCursorInfo() |
| 1974 { | 1974 { |
| 1975 Cursor cursor = frame()->page()->chromeClient().getLastSetCursorForTesting()
; | 1975 Cursor cursor = frame()->page()->chromeClient().lastSetCursorForTesting(); |
| 1976 | 1976 |
| 1977 StringBuilder result; | 1977 StringBuilder result; |
| 1978 result.appendLiteral("type="); | 1978 result.appendLiteral("type="); |
| 1979 result.append(cursorTypeToString(cursor.type())); | 1979 result.append(cursorTypeToString(cursor.type())); |
| 1980 result.appendLiteral(" hotSpot="); | 1980 result.appendLiteral(" hotSpot="); |
| 1981 result.appendNumber(cursor.hotSpot().x()); | 1981 result.appendNumber(cursor.hotSpot().x()); |
| 1982 result.append(','); | 1982 result.append(','); |
| 1983 result.appendNumber(cursor.hotSpot().y()); | 1983 result.appendNumber(cursor.hotSpot().y()); |
| 1984 if (cursor.image()) { | 1984 if (cursor.image()) { |
| 1985 IntSize size = cursor.image()->size(); | 1985 IntSize size = cursor.image()->size(); |
| (...skipping 378 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2364 | 2364 |
| 2365 ClientRectList* Internals::focusRingRects(Element* element) | 2365 ClientRectList* Internals::focusRingRects(Element* element) |
| 2366 { | 2366 { |
| 2367 Vector<LayoutRect> rects; | 2367 Vector<LayoutRect> rects; |
| 2368 if (element && element->layoutObject()) | 2368 if (element && element->layoutObject()) |
| 2369 element->layoutObject()->addFocusRingRects(rects, LayoutPoint()); | 2369 element->layoutObject()->addFocusRingRects(rects, LayoutPoint()); |
| 2370 return ClientRectList::create(rects); | 2370 return ClientRectList::create(rects); |
| 2371 } | 2371 } |
| 2372 | 2372 |
| 2373 } // namespace blink | 2373 } // namespace blink |
| OLD | NEW |