Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(27)

Side by Side Diff: Source/core/testing/Internals.cpp

Issue 1143043006: Cleanup: Move ChromeClient::m_lastSetMouseCursorForTesting to ChromeClientImpl. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « Source/core/page/ChromeClient.cpp ('k') | Source/web/ChromeClientImpl.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « Source/core/page/ChromeClient.cpp ('k') | Source/web/ChromeClientImpl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698