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

Side by Side Diff: ui/ozone/platform/dri/hardware_cursor_delegate.h

Issue 851853002: It is time. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Trying to reup because the last upload failed. Created 5 years, 11 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
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 #ifndef UI_OZONE_PLATFORM_DRI_HARDWARE_CURSOR_DELEGATE_H_
6 #define UI_OZONE_PLATFORM_DRI_HARDWARE_CURSOR_DELEGATE_H_
7
8 #include <vector>
9
10 #include "ui/gfx/native_widget_types.h"
11
12 class SkBitmap;
13
14 namespace gfx {
15 class Point;
16 }
17
18 namespace ui {
19
20 class HardwareCursorDelegate {
21 public:
22 // Update the HW cursor bitmap & move to specified location. If
23 // the bitmap is empty, the cursor is hidden.
24 virtual void SetHardwareCursor(gfx::AcceleratedWidget widget,
25 const std::vector<SkBitmap>& bitmaps,
26 const gfx::Point& location,
27 int frame_delay_ms) = 0;
28
29 // Move the HW cursor to the specified location.
30 virtual void MoveHardwareCursor(gfx::AcceleratedWidget widget,
31 const gfx::Point& location) = 0;
32
33 protected:
34 virtual ~HardwareCursorDelegate() {}
35 };
36
37 } // namespace ui
38
39 #endif // UI_OZONE_PLATFORM_DRI_HARDWARE_CURSOR_DELEGATE_H_
OLDNEW
« no previous file with comments | « ui/ozone/platform/dri/gbm_surfaceless.cc ('k') | ui/ozone/platform/dri/hardware_display_controller.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698