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

Side by Side Diff: ui/ozone/platform/dri/dri_cursor.cc

Issue 761843003: ozone: dri: Rename DriCursor::location() to GetLocation() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: test Created 6 years 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 unified diff | Download patch
« no previous file with comments | « ui/ozone/platform/dri/dri_cursor.h ('k') | ui/ozone/platform/dri/dri_surface_factory.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « ui/ozone/platform/dri/dri_cursor.h ('k') | ui/ozone/platform/dri/dri_surface_factory.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698