Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2)

Side by Side Diff: views\focus\focus_manager_win.cc

Issue 141013: Relanding focus manager refactoring (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « views\focus\focus_manager_gtk.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « views\focus\focus_manager_gtk.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698