refactor: chromium-style warnings in linux code (#12949)
This commit is contained in:
parent
2a161e1725
commit
da0fd10423
21 changed files with 41 additions and 36 deletions
|
@ -1592,12 +1592,12 @@ void WebContents::Focus() {
|
|||
|
||||
#if !defined(OS_MACOSX)
|
||||
bool WebContents::IsFocused() const {
|
||||
auto view = web_contents()->GetRenderWidgetHostView();
|
||||
auto* view = web_contents()->GetRenderWidgetHostView();
|
||||
if (!view)
|
||||
return false;
|
||||
|
||||
if (GetType() != BACKGROUND_PAGE) {
|
||||
auto window = web_contents()->GetNativeView()->GetToplevelWindow();
|
||||
auto* window = web_contents()->GetNativeView()->GetToplevelWindow();
|
||||
if (window && !window->IsVisible())
|
||||
return false;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue