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

Unified Diff: ui/base/cursor/cursor.h

Issue 854713003: More old files deletion. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Fix tryjobs? Created 5 years, 11 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 | « ui/base/android/ui_base_jni_registrar.cc ('k') | ui/base/cursor/cursor.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/base/cursor/cursor.h
diff --git a/ui/base/cursor/cursor.h b/ui/base/cursor/cursor.h
index 72999d4c3be41e8cfc65a694a63129f555d60ec6..5e6a8fbb3c8260ddaa498a6ca03f00761b3371b8 100644
--- a/ui/base/cursor/cursor.h
+++ b/ui/base/cursor/cursor.h
@@ -29,120 +29,6 @@ typedef unsigned long PlatformCursor;
typedef void* PlatformCursor;
#endif
-// TODO(jamescook): Once we're on C++0x we could change these constants
-// to an enum and forward declare it in native_widget_types.h.
-
-// Equivalent to a NULL HCURSOR on Windows.
-const int kCursorNull = 0;
-
-// These cursors mirror WebKit cursors from WebCursorInfo, but are replicated
-// here so we don't introduce a WebKit dependency.
-const int kCursorPointer = 1;
-const int kCursorCross = 2;
-const int kCursorHand = 3;
-const int kCursorIBeam = 4;
-const int kCursorWait = 5;
-const int kCursorHelp = 6;
-const int kCursorEastResize = 7;
-const int kCursorNorthResize = 8;
-const int kCursorNorthEastResize = 9;
-const int kCursorNorthWestResize = 10;
-const int kCursorSouthResize = 11;
-const int kCursorSouthEastResize = 12;
-const int kCursorSouthWestResize = 13;
-const int kCursorWestResize = 14;
-const int kCursorNorthSouthResize = 15;
-const int kCursorEastWestResize = 16;
-const int kCursorNorthEastSouthWestResize = 17;
-const int kCursorNorthWestSouthEastResize = 18;
-const int kCursorColumnResize = 19;
-const int kCursorRowResize = 20;
-const int kCursorMiddlePanning = 21;
-const int kCursorEastPanning = 22;
-const int kCursorNorthPanning = 23;
-const int kCursorNorthEastPanning = 24;
-const int kCursorNorthWestPanning = 25;
-const int kCursorSouthPanning = 26;
-const int kCursorSouthEastPanning = 27;
-const int kCursorSouthWestPanning = 28;
-const int kCursorWestPanning = 29;
-const int kCursorMove = 30;
-const int kCursorVerticalText = 31;
-const int kCursorCell = 32;
-const int kCursorContextMenu = 33;
-const int kCursorAlias = 34;
-const int kCursorProgress = 35;
-const int kCursorNoDrop = 36;
-const int kCursorCopy = 37;
-const int kCursorNone = 38;
-const int kCursorNotAllowed = 39;
-const int kCursorZoomIn = 40;
-const int kCursorZoomOut = 41;
-const int kCursorGrab = 42;
-const int kCursorGrabbing = 43;
-const int kCursorCustom = 44;
-
-enum CursorSetType {
- CURSOR_SET_NORMAL,
- CURSOR_SET_LARGE
-};
-
-// Ref-counted cursor that supports both default and custom cursors.
-class UI_BASE_EXPORT Cursor {
- public:
- Cursor();
-
- // Implicit constructor.
- Cursor(int type);
-
- // Allow copy.
- Cursor(const Cursor& cursor);
-
- ~Cursor();
-
- void SetPlatformCursor(const PlatformCursor& platform);
-
- void RefCustomCursor();
- void UnrefCustomCursor();
-
- int native_type() const { return native_type_; }
- PlatformCursor platform() const { return platform_cursor_; }
- float device_scale_factor() const {
- return device_scale_factor_;
- }
- void set_device_scale_factor(float device_scale_factor) {
- device_scale_factor_ = device_scale_factor;
- }
-
- bool operator==(int type) const { return native_type_ == type; }
- bool operator==(const Cursor& cursor) const {
- return native_type_ == cursor.native_type_ &&
- platform_cursor_ == cursor.platform_cursor_ &&
- device_scale_factor_ == cursor.device_scale_factor_;
- }
- bool operator!=(int type) const { return native_type_ != type; }
- bool operator!=(const Cursor& cursor) const {
- return native_type_ != cursor.native_type_ ||
- platform_cursor_ != cursor.platform_cursor_ ||
- device_scale_factor_ != cursor.device_scale_factor_;
- }
-
- void operator=(const Cursor& cursor) {
- Assign(cursor);
- }
-
- private:
- void Assign(const Cursor& cursor);
-
- // See definitions above.
- int native_type_;
-
- PlatformCursor platform_cursor_;
-
- // The device scale factor for the cursor.
- float device_scale_factor_;
-};
-
} // namespace ui
#endif // UI_BASE_CURSOR_CURSOR_H_
« no previous file with comments | « ui/base/android/ui_base_jni_registrar.cc ('k') | ui/base/cursor/cursor.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698