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_LOADER_H_ | 5 #ifndef UI_BASE_CURSOR_CURSOR_LOADER_H_ |
6 #define UI_BASE_CURSOR_CURSOR_LOADER_H_ | 6 #define UI_BASE_CURSOR_CURSOR_LOADER_H_ |
7 | 7 |
8 #include "base/logging.h" | 8 #include "base/logging.h" |
9 #include "base/strings/string16.h" | 9 #include "base/strings/string16.h" |
10 #include "ui/base/ui_base_export.h" | 10 #include "ui/base/ui_base_export.h" |
11 #include "ui/gfx/display.h" | 11 #include "ui/gfx/display.h" |
| 12 #include "ui/gfx/geometry/point.h" |
12 #include "ui/gfx/native_widget_types.h" | 13 #include "ui/gfx/native_widget_types.h" |
13 #include "ui/gfx/point.h" | |
14 | 14 |
15 namespace ui { | 15 namespace ui { |
16 | 16 |
17 class UI_BASE_EXPORT CursorLoader { | 17 class UI_BASE_EXPORT CursorLoader { |
18 public: | 18 public: |
19 CursorLoader() : scale_(1.f), rotation_(gfx::Display::ROTATE_0) {} | 19 CursorLoader() : scale_(1.f), rotation_(gfx::Display::ROTATE_0) {} |
20 virtual ~CursorLoader() {} | 20 virtual ~CursorLoader() {} |
21 | 21 |
22 gfx::Display::Rotation rotation() const { | 22 gfx::Display::Rotation rotation() const { |
23 return rotation_; | 23 return rotation_; |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
67 | 67 |
68 // The current rotation of the mouse cursor icon. | 68 // The current rotation of the mouse cursor icon. |
69 gfx::Display::Rotation rotation_; | 69 gfx::Display::Rotation rotation_; |
70 | 70 |
71 DISALLOW_COPY_AND_ASSIGN(CursorLoader); | 71 DISALLOW_COPY_AND_ASSIGN(CursorLoader); |
72 }; | 72 }; |
73 | 73 |
74 } // namespace ui | 74 } // namespace ui |
75 | 75 |
76 #endif // UI_BASE_CURSOR_CURSOR_LOADER_H_ | 76 #endif // UI_BASE_CURSOR_CURSOR_LOADER_H_ |
OLD | NEW |