зеркало из https://github.com/electron/electron.git
win: Make web view focused initialy.
This commit is contained in:
Родитель
d86172cc87
Коммит
55a35d473d
|
@ -439,6 +439,10 @@ void NativeWindowWin::DeleteDelegate() {
|
|||
// Do nothing, window is managed by users.
|
||||
}
|
||||
|
||||
views::View* NativeWindowWin::GetInitiallyFocusedView() {
|
||||
return web_view_;
|
||||
}
|
||||
|
||||
bool NativeWindowWin::CanResize() const {
|
||||
return resizable_;
|
||||
}
|
||||
|
|
|
@ -92,6 +92,7 @@ class NativeWindowWin : public NativeWindow,
|
|||
|
||||
// Overridden from views::WidgetDelegate:
|
||||
virtual void DeleteDelegate() OVERRIDE;
|
||||
virtual views::View* GetInitiallyFocusedView() OVERRIDE;
|
||||
virtual bool CanResize() const OVERRIDE;
|
||||
virtual bool CanMaximize() const OVERRIDE;
|
||||
virtual string16 GetWindowTitle() const OVERRIDE;
|
||||
|
|
Загрузка…
Ссылка в новой задаче