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_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/native_widget_types.h" | 12 #include "ui/gfx/native_widget_types.h" |
13 #include "ui/gfx/point.h" | 13 #include "ui/gfx/point.h" |
14 | 14 |
15 namespace ui { | 15 namespace ui { |
16 | 16 |
17 class UI_EXPORT CursorLoader { | 17 class UI_BASE_EXPORT CursorLoader { |
18 public: | 18 public: |
19 CursorLoader() : scale_(1.f) {} | 19 CursorLoader() : scale_(1.f) {} |
20 virtual ~CursorLoader() {} | 20 virtual ~CursorLoader() {} |
21 | 21 |
22 // Returns the display the loader loads images for. | 22 // Returns the display the loader loads images for. |
23 const gfx::Display& display() const { | 23 const gfx::Display& display() const { |
24 return display_; | 24 return display_; |
25 } | 25 } |
26 | 26 |
27 // Sets the display the loader loads images for. | 27 // Sets the display the loader loads images for. |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
69 | 69 |
70 // The current scale of the mouse cursor icon. | 70 // The current scale of the mouse cursor icon. |
71 float scale_; | 71 float scale_; |
72 | 72 |
73 DISALLOW_COPY_AND_ASSIGN(CursorLoader); | 73 DISALLOW_COPY_AND_ASSIGN(CursorLoader); |
74 }; | 74 }; |
75 | 75 |
76 } // namespace ui | 76 } // namespace ui |
77 | 77 |
78 #endif // UI_BASE_CURSOR_CURSOR_LOADER_H_ | 78 #endif // UI_BASE_CURSOR_CURSOR_LOADER_H_ |
OLD | NEW |