| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 #include "ui/ozone/platform/dri/dri_cursor.h" | 5 #include "ui/ozone/platform/dri/dri_cursor.h" |
| 6 | 6 |
| 7 #include "ui/base/cursor/ozone/bitmap_cursor_factory_ozone.h" | 7 #include "ui/base/cursor/ozone/bitmap_cursor_factory_ozone.h" |
| 8 #include "ui/gfx/geometry/point.h" | 8 #include "ui/gfx/geometry/point.h" |
| 9 #include "ui/gfx/geometry/point_conversions.h" | 9 #include "ui/gfx/geometry/point_conversions.h" |
| 10 #include "ui/gfx/geometry/point_f.h" | 10 #include "ui/gfx/geometry/point_f.h" |
| (...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 105 } | 105 } |
| 106 | 106 |
| 107 gfx::AcceleratedWidget DriCursor::GetCursorWindow() { | 107 gfx::AcceleratedWidget DriCursor::GetCursorWindow() { |
| 108 return cursor_window_; | 108 return cursor_window_; |
| 109 } | 109 } |
| 110 | 110 |
| 111 bool DriCursor::IsCursorVisible() { | 111 bool DriCursor::IsCursorVisible() { |
| 112 return cursor_.get(); | 112 return cursor_.get(); |
| 113 } | 113 } |
| 114 | 114 |
| 115 gfx::PointF DriCursor::location() { | 115 gfx::PointF DriCursor::GetLocation() { |
| 116 return cursor_location_; | 116 return cursor_location_; |
| 117 } | 117 } |
| 118 | 118 |
| 119 gfx::Point DriCursor::bitmap_location() { | 119 gfx::Point DriCursor::bitmap_location() { |
| 120 return gfx::ToFlooredPoint(cursor_location_) - | 120 return gfx::ToFlooredPoint(cursor_location_) - |
| 121 cursor_->hotspot().OffsetFromOrigin(); | 121 cursor_->hotspot().OffsetFromOrigin(); |
| 122 } | 122 } |
| 123 | 123 |
| 124 } // namespace ui | 124 } // namespace ui |
| OLD | NEW |