Rename wxWebView::EnableDevTools() to EnableAccessToDevTools()

This commit is contained in:
Tobias Taschner 2020-01-16 09:38:35 +01:00
parent f48770ee5a
commit 9f11abd8fc
No known key found for this signature in database
GPG Key ID: AE6ECD71294F87FD
5 changed files with 5 additions and 5 deletions

View File

@ -108,7 +108,7 @@ public:
virtual void EnableContextMenu(bool enable = true) wxOVERRIDE;
virtual bool IsContextMenuEnabled() const wxOVERRIDE;
virtual void EnableDevTools(bool enable = true) wxOVERRIDE;
virtual void EnableAccessToDevTools(bool enable = true) wxOVERRIDE;
virtual bool IsAccessToDevToolsEnabled() const wxOVERRIDE;
virtual bool RunScript(const wxString& javascript, wxString* output = NULL) wxOVERRIDE;

View File

@ -159,7 +159,7 @@ public:
{
m_showMenu = enable;
}
virtual void EnableDevTools(bool WXUNUSED(enable) = true) { }
virtual void EnableAccessToDevTools(bool WXUNUSED(enable) = true) { }
virtual wxString GetCurrentTitle() const = 0;
virtual wxString GetCurrentURL() const = 0;
// TODO: handle choosing a frame when calling GetPageSource()?

View File

@ -712,7 +712,7 @@ public:
@since 3.1.4
*/
virtual void EnableDevTools(bool enable = true);
virtual void EnableAccessToDevTools(bool enable = true);
/**
Returns @true if dev tools are available to the user.

View File

@ -716,7 +716,7 @@ void WebFrame::OnEnableContextMenu(wxCommandEvent& evt)
void WebFrame::OnEnableDevTools(wxCommandEvent& evt)
{
m_browser->EnableDevTools(evt.IsChecked());
m_browser->EnableAccessToDevTools(evt.IsChecked());
}
void WebFrame::OnFind(wxCommandEvent& WXUNUSED(evt))

View File

@ -671,7 +671,7 @@ bool wxWebViewEdge::IsContextMenuEnabled() const
return true;
}
void wxWebViewEdge::EnableDevTools(bool enable)
void wxWebViewEdge::EnableAccessToDevTools(bool enable)
{
wxCOMPtr<IWebView2Settings2> settings(m_impl->GetSettings());
if (settings)