| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef UI_BASE_CURSOR_CURSOR_H_ | 5 #ifndef UI_BASE_CURSOR_CURSOR_H_ |
| 6 #define UI_BASE_CURSOR_CURSOR_H_ | 6 #define UI_BASE_CURSOR_CURSOR_H_ |
| 7 | 7 |
| 8 #include "build/build_config.h" | 8 #include "build/build_config.h" |
| 9 #include "ui/base/ui_export.h" | 9 #include "ui/base/ui_base_export.h" |
| 10 | 10 |
| 11 namespace gfx { | 11 namespace gfx { |
| 12 class Point; | 12 class Point; |
| 13 class Size; | 13 class Size; |
| 14 } | 14 } |
| 15 | 15 |
| 16 #if defined(OS_WIN) | 16 #if defined(OS_WIN) |
| 17 typedef struct HINSTANCE__* HINSTANCE; | 17 typedef struct HINSTANCE__* HINSTANCE; |
| 18 typedef struct HICON__* HICON; | 18 typedef struct HICON__* HICON; |
| 19 typedef HICON HCURSOR; | 19 typedef HICON HCURSOR; |
| (...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 81 const int kCursorGrab = 42; | 81 const int kCursorGrab = 42; |
| 82 const int kCursorGrabbing = 43; | 82 const int kCursorGrabbing = 43; |
| 83 const int kCursorCustom = 44; | 83 const int kCursorCustom = 44; |
| 84 | 84 |
| 85 enum CursorSetType { | 85 enum CursorSetType { |
| 86 CURSOR_SET_NORMAL, | 86 CURSOR_SET_NORMAL, |
| 87 CURSOR_SET_LARGE | 87 CURSOR_SET_LARGE |
| 88 }; | 88 }; |
| 89 | 89 |
| 90 // Ref-counted cursor that supports both default and custom cursors. | 90 // Ref-counted cursor that supports both default and custom cursors. |
| 91 class UI_EXPORT Cursor { | 91 class UI_BASE_EXPORT Cursor { |
| 92 public: | 92 public: |
| 93 Cursor(); | 93 Cursor(); |
| 94 | 94 |
| 95 // Implicit constructor. | 95 // Implicit constructor. |
| 96 Cursor(int type); | 96 Cursor(int type); |
| 97 | 97 |
| 98 // Allow copy. | 98 // Allow copy. |
| 99 Cursor(const Cursor& cursor); | 99 Cursor(const Cursor& cursor); |
| 100 | 100 |
| 101 ~Cursor(); | 101 ~Cursor(); |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 139 | 139 |
| 140 PlatformCursor platform_cursor_; | 140 PlatformCursor platform_cursor_; |
| 141 | 141 |
| 142 // The device scale factor for the cursor. | 142 // The device scale factor for the cursor. |
| 143 float device_scale_factor_; | 143 float device_scale_factor_; |
| 144 }; | 144 }; |
| 145 | 145 |
| 146 } // namespace ui | 146 } // namespace ui |
| 147 | 147 |
| 148 #endif // UI_BASE_CURSOR_CURSOR_H_ | 148 #endif // UI_BASE_CURSOR_CURSOR_H_ |
| OLD | NEW |