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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
« 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 »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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 #ifndef UI_GFX_OZONE_SURFACE_LNUX_FACTORY_OZONE_H_ 5 #ifndef UI_GFX_OZONE_SURFACE_LNUX_FACTORY_OZONE_H_
6 #define UI_GFX_OZONE_SURFACE_LNUX_FACTORY_OZONE_H_ 6 #define UI_GFX_OZONE_SURFACE_LNUX_FACTORY_OZONE_H_
7 7
8 #include "base/callback.h" 8 #include "base/callback.h"
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "base/native_library.h" 10 #include "base/native_library.h"
11 #include "ui/gfx/geometry/point.h"
12 #include "ui/gfx/geometry/rect.h"
11 #include "ui/gfx/gfx_export.h" 13 #include "ui/gfx/gfx_export.h"
12 #include "ui/gfx/native_widget_types.h" 14 #include "ui/gfx/native_widget_types.h"
13 #include "ui/gfx/rect.h"
14 15
16 class SkBitmap;
15 class SkCanvas; 17 class SkCanvas;
16 18
17 namespace gfx { 19 namespace gfx {
18 class Screen; 20 class Screen;
19 class VSyncProvider; 21 class VSyncProvider;
20 22
21 // The Ozone interface allows external implementations to hook into Chromium to 23 // The Ozone interface allows external implementations to hook into Chromium to
22 // provide a system specific implementation. The Ozone interface supports two 24 // provide a system specific implementation. The Ozone interface supports two
23 // drawing modes: 1) accelerated drawing through EGL and 2) software drawing 25 // drawing modes: 1) accelerated drawing through EGL and 2) software drawing
24 // through Skia. 26 // through Skia.
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
130 virtual scoped_ptr<gfx::VSyncProvider> CreateVSyncProvider( 132 virtual scoped_ptr<gfx::VSyncProvider> CreateVSyncProvider(
131 gfx::AcceleratedWidget w) = 0; 133 gfx::AcceleratedWidget w) = 0;
132 134
133 // Returns an array of EGL properties, which can be used in any EGL function 135 // Returns an array of EGL properties, which can be used in any EGL function
134 // used to select a display configuration. Note that all properties should be 136 // used to select a display configuration. Note that all properties should be
135 // immediately followed by the corresponding desired value and array should be 137 // immediately followed by the corresponding desired value and array should be
136 // terminated with EGL_NONE. Ownership of the array is not transferred to 138 // terminated with EGL_NONE. Ownership of the array is not transferred to
137 // caller. desired_list contains list of desired EGL properties and values. 139 // caller. desired_list contains list of desired EGL properties and values.
138 virtual const int32* GetEGLSurfaceProperties(const int32* desired_list); 140 virtual const int32* GetEGLSurfaceProperties(const int32* desired_list);
139 141
142 // Sets the cursor image to |image|.
143 virtual void SetCursorImage(const SkBitmap& image);
144
145 // Sets the cursor position to |location|.
146 virtual void MoveCursorTo(const gfx::Point& location);
147
140 private: 148 private:
141 static SurfaceFactoryOzone* impl_; // not owned 149 static SurfaceFactoryOzone* impl_; // not owned
142 }; 150 };
143 151
144 } // namespace gfx 152 } // namespace gfx
145 153
146 #endif // UI_GFX_OZONE_SURFACE_LNUX_FACTORY_OZONE_H_ 154 #endif // UI_GFX_OZONE_SURFACE_LNUX_FACTORY_OZONE_H_
OLDNEW
« 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