diff --git a/topics/reference_guide/jcef.md b/topics/reference_guide/jcef.md index 581ded3ea..1844bcbb2 100644 --- a/topics/reference_guide/jcef.md +++ b/topics/reference_guide/jcef.md @@ -55,7 +55,9 @@ Or in order to just open it in a separate window: ## API -### [`JBCefApp`](upsource:///platform/platform-api/src/com/intellij/ui/jcef/JBCefApp.java) +### JBCefApp +[`JBCefApp`](upsource:///platform/platform-api/src/com/intellij/ui/jcef/JBCefApp.java) + Performs JCEF auto-initialization, manages its lifecycle, and provides `JBCefClient` instances. Before using JCEF, `JBCefApp.isSupported()` check must be called: @@ -75,14 +77,18 @@ JCEF can be unsupported when: To avoid the above problems, the IDE should be run with the bundled JBR. -### [`JBCefClient`](upsource:///platform/platform-api/src/com/intellij/ui/jcef/JBCefClient.java) +### JBCefClient +[`JBCefClient`](upsource:///platform/platform-api/src/com/intellij/ui/jcef/JBCefClient.java) + Is tied to every browser component explicitly or implicitly. Used for adding handlers to the associated browser. The same instance can be shared among multiple browsers. It is up to the developer to use a shared or per-browser instance, depending on the handlers' logic. If a client was created explicitly, it should be [disposed](disposers.md) by the developer; otherwise, it is disposed automatically following the associated browser instance disposal. -### [`JBCefBrowser`](upsource:///platform/platform-api/src/com/intellij/ui/jcef/JBCefBrowser.java) +### JBCefBrowser +[`JBCefBrowser`](upsource:///platform/platform-api/src/com/intellij/ui/jcef/JBCefBrowser.java) + Provides the browser UI component: ```java @@ -118,7 +124,8 @@ The simplest way to add a browser component to your UI: myPanel.add(new JBCefBrowser("https://www.jetbrains.com").getComponent()); ``` -### [`JBCefJSQuery`](upsource:///platform/platform-api/src/com/intellij/ui/jcef/JBCefJSQuery.java) +### JBCefJSQuery +[`JBCefJSQuery`](upsource:///platform/platform-api/src/com/intellij/ui/jcef/JBCefJSQuery.java) Provides JS query callback mechanism.