From 3195ddb64c172fe0bf429f1b2ad14cccddffdf2b Mon Sep 17 00:00:00 2001 From: Per Lundberg Date: Wed, 31 Jul 2013 08:49:53 +0300 Subject: [PATCH] Use the Set* method pattern (like we already have with SetAddress), so we can do proper thread marshalling as needed. --- CefSharp/Internals/ClientAdapter.cpp | 2 +- CefSharp/Internals/IWebBrowserInternal.h | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/CefSharp/Internals/ClientAdapter.cpp b/CefSharp/Internals/ClientAdapter.cpp index 610a9cedb..dc535e4bb 100644 --- a/CefSharp/Internals/ClientAdapter.cpp +++ b/CefSharp/Internals/ClientAdapter.cpp @@ -76,7 +76,7 @@ namespace CefSharp void ClientAdapter::OnTitleChange(CefRefPtr browser, const CefString& title) { - _browserControl->Title = StringUtils::ToClr(title); + _browserControl->SetTitle(StringUtils::ToClr(title)); } bool ClientAdapter::OnTooltip(CefRefPtr browser, CefString& text) diff --git a/CefSharp/Internals/IWebBrowserInternal.h b/CefSharp/Internals/IWebBrowserInternal.h index ebfa84193..62b9b8b3d 100644 --- a/CefSharp/Internals/IWebBrowserInternal.h +++ b/CefSharp/Internals/IWebBrowserInternal.h @@ -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();