mirror of
				https://bitbucket.org/chromiumembedded/cef
				synced 2025-06-05 21:39:12 +02:00 
			
		
		
		
	Add "cef/" prefix for CEF #includes in libcef/ directory. Sort #includes by following https://google.github.io/styleguide/cppguide.html#Names_and_Order_of_Includes
		
			
				
	
	
		
			38 lines
		
	
	
		
			1.0 KiB
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			38 lines
		
	
	
		
			1.0 KiB
		
	
	
	
		
			C++
		
	
	
	
	
	
| // Copyright 2020 The Chromium Embedded Framework Authors. All rights reserved.
 | |
| // Use of this source code is governed by a BSD-style license that can be
 | |
| // found in the LICENSE file.
 | |
| 
 | |
| #ifndef CEF_LIBCEF_BROWSER_NATIVE_CURSOR_UTIL_H_
 | |
| #define CEF_LIBCEF_BROWSER_NATIVE_CURSOR_UTIL_H_
 | |
| 
 | |
| #include <memory>
 | |
| 
 | |
| #include "cef/include/cef_browser.h"
 | |
| #include "ui/base/cursor/cursor.h"
 | |
| #include "ui/base/cursor/mojom/cursor_type.mojom-forward.h"
 | |
| 
 | |
| #if defined(USE_AURA)
 | |
| #include "ui/base/cursor/platform_cursor.h"
 | |
| #endif
 | |
| 
 | |
| namespace cursor_util {
 | |
| 
 | |
| // Scoped ownership of a native cursor handle.
 | |
| class ScopedCursorHandle {
 | |
|  public:
 | |
|   virtual ~ScopedCursorHandle() = default;
 | |
| 
 | |
|   static std::unique_ptr<ScopedCursorHandle> Create(
 | |
|       CefRefPtr<CefBrowser> browser,
 | |
|       const ui::Cursor& ui_cursor);
 | |
| 
 | |
|   virtual cef_cursor_handle_t GetCursorHandle() = 0;
 | |
| };
 | |
| 
 | |
| // Returns true if the client handled the cursor change.
 | |
| bool OnCursorChange(CefRefPtr<CefBrowser> browser, const ui::Cursor& ui_cursor);
 | |
| 
 | |
| }  // namespace cursor_util
 | |
| 
 | |
| #endif  // CEF_LIBCEF_BROWSER_NATIVE_CURSOR_UTIL_H_
 |