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

Unified Diff: content/common/cursors/webcursor.h

Issue 1975033002: Minor cleanup to webcursors. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: forgot one thing Created 4 years, 7 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
Index: content/common/cursors/webcursor.h
diff --git a/content/common/cursors/webcursor.h b/content/common/cursors/webcursor.h
index 9bbdd1e1d231c69f7c2fed285a8c4a018437b3fb..498d744823ec5a3b7a433c95104dbc77af222109 100644
--- a/content/common/cursors/webcursor.h
+++ b/content/common/cursors/webcursor.h
@@ -7,7 +7,6 @@
#include <vector>
-#include "base/gtest_prod_util.h"
#include "build/build_config.h"
#include "content/common/content_export.h"
#include "third_party/WebKit/public/platform/WebCursorInfo.h"
@@ -49,26 +48,17 @@ class CONTENT_EXPORT WebCursor {
explicit CursorInfo(blink::WebCursorInfo::Type cursor_type)
: type(cursor_type),
image_scale_factor(1) {
-#if defined(OS_WIN)
- external_handle = NULL;
-#endif
}
CursorInfo()
: type(blink::WebCursorInfo::TypePointer),
image_scale_factor(1) {
-#if defined(OS_WIN)
- external_handle = NULL;
-#endif
}
blink::WebCursorInfo::Type type;
gfx::Point hotspot;
float image_scale_factor;
SkBitmap custom_image;
-#if defined(OS_WIN)
- HCURSOR external_handle;
-#endif
};
WebCursor();
@@ -116,8 +106,6 @@ class CONTENT_EXPORT WebCursor {
void CreateScaledBitmapAndHotspotFromCustomData(
SkBitmap* bitmap,
gfx::Point* hotspot);
- FRIEND_TEST_ALL_PREFIXES(WebCursorTest,
- CreateScaledBitmapAndHotspotFromCustomData);
#elif defined(OS_WIN)
// Returns a HCURSOR representing the current WebCursor instance.
@@ -179,12 +167,6 @@ class CONTENT_EXPORT WebCursor {
float custom_scale_;
std::vector<char> custom_data_;
-#if defined(OS_WIN)
- // An externally generated HCURSOR. We assume that it remains valid, i.e we
- // don't attempt to copy the HCURSOR.
- HCURSOR external_cursor_;
-#endif
-
#if defined(USE_AURA) && (defined(USE_X11) || defined(USE_OZONE))
// Only used for custom cursors.
ui::PlatformCursor platform_cursor_;

Powered by Google App Engine
This is Rietveld 408576698