2020-10-28 17:30:54 +01: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 19:20:13 +01:00
|
|
|
|
2020-10-28 17:30:54 +01:00
|
|
|
#include "libcef/browser/native/cursor_util.h"
|
2015-11-17 19:20:13 +01:00
|
|
|
|
2021-12-16 23:35:54 +01:00
|
|
|
#include "ui/base/win/win_cursor.h"
|
2015-11-17 19:20:13 +01:00
|
|
|
|
2020-10-28 17:30:54 +01:00
|
|
|
namespace cursor_util {
|
2015-11-17 19:20:13 +01:00
|
|
|
|
2021-06-04 03:34:56 +02:00
|
|
|
cef_cursor_handle_t ToCursorHandle(scoped_refptr<ui::PlatformCursor> cursor) {
|
|
|
|
return ui::WinCursor::FromPlatformCursor(cursor)->hcursor();
|
2020-10-08 21:54:42 +02:00
|
|
|
}
|
2020-10-28 17:30:54 +01:00
|
|
|
|
|
|
|
} // namespace cursor_util
|