mirror of
				https://bitbucket.org/chromiumembedded/cef
				synced 2025-06-05 21:39:12 +02:00 
			
		
		
		
	Frame identifiers have changed from int64_t to string type. This is due to https://crbug.com/1502660 which removes access to frame routing IDs in the renderer process. New cross-process frame identifiers are 160-bit values (32-bit child process ID + 128-bit local frame token) and most easily represented as strings. All other frame-related expectations and behaviors remain the same.
		
			
				
	
	
		
			53 lines
		
	
	
		
			1.9 KiB
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			53 lines
		
	
	
		
			1.9 KiB
		
	
	
	
		
			C++
		
	
	
	
	
	
| // Copyright 2015 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_BROWSER_PLATFORM_DELEGATE_NATIVE_LINUX_H_
 | |
| #define CEF_LIBCEF_BROWSER_NATIVE_BROWSER_PLATFORM_DELEGATE_NATIVE_LINUX_H_
 | |
| 
 | |
| #include "libcef/browser/native/browser_platform_delegate_native_aura.h"
 | |
| 
 | |
| #include "ui/base/ozone_buildflags.h"
 | |
| 
 | |
| #if BUILDFLAG(IS_OZONE_X11)
 | |
| class CefWindowX11;
 | |
| #endif
 | |
| 
 | |
| // Windowed browser implementation for Linux.
 | |
| class CefBrowserPlatformDelegateNativeLinux
 | |
|     : public CefBrowserPlatformDelegateNativeAura {
 | |
|  public:
 | |
|   CefBrowserPlatformDelegateNativeLinux(const CefWindowInfo& window_info,
 | |
|                                         SkColor background_color);
 | |
| 
 | |
|   // CefBrowserPlatformDelegate methods:
 | |
|   void BrowserDestroyed(CefBrowserHostBase* browser) override;
 | |
|   bool CreateHostWindow() override;
 | |
|   void CloseHostWindow() override;
 | |
|   CefWindowHandle GetHostWindowHandle() const override;
 | |
|   views::Widget* GetWindowWidget() const override;
 | |
|   void SetFocus(bool setFocus) override;
 | |
|   void NotifyMoveOrResizeStarted() override;
 | |
|   void SizeTo(int width, int height) override;
 | |
|   void ViewText(const std::string& text) override;
 | |
|   bool HandleKeyboardEvent(
 | |
|       const content::NativeWebKeyboardEvent& event) override;
 | |
|   CefEventHandle GetEventHandle(
 | |
|       const content::NativeWebKeyboardEvent& event) const override;
 | |
| 
 | |
|   // CefBrowserPlatformDelegateNativeAura methods:
 | |
|   ui::KeyEvent TranslateUiKeyEvent(const CefKeyEvent& key_event) const override;
 | |
|   content::NativeWebKeyboardEvent TranslateWebKeyEvent(
 | |
|       const CefKeyEvent& key_event) const override;
 | |
| 
 | |
|  private:
 | |
|   // True if the host window has been created.
 | |
|   bool host_window_created_ = false;
 | |
| 
 | |
| #if BUILDFLAG(IS_OZONE_X11)
 | |
|   CefWindowX11* window_x11_ = nullptr;
 | |
| #endif
 | |
| };
 | |
| 
 | |
| #endif  // CEF_LIBCEF_BROWSER_NATIVE_BROWSER_PLATFORM_DELEGATE_NATIVE_LINUX_H_
 |