Rename wxWebView::EnableDevTools() to EnableAccessToDevTools()
This commit is contained in:
@@ -108,7 +108,7 @@ public:
|
|||||||
virtual void EnableContextMenu(bool enable = true) wxOVERRIDE;
|
virtual void EnableContextMenu(bool enable = true) wxOVERRIDE;
|
||||||
virtual bool IsContextMenuEnabled() const 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 IsAccessToDevToolsEnabled() const wxOVERRIDE;
|
||||||
|
|
||||||
virtual bool RunScript(const wxString& javascript, wxString* output = NULL) wxOVERRIDE;
|
virtual bool RunScript(const wxString& javascript, wxString* output = NULL) wxOVERRIDE;
|
||||||
|
@@ -159,7 +159,7 @@ public:
|
|||||||
{
|
{
|
||||||
m_showMenu = enable;
|
m_showMenu = enable;
|
||||||
}
|
}
|
||||||
virtual void EnableDevTools(bool WXUNUSED(enable) = true) { }
|
virtual void EnableAccessToDevTools(bool WXUNUSED(enable) = true) { }
|
||||||
virtual wxString GetCurrentTitle() const = 0;
|
virtual wxString GetCurrentTitle() const = 0;
|
||||||
virtual wxString GetCurrentURL() const = 0;
|
virtual wxString GetCurrentURL() const = 0;
|
||||||
// TODO: handle choosing a frame when calling GetPageSource()?
|
// TODO: handle choosing a frame when calling GetPageSource()?
|
||||||
|
@@ -712,7 +712,7 @@ public:
|
|||||||
|
|
||||||
@since 3.1.4
|
@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.
|
Returns @true if dev tools are available to the user.
|
||||||
|
@@ -716,7 +716,7 @@ void WebFrame::OnEnableContextMenu(wxCommandEvent& evt)
|
|||||||
|
|
||||||
void WebFrame::OnEnableDevTools(wxCommandEvent& evt)
|
void WebFrame::OnEnableDevTools(wxCommandEvent& evt)
|
||||||
{
|
{
|
||||||
m_browser->EnableDevTools(evt.IsChecked());
|
m_browser->EnableAccessToDevTools(evt.IsChecked());
|
||||||
}
|
}
|
||||||
|
|
||||||
void WebFrame::OnFind(wxCommandEvent& WXUNUSED(evt))
|
void WebFrame::OnFind(wxCommandEvent& WXUNUSED(evt))
|
||||||
|
@@ -671,7 +671,7 @@ bool wxWebViewEdge::IsContextMenuEnabled() const
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
void wxWebViewEdge::EnableDevTools(bool enable)
|
void wxWebViewEdge::EnableAccessToDevTools(bool enable)
|
||||||
{
|
{
|
||||||
wxCOMPtr<IWebView2Settings2> settings(m_impl->GetSettings());
|
wxCOMPtr<IWebView2Settings2> settings(m_impl->GetSettings());
|
||||||
if (settings)
|
if (settings)
|
||||||
|
Reference in New Issue
Block a user