RenderClientAdapter: s/_offscreenBrowserControl/_renderBrowserControl/

This commit is contained in:
anthony taranto
2012-03-02 15:54:07 -08:00
parent 7b4516d83c
commit 16168d4bf3
2 changed files with 5 additions and 5 deletions
+2 -2
View File
@@ -10,11 +10,11 @@ namespace CefSharp
int width, height;
browser->GetSize(type, width, height);
_offscreenBrowserControl->SetBuffer(width, height, buffer);
_renderBrowserControl->SetBuffer(width, height, buffer);
}
void RenderClientAdapter::OnCursorChange(CefRefPtr<CefBrowser> browser, CefCursorHandle cursor)
{
_offscreenBrowserControl->SetCursor(cursor);
_renderBrowserControl->SetCursor(cursor);
}
}
+3 -3
View File
@@ -13,13 +13,13 @@ namespace CefSharp
public CefRenderHandler
{
private:
gcroot<IRenderWebBrowser^> _offscreenBrowserControl;
gcroot<IRenderWebBrowser^> _renderBrowserControl;
public:
~RenderClientAdapter() { _offscreenBrowserControl = nullptr; }
~RenderClientAdapter() { _renderBrowserControl = nullptr; }
RenderClientAdapter(IRenderWebBrowser^ offscreenBrowserControl) : ClientAdapter((IWebBrowser^)offscreenBrowserControl)
{
_offscreenBrowserControl = offscreenBrowserControl;
_renderBrowserControl = offscreenBrowserControl;
}
// CefClient