#include "stdafx.h" #include "IOffscreenWebBrowser.h" #include "OffscreenClientAdapter.h" namespace CefSharp { bool OffscreenClientAdapter::GetViewRect(CefRefPtr browser, CefRect& rect) { return false; } bool OffscreenClientAdapter::GetScreenRect(CefRefPtr browser, CefRect& rect) { return false; } bool OffscreenClientAdapter::GetScreenPoint(CefRefPtr browser, int viewX, int viewY, int& screenX, int& screenY) { return false; } void OffscreenClientAdapter::OnPaint(CefRefPtr browser, PaintElementType type, const RectList& dirtyRects, const void* buffer) { int width, height; browser->GetSize(type, width, height); _offscreenBrowserControl->SetBuffer(width, height, dirtyRects, buffer); } void OffscreenClientAdapter::OnCursorChange(CefRefPtr browser, CefCursorHandle cursor) { _offscreenBrowserControl->SetCursor(cursor); } }