/// <summary> /// Add the specified <paramref name="word"/> to the spelling dictionary. /// </summary> /// <param name="word">The word to be added to the spelling dictionary.</param> public void AddWordToDictionary(string word) { if (word == null) { throw new ArgumentNullException(nameof(word)); } AliveBrowserHost.AddWordToDictionary(word); }
public virtual void ShowDevTools(CefPoint inspectElementAt) { var windowInfo = new CefWindowInfo(); windowInfo.SetAsPopup(IntPtr.Zero, "DevTools"); AliveBrowserHost.ShowDevTools(windowInfo, null, BrowserSettings, inspectElementAt); windowInfo.Dispose(); }
/// <summary> /// If a misspelled word is currently selected in an editable node calling this /// function will replace it with the specified <paramref name="word"/>. /// </summary> /// <param name="word">The word to replace.</param> public void ReplaceMisspelling(string word) { if (word == null) { throw new ArgumentNullException(nameof(word)); } AliveBrowserHost.ReplaceMisspelling(word); }
/// <summary> /// Download |image_url| and execute |callback| on completion with the images received from /// the renderer. /// </summary> /// <param name="imageUrl"> /// </param> /// <param name="isFavicon"> /// If |is_favicon| is True then cookies are not sent and not accepted during download. /// </param> /// <param name="maxImageSize"> /// Images with density independent pixel (DIP) sizes larger than |max_image_size| are filtered /// out from the image results. Versions of the image at different scale factors may be downloaded /// up to the maximum scale factor supported by the system. If there are no image results /// < = |max_image_size| then the smallest image is resized to |max_image_size| and is the only /// result. A |max_image_size| of 0 means unlimited. /// </param> /// <param name="bypassCache"> /// If |bypass_cache| is True then |image_url| is requested from the server even if it is present /// in the browser cache. /// </param> public void DownloadImage(string imageUrl, bool isFavicon, int maxImageSize, bool bypassCache, CefDownloadImageCallback callback) { if (imageUrl == null) { throw new ArgumentNullException(nameof(imageUrl)); } AliveBrowserHost.DownloadImage(imageUrl, isFavicon, (uint)maxImageSize, bypassCache, callback); }
/// <summary> /// Download the file at |url|. /// </summary> /// <param name="url"> /// The URL of the file to load. /// </param> public void DownloadFile(string url) { if (url == null) { throw new ArgumentNullException(nameof(url)); } AliveBrowserHost.StartDownload(url); }
public void Find(int identifier, string searchText, bool forward, bool matchCase, bool findNext) { if (searchText == null) { throw new ArgumentNullException(nameof(searchText)); } if (searchText.Length == 0) { throw new ArgumentOutOfRangeException(nameof(searchText)); } AliveBrowserHost.Find(identifier, searchText, forward, matchCase, findNext); }
/// <summary> /// Invalidate the view. The browser will call cef_render_handler_t::OnPaint /// asynchronously. This function is only used when window rendering is /// disabled. /// </summary> public void Invalidate(CefPaintElementType type) { AliveBrowserHost.Invalidate(type); }
public void CloseDevTools() { AliveBrowserHost.CloseDevTools(); }
public void StopFinding(bool clearSelection) { AliveBrowserHost.StopFinding(clearSelection); }
/// <summary> /// Print the current browser contents to the PDF file and execute |callback| on completion. /// </summary> /// <param name="path">The PDF file path.</param> /// <param name="settings">A PDF print settings.</param> public void PrintToPdf(string path, CefPdfPrintSettings settings) { AliveBrowserHost.PrintToPdf(path, settings, new CefPdfPrintCallbackGlue(ViewGlue)); }
/// <summary> /// Print the current browser contents. /// </summary> public void Print() { AliveBrowserHost.Print(); }