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

Unified Diff: content/common/cursors/webcursor_unittest.cc

Issue 2808763009: Allow content embedder to set a cursor for RenderWidgetHost (Closed)
Patch Set: comment Created 3 years, 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/common/cursors/webcursor.h ('k') | content/public/browser/render_widget_host.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/cursors/webcursor_unittest.cc
diff --git a/content/common/cursors/webcursor_unittest.cc b/content/common/cursors/webcursor_unittest.cc
index ccfd064034981779ba1e82257c766d9577c83fc8..7af1eb563981247d27e5c9a01b6f2d7b7482954f 100644
--- a/content/common/cursors/webcursor_unittest.cc
+++ b/content/common/cursors/webcursor_unittest.cc
@@ -161,7 +161,7 @@ TEST(WebCursorTest, ClampHotspot) {
EXPECT_TRUE(custom_cursor.Deserialize(&iter));
// Convert to WebCursorInfo, make sure the hotspot got clamped.
- WebCursor::CursorInfo info;
+ CursorInfo info;
custom_cursor.GetCursorInfo(&info);
EXPECT_EQ(gfx::Point(1, 1), info.hotspot);
@@ -224,7 +224,7 @@ TEST(WebCursorTest, AlphaConversion) {
bitmap.allocN32Pixels(1,1);
SkAutoLockPixels bitmap_lock(bitmap);
*bitmap.getAddr32(0, 0) = testColor;
- WebCursor::CursorInfo cursor_info;
+ CursorInfo cursor_info;
cursor_info.type = WebCursorInfo::kTypeCustom;
cursor_info.custom_image = bitmap;
cursor_info.image_scale_factor = 1;
@@ -270,7 +270,7 @@ TEST(WebCursorTest, CursorScaleFactor) {
display::Display display;
display.set_device_scale_factor(80.2f);
- WebCursor::CursorInfo info;
+ CursorInfo info;
info.image_scale_factor = 2.0f;
WebCursor cursor;
@@ -281,7 +281,7 @@ TEST(WebCursorTest, CursorScaleFactor) {
}
TEST(WebCursorTest, UnscaledImageCopy) {
- WebCursor::CursorInfo info;
+ CursorInfo info;
info.type = WebCursorInfo::kTypeCustom;
info.hotspot = gfx::Point(0, 1);
@@ -325,7 +325,7 @@ void ScaleCursor(float scale_factor, int hotspot_x, int hotspot_y) {
display::Display display;
display.set_device_scale_factor(scale_factor);
- WebCursor::CursorInfo info;
+ CursorInfo info;
info.type = WebCursorInfo::kTypeCustom;
info.hotspot = gfx::Point(hotspot_x, hotspot_y);
« no previous file with comments | « content/common/cursors/webcursor.h ('k') | content/public/browser/render_widget_host.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698