Skip to content

Commit 7585bf4

Browse files
committed
[linux] fix nwjs#2493: urlbar focus issue
based on d699ce8
1 parent e3767a2 commit 7585bf4

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

src/nw_shell.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@
7070
#include "components/web_modal/web_contents_modal_dialog_manager.h"
7171

7272

73-
#if defined(OS_WIN)
73+
#if defined(OS_WIN) || defined(OS_LINUX)
7474
#include "content/nw/src/browser/native_window_aura.h"
7575
#include "ui/views/controls/webview/webview.h"
7676
using nw::NativeWindowAura;
@@ -614,7 +614,7 @@ void Shell::WebContentsCreated(WebContents* source_contents,
614614
#endif
615615
}
616616

617-
#if defined(OS_WIN)
617+
#if defined(OS_WIN) || defined(OS_LINUX)
618618
void Shell::WebContentsFocused(content::WebContents* web_contents) {
619619
NativeWindowAura* win = static_cast<NativeWindowAura*>(window_.get());
620620
if (win) // on aura this function is called in the middle of window creation

src/nw_shell.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ class Shell : public WebContentsDelegate,
169169
bool enter_fullscreen) OVERRIDE;
170170
virtual bool IsFullscreenForTabOrPending(
171171
const WebContents* web_contents) const OVERRIDE;
172-
#if defined(OS_WIN)
172+
#if defined(OS_WIN) || defined(OS_LINUX)
173173
virtual void WebContentsFocused(WebContents* contents) OVERRIDE;
174174
#endif
175175
virtual content::ColorChooser* OpenColorChooser(

0 commit comments

Comments
 (0)