mirror of
https://github.com/cefsharp/CefSharp.git
synced 2026-12-04 10:22:55 +00:00
32 lines
916 B
C++
32 lines
916 B
C++
#include "stdafx.h"
|
|
|
|
#include "IRenderWebBrowser.h"
|
|
#include "RenderClientAdapter.h"
|
|
|
|
namespace CefSharp
|
|
{
|
|
void RenderClientAdapter::OnPopupShow(CefRefPtr<CefBrowser> browser, bool show)
|
|
{
|
|
Console::WriteLine("OnPopupShow: {0}", show);
|
|
}
|
|
|
|
void RenderClientAdapter::OnPopupSize(CefRefPtr<CefBrowser> browser, const CefRect& rect)
|
|
{
|
|
Console::WriteLine("OnPopupSize");
|
|
}
|
|
|
|
void RenderClientAdapter::OnPaint(CefRefPtr<CefBrowser> browser, PaintElementType type, const RectList& dirtyRects, const void* buffer)
|
|
{
|
|
Console::WriteLine("PET: {0}", (int)type);
|
|
|
|
int width, height;
|
|
browser->GetSize(type, width, height);
|
|
|
|
_renderBrowserControl->SetBuffer(width, height, buffer);
|
|
}
|
|
|
|
void RenderClientAdapter::OnCursorChange(CefRefPtr<CefBrowser> browser, CefCursorHandle cursor)
|
|
{
|
|
_renderBrowserControl->SetCursor(cursor);
|
|
}
|
|
} |