зеркало из https://github.com/electron/electron.git
refactor: remove unused InspectableWebContentsView::GetWebView() (#38799)
This commit is contained in:
Родитель
7219142a54
Коммит
41ab5f327f
|
@ -44,10 +44,6 @@ class InspectableWebContentsView {
|
||||||
#if defined(TOOLKIT_VIEWS) && !BUILDFLAG(IS_MAC)
|
#if defined(TOOLKIT_VIEWS) && !BUILDFLAG(IS_MAC)
|
||||||
// Returns the container control, which has devtools view attached.
|
// Returns the container control, which has devtools view attached.
|
||||||
virtual views::View* GetView() = 0;
|
virtual views::View* GetView() = 0;
|
||||||
|
|
||||||
// Returns the web view control, which can be used by the
|
|
||||||
// GetInitiallyFocusedView() to set initial focus to web view.
|
|
||||||
virtual views::View* GetWebView() = 0;
|
|
||||||
#else
|
#else
|
||||||
virtual gfx::NativeView GetNativeView() const = 0;
|
virtual gfx::NativeView GetNativeView() const = 0;
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -108,10 +108,6 @@ views::View* InspectableWebContentsViewViews::GetView() {
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
views::View* InspectableWebContentsViewViews::GetWebView() {
|
|
||||||
return contents_web_view_;
|
|
||||||
}
|
|
||||||
|
|
||||||
void InspectableWebContentsViewViews::ShowDevTools(bool activate) {
|
void InspectableWebContentsViewViews::ShowDevTools(bool activate) {
|
||||||
if (devtools_visible_)
|
if (devtools_visible_)
|
||||||
return;
|
return;
|
||||||
|
|
|
@ -31,7 +31,6 @@ class InspectableWebContentsViewViews : public InspectableWebContentsView,
|
||||||
|
|
||||||
// InspectableWebContentsView:
|
// InspectableWebContentsView:
|
||||||
views::View* GetView() override;
|
views::View* GetView() override;
|
||||||
views::View* GetWebView() override;
|
|
||||||
void ShowDevTools(bool activate) override;
|
void ShowDevTools(bool activate) override;
|
||||||
void CloseDevTools() override;
|
void CloseDevTools() override;
|
||||||
bool IsDevToolsViewShowing() override;
|
bool IsDevToolsViewShowing() override;
|
||||||
|
|
Загрузка…
Ссылка в новой задаче