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

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

Issue 514943003: ozone: evdev: gestures: Disable click when the cursor is hidden (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 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 unified diff | Download patch
« no previous file with comments | « ui/ozone/platform/dri/cursor_factory_evdev_dri.h ('k') | no next file » | 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/cursor_factory_evdev_dri.h" 5 #include "ui/ozone/platform/dri/cursor_factory_evdev_dri.h"
6 6
7 #include "ui/gfx/geometry/point_conversions.h" 7 #include "ui/gfx/geometry/point_conversions.h"
8 #include "ui/ozone/platform/dri/dri_surface_factory.h" 8 #include "ui/ozone/platform/dri/dri_surface_factory.h"
9 #include "ui/ozone/platform/dri/hardware_cursor_delegate.h" 9 #include "ui/ozone/platform/dri/hardware_cursor_delegate.h"
10 10
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 } 51 }
52 52
53 void CursorFactoryEvdevDri::MoveCursor(const gfx::Vector2dF& delta) { 53 void CursorFactoryEvdevDri::MoveCursor(const gfx::Vector2dF& delta) {
54 MoveCursorTo(cursor_window_, cursor_location_ + delta); 54 MoveCursorTo(cursor_window_, cursor_location_ + delta);
55 } 55 }
56 56
57 gfx::AcceleratedWidget CursorFactoryEvdevDri::GetCursorWindow() { 57 gfx::AcceleratedWidget CursorFactoryEvdevDri::GetCursorWindow() {
58 return cursor_window_; 58 return cursor_window_;
59 } 59 }
60 60
61 bool CursorFactoryEvdevDri::IsCursorVisible() { return cursor_; }
62
61 gfx::PointF CursorFactoryEvdevDri::location() { return cursor_location_; } 63 gfx::PointF CursorFactoryEvdevDri::location() { return cursor_location_; }
62 64
63 gfx::Point CursorFactoryEvdevDri::bitmap_location() { 65 gfx::Point CursorFactoryEvdevDri::bitmap_location() {
64 return gfx::ToFlooredPoint(cursor_location_) - 66 return gfx::ToFlooredPoint(cursor_location_) -
65 cursor_->hotspot().OffsetFromOrigin(); 67 cursor_->hotspot().OffsetFromOrigin();
66 } 68 }
67 69
68 } // namespace ui 70 } // namespace ui
OLDNEW
« no previous file with comments | « ui/ozone/platform/dri/cursor_factory_evdev_dri.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698