• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // Copyright 2020 The Chromium Embedded Framework Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4 
5 #ifndef CEF_LIBCEF_BROWSER_NATIVE_CURSOR_UTIL_H_
6 #define CEF_LIBCEF_BROWSER_NATIVE_CURSOR_UTIL_H_
7 
8 #include "include/internal/cef_types.h"
9 
10 #include "ui/base/cursor/cursor.h"
11 #include "ui/base/cursor/mojom/cursor_type.mojom-forward.h"
12 
13 class CefBrowserHostBase;
14 
15 namespace cursor_util {
16 
17 #if defined(USE_AURA)
18 cef_cursor_handle_t GetPlatformCursor(ui::mojom::CursorType type);
19 cef_cursor_handle_t ToCursorHandle(ui::PlatformCursor cursor);
20 #endif  // defined(USE_AURA)
21 
22 // Returns true if the client handled the cursor change.
23 bool OnCursorChange(CefBrowserHostBase* browser, const ui::Cursor& ui_cursor);
24 
25 }  // namespace cursor_util
26 
27 #endif  // CEF_LIBCEF_BROWSER_NATIVE_CURSOR_UTIL_H_
28