2020-10-28 12:30:54 -04:00
|
|
|
// Copyright 2020 The Chromium Embedded Framework Authors. Portions copyright
|
|
|
|
// 2012 The Chromium Authors. All rights reserved. Use of this source code is
|
|
|
|
// governed by a BSD-style license that can be found in the LICENSE file.
|
2015-11-17 13:20:13 -05:00
|
|
|
|
2020-10-28 12:30:54 -04:00
|
|
|
#include "libcef/browser/native/cursor_util.h"
|
2015-11-17 13:20:13 -05:00
|
|
|
|
2021-12-16 17:35:54 -05:00
|
|
|
#include "ui/base/win/win_cursor.h"
|
2015-11-17 13:20:13 -05:00
|
|
|
|
2020-10-28 12:30:54 -04:00
|
|
|
namespace cursor_util {
|
2015-11-17 13:20:13 -05:00
|
|
|
|
2021-06-03 21:34:56 -04:00
|
|
|
cef_cursor_handle_t ToCursorHandle(scoped_refptr<ui::PlatformCursor> cursor) {
|
|
|
|
return ui::WinCursor::FromPlatformCursor(cursor)->hcursor();
|
2020-10-08 15:54:42 -04:00
|
|
|
}
|
2020-10-28 12:30:54 -04:00
|
|
|
|
|
|
|
} // namespace cursor_util
|