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

Unified Diff: views/view.cc

Issue 146093: 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 side-by-side diff with in-line comments
Download patch
Index: views/view.cc
===================================================================
--- views/view.cc (revision 19153)
+++ views/view.cc (working copy)
@@ -264,6 +264,11 @@
focusable_ = focusable;
}
+FocusManager* View::GetFocusManager() {
+ Widget* widget = GetWidget();
+ return widget ? widget->GetFocusManager() : NULL;
+}
+
bool View::HasFocus() {
FocusManager* focus_manager = GetFocusManager();
if (focus_manager)

Powered by Google App Engine
This is Rietveld 408576698