Chromium Code Reviews

Side by Side Diff: ui/ozone/platform/drm/host/drm_cursor.cc

Issue 1285183008: Ozone integration. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: add missing license header Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff |
« no previous file with comments | « ui/ozone/platform/drm/host/drm_cursor.h ('k') | ui/ozone/platform/drm/host/drm_device_handle.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #include "ui/ozone/platform/drm/host/drm_cursor.h"
6
7 #include "base/thread_task_runner_handle.h"
8 #include "ui/gfx/geometry/point.h"
9 #include "ui/gfx/geometry/point_conversions.h"
10 #include "ui/gfx/geometry/point_f.h"
11 #include "ui/ozone/platform/drm/host/drm_window_host.h"
12 #include "ui/ozone/platform/drm/host/drm_window_host_manager.h"
13
14 #if defined(OS_CHROMEOS)
15 #include "ui/events/ozone/chromeos/cursor_controller.h"
16 #endif
17
18 namespace ui {
19
20 DrmCursor::DrmCursor(DrmWindowHostManager* window_manager) {
21 }
22
23 DrmCursor::~DrmCursor() {
24 }
25
26 void DrmCursor::SetCursor(gfx::AcceleratedWidget window,
27 PlatformCursor platform_cursor) {
28 //TODO
29 }
30
31 void DrmCursor::OnWindowAdded(gfx::AcceleratedWidget window,
32 const gfx::Rect& bounds_in_screen,
33 const gfx::Rect& cursor_confined_bounds) {
34 //TODO
35 }
36
37 void DrmCursor::OnWindowRemoved(gfx::AcceleratedWidget window) {
38 //TODO
39 }
40
41 void DrmCursor::CommitBoundsChange(
42 gfx::AcceleratedWidget window,
43 const gfx::Rect& new_display_bounds_in_screen,
44 const gfx::Rect& new_confined_bounds) {
45 //TODO
46 }
47
48 void DrmCursor::MoveCursorTo(gfx::AcceleratedWidget window,
49 const gfx::PointF& location) {
50 //TODO
51 }
52
53 void DrmCursor::MoveCursorTo(const gfx::PointF& screen_location) {
54 //TODO
55 }
56
57 void DrmCursor::MoveCursor(const gfx::Vector2dF& delta) {
58 //TODO
59 }
60
61 bool DrmCursor::IsCursorVisible() {
62 //TODO
63 return false;
64 }
65
66 gfx::PointF DrmCursor::GetLocation() {
67 //TODO
68 return gfx::PointF();
69 }
70
71 gfx::Rect DrmCursor::GetCursorConfinedBounds() {
72 //TODO
73 return gfx::Rect();
74 }
75
76 } // namespace ui
OLDNEW
« no previous file with comments | « ui/ozone/platform/drm/host/drm_cursor.h ('k') | ui/ozone/platform/drm/host/drm_device_handle.h » ('j') | no next file with comments »

Powered by Google App Engine