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

Unified Diff: ui/gfx/ozone/surface_factory_ozone.h

Issue 158023006: Adding Ozone CursorLoader and necessary API functions to allow setting the cursor in SoftwareFactor… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix style Created 6 years, 10 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/base/cursor/cursor_ozone.cc ('k') | ui/gfx/ozone/surface_factory_ozone.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gfx/ozone/surface_factory_ozone.h
diff --git a/ui/gfx/ozone/surface_factory_ozone.h b/ui/gfx/ozone/surface_factory_ozone.h
index fde29c27bb98e8f7d400ce33eb80a9cfb0c63a7f..c9da004801b2158c2c687d3b953e2fcb03138b90 100644
--- a/ui/gfx/ozone/surface_factory_ozone.h
+++ b/ui/gfx/ozone/surface_factory_ozone.h
@@ -8,10 +8,12 @@
#include "base/callback.h"
#include "base/memory/scoped_ptr.h"
#include "base/native_library.h"
+#include "ui/gfx/geometry/point.h"
+#include "ui/gfx/geometry/rect.h"
#include "ui/gfx/gfx_export.h"
#include "ui/gfx/native_widget_types.h"
-#include "ui/gfx/rect.h"
+class SkBitmap;
class SkCanvas;
namespace gfx {
@@ -137,6 +139,12 @@ class GFX_EXPORT SurfaceFactoryOzone {
// caller. desired_list contains list of desired EGL properties and values.
virtual const int32* GetEGLSurfaceProperties(const int32* desired_list);
+ // Sets the cursor image to |image|.
+ virtual void SetCursorImage(const SkBitmap& image);
+
+ // Sets the cursor position to |location|.
+ virtual void MoveCursorTo(const gfx::Point& location);
+
private:
static SurfaceFactoryOzone* impl_; // not owned
};
« no previous file with comments | « ui/base/cursor/cursor_ozone.cc ('k') | ui/gfx/ozone/surface_factory_ozone.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698