/// <summary>
 /// Invalidate the view. The browser will call CefRenderHandler::OnPaint asynchronously.
 /// </summary>
 /// <param name="type">indicates which surface to re-paint either View or Popup.</param>
 public void Invalidate(PaintElementType type)
 {
     managedCefBrowserAdapter.Invalidate(type);
 }