mirror of
https://github.com/cefsharp/CefSharp.git
synced 2026-12-05 19:54:53 +00:00
Use the Set* method pattern (like we already have with SetAddress), so we can do proper thread marshalling as needed.
This commit is contained in:
@@ -76,7 +76,7 @@ namespace CefSharp
|
||||
|
||||
void ClientAdapter::OnTitleChange(CefRefPtr<CefBrowser> browser, const CefString& title)
|
||||
{
|
||||
_browserControl->Title = StringUtils::ToClr(title);
|
||||
_browserControl->SetTitle(StringUtils::ToClr(title));
|
||||
}
|
||||
|
||||
bool ClientAdapter::OnTooltip(CefRefPtr<CefBrowser> browser, CefString& text)
|
||||
|
||||
@@ -23,8 +23,6 @@ namespace CefSharp
|
||||
property bool IsBrowserInitialized { bool get(); }
|
||||
property bool IsLoading { bool get(); }
|
||||
|
||||
property String^ Address;
|
||||
property String^ Title;
|
||||
property String^ TooltipText;
|
||||
|
||||
property ILifeSpanHandler^ LifeSpanHandler;
|
||||
@@ -37,6 +35,7 @@ namespace CefSharp
|
||||
void OnInitialized();
|
||||
|
||||
void SetAddress(String^ address);
|
||||
void SetTitle(String^ title);
|
||||
void LoadHtml(String^ html);
|
||||
void Stop();
|
||||
void Reload();
|
||||
|
||||
Reference in New Issue
Block a user