| Index: ui/base/cursor/image_cursors.h
|
| diff --git a/ui/base/cursor/image_cursors.h b/ui/base/cursor/image_cursors.h
|
| index 43b40e01f4055e01c25263cf1662e61f254e9684..5831293fb46838683b046e22b2c1c6de4fe7ac6b 100644
|
| --- a/ui/base/cursor/image_cursors.h
|
| +++ b/ui/base/cursor/image_cursors.h
|
| @@ -8,6 +8,7 @@
|
| #include <memory>
|
|
|
| #include "base/macros.h"
|
| +#include "base/memory/weak_ptr.h"
|
| #include "base/strings/string16.h"
|
| #include "ui/base/cursor/cursor.h"
|
| #include "ui/base/ui_base_export.h"
|
| @@ -39,12 +40,15 @@ class UI_BASE_EXPORT ImageCursors {
|
| // Sets the platform cursor based on the native type of |cursor|.
|
| void SetPlatformCursor(gfx::NativeCursor* cursor);
|
|
|
| + base::WeakPtr<ImageCursors> GetWeakPtr();
|
| +
|
| private:
|
| // Reloads the all loaded cursors in the cursor loader.
|
| void ReloadCursors();
|
|
|
| std::unique_ptr<CursorLoader> cursor_loader_;
|
| CursorSize cursor_size_;
|
| + base::WeakPtrFactory<ImageCursors> weak_ptr_factory_;
|
|
|
| DISALLOW_COPY_AND_ASSIGN(ImageCursors);
|
| };
|
|
|