| OLD | NEW |
| 1 // Copyright (c) 2006-2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2009 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "views/focus/focus_manager.h" | 5 #include "views/focus/focus_manager.h" |
| 6 | 6 |
| 7 #include "views/view.h" | 7 #include "views/view.h" |
| 8 #include "views/widget/widget_win.h" | 8 #include "views/widget/widget_win.h" |
| 9 | 9 |
| 10 namespace views { | 10 namespace views { |
| (...skipping 13 matching lines...) Expand all Loading... |
| 24 FocusManager* FocusManager::GetFocusManagerForNativeView( | 24 FocusManager* FocusManager::GetFocusManagerForNativeView( |
| 25 gfx::NativeView native_view) { | 25 gfx::NativeView native_view) { |
| 26 HWND root = ::GetAncestor(native_view, GA_ROOT); | 26 HWND root = ::GetAncestor(native_view, GA_ROOT); |
| 27 if (!root) | 27 if (!root) |
| 28 return NULL; | 28 return NULL; |
| 29 WidgetWin* widget = WidgetWin::GetWidget(root); | 29 WidgetWin* widget = WidgetWin::GetWidget(root); |
| 30 return widget ? widget->GetFocusManager() : NULL; | 30 return widget ? widget->GetFocusManager() : NULL; |
| 31 } | 31 } |
| 32 | 32 |
| 33 } // namespace views | 33 } // namespace views |
| OLD | NEW |