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

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

Issue 226293005: Use platform's device scale factor for cursor (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: initialize rotation_ Created 6 years, 8 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: ui/base/cursor/cursor_loader.h
diff --git a/ui/base/cursor/cursor_loader.h b/ui/base/cursor/cursor_loader.h
index 8526e29d3e580491fcbf0eccd6cb67401e011715..d4a0c3d2da00a1a8c36b41a103983ac91b06b335 100644
--- a/ui/base/cursor/cursor_loader.h
+++ b/ui/base/cursor/cursor_loader.h
@@ -16,17 +16,15 @@ namespace ui {
class UI_BASE_EXPORT CursorLoader {
public:
- CursorLoader() : scale_(1.f) {}
+ CursorLoader() : scale_(1.f), rotation_(gfx::Display::ROTATE_0) {}
virtual ~CursorLoader() {}
- // Returns the display the loader loads images for.
- const gfx::Display& display() const {
- return display_;
+ gfx::Display::Rotation rotation() const {
+ return rotation_;
}
- // Sets the display the loader loads images for.
- void set_display(const gfx::Display& display) {
- display_ = display;
+ void set_rotation(gfx::Display::Rotation rotation) {
+ rotation_ = rotation;
}
// Returns the current scale of the mouse cursor icon.
@@ -64,12 +62,12 @@ class UI_BASE_EXPORT CursorLoader {
static CursorLoader* Create();
private:
- // The display the loader loads images for.
- gfx::Display display_;
-
// The current scale of the mouse cursor icon.
float scale_;
+ // The current rotation of the mouse cursor icon.
+ gfx::Display::Rotation rotation_;
+
DISALLOW_COPY_AND_ASSIGN(CursorLoader);
};
« no previous file with comments | « chrome/browser/ui/views/tabs/tab_drag_controller_interactive_uitest.cc ('k') | ui/base/cursor/cursor_loader_ozone.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698