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:
Per Lundberg
2013-07-31 08:49:53 +03:00
parent 6c3a7d0304
commit 3195ddb64c
2 changed files with 2 additions and 3 deletions
+1 -1
View File
@@ -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)
+1 -2
View File
@@ -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();