win: Make web view focused initialy.

This commit is contained in:
Cheng Zhao 2013-10-04 23:38:37 +08:00
parent d86172cc87
commit 55a35d473d
2 changed files with 5 additions and 0 deletions

View file

@ -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_;
}

View file

@ -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;