OLD | NEW |
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 #ifndef UI_BASE_CURSOR_OZONE_CURSOR_FACTORY_OZONE_H_ | 5 #ifndef UI_BASE_CURSOR_OZONE_CURSOR_FACTORY_OZONE_H_ |
6 #define UI_BASE_CURSOR_OZONE_CURSOR_FACTORY_OZONE_H_ | 6 #define UI_BASE_CURSOR_OZONE_CURSOR_FACTORY_OZONE_H_ |
7 | 7 |
8 #include "ui/base/cursor/cursor.h" | 8 #include "ui/base/cursor/cursor.h" |
9 #include "ui/base/ui_base_export.h" | 9 #include "ui/base/ui_base_export.h" |
10 #include "ui/gfx/native_widget_types.h" | 10 #include "ui/gfx/native_widget_types.h" |
(...skipping 25 matching lines...) Expand all Loading... |
36 // Increment platform image cursor refcount. | 36 // Increment platform image cursor refcount. |
37 virtual void RefImageCursor(PlatformCursor cursor); | 37 virtual void RefImageCursor(PlatformCursor cursor); |
38 | 38 |
39 // Decrement platform image cursor refcount. | 39 // Decrement platform image cursor refcount. |
40 virtual void UnrefImageCursor(PlatformCursor cursor); | 40 virtual void UnrefImageCursor(PlatformCursor cursor); |
41 | 41 |
42 // Change the active cursor for an AcceleratedWidget. | 42 // Change the active cursor for an AcceleratedWidget. |
43 // TODO(spang): Move this. | 43 // TODO(spang): Move this. |
44 virtual void SetCursor(gfx::AcceleratedWidget widget, PlatformCursor cursor); | 44 virtual void SetCursor(gfx::AcceleratedWidget widget, PlatformCursor cursor); |
45 | 45 |
| 46 // Returns the window on which the cursor is active. |
| 47 // TODO(dnicoara) Move this once the WindowTreeHost refactoring finishes and |
| 48 // WindowTreeHost::CanDispatchEvent() is no longer present. |
| 49 virtual gfx::AcceleratedWidget GetCursorWindow(); |
| 50 |
46 private: | 51 private: |
47 static CursorFactoryOzone* impl_; // not owned | 52 static CursorFactoryOzone* impl_; // not owned |
48 }; | 53 }; |
49 | 54 |
50 } // namespace gfx | 55 } // namespace gfx |
51 | 56 |
52 #endif // UI_BASE_CURSOR_OZONE_CURSOR_FACTORY_OZONE_H_ | 57 #endif // UI_BASE_CURSOR_OZONE_CURSOR_FACTORY_OZONE_H_ |
OLD | NEW |