| Index: chrome/browser/ui/views/tab_contents/native_tab_contents_container_win.cc
|
| diff --git a/chrome/browser/ui/views/tab_contents/native_tab_contents_container_win.cc b/chrome/browser/ui/views/tab_contents/native_tab_contents_container_win.cc
|
| index eb4e19115a48b0e8eff025950c2440d259ba8c5c..30577debe8226c18a987f9464bc24e57ad47f1cc 100644
|
| --- a/chrome/browser/ui/views/tab_contents/native_tab_contents_container_win.cc
|
| +++ b/chrome/browser/ui/views/tab_contents/native_tab_contents_container_win.cc
|
| @@ -21,6 +21,9 @@ NativeTabContentsContainerWin::NativeTabContentsContainerWin(
|
| TabContentsContainer* container)
|
| : container_(container) {
|
| set_id(VIEW_ID_TAB_CONTAINER_FOCUS_VIEW);
|
| + // We need to be focusable when our contents is not a view hierarchy, as
|
| + // clicking on the contents needs to focus us.
|
| + set_focusable(container_->tab_contents() != NULL);
|
| }
|
|
|
| NativeTabContentsContainerWin::~NativeTabContentsContainerWin() {
|
| @@ -105,12 +108,6 @@ bool NativeTabContentsContainerWin::SkipDefaultKeyEventProcessing(
|
| !container_->tab_contents()->is_crashed();
|
| }
|
|
|
| -bool NativeTabContentsContainerWin::IsFocusable() const {
|
| - // We need to be focusable when our contents is not a view hierarchy, as
|
| - // clicking on the contents needs to focus us.
|
| - return container_->tab_contents() != NULL;
|
| -}
|
| -
|
| void NativeTabContentsContainerWin::OnFocus() {
|
| if (container_->tab_contents())
|
| container_->tab_contents()->Focus();
|
|
|