diff options
Diffstat (limited to 'chrome/views/tree_view.cc')
-rw-r--r-- | chrome/views/tree_view.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/chrome/views/tree_view.cc b/chrome/views/tree_view.cc index 0410ecc..ffb3e4c 100644 --- a/chrome/views/tree_view.cc +++ b/chrome/views/tree_view.cc @@ -13,8 +13,8 @@ #include "chrome/common/l10n_util.h" #include "chrome/common/resource_bundle.h" #include "chrome/common/stl_util-inl.h" -#include "chrome/views/container.h" #include "chrome/views/focus_manager.h" +#include "chrome/views/widget.h" namespace views { @@ -436,9 +436,9 @@ bool TreeView::OnKeyDown(int virtual_key_code) { } return true; } else if (virtual_key_code == VK_RETURN && !process_enter_) { - Container* vc = GetContainer(); - DCHECK(vc); - FocusManager* fm = FocusManager::GetFocusManager(vc->GetHWND()); + Widget* widget = GetWidget(); + DCHECK(widget); + FocusManager* fm = FocusManager::GetFocusManager(widget->GetHWND()); DCHECK(fm); Accelerator accelerator(Accelerator(static_cast<int>(virtual_key_code), win_util::IsShiftPressed(), |