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

Unified Diff: views/focus/focus_manager.cc

Issue 5581008: Add a new GetInstance() method for singleton classes, take 2. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 10 years 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/focus/focus_manager.cc
diff --git a/views/focus/focus_manager.cc b/views/focus/focus_manager.cc
index 2007ff1d05fc2c141694c93aa87840769d19b111..4848e4bda075601adc7f3b11cdeddd204d62bd4a 100644
--- a/views/focus/focus_manager.cc
+++ b/views/focus/focus_manager.cc
@@ -80,6 +80,11 @@ FocusManager::~FocusManager() {
DCHECK(focus_change_listeners_.empty());
}
+// static
+FocusManager::WidgetFocusManager* FocusManager::GetWidgetFocusManager() {
+ return Singleton<WidgetFocusManager>::get();
+}
+
bool FocusManager::OnKeyEvent(const KeyEvent& event) {
#if defined(OS_WIN)
// If the focused view wants to process the key event as is, let it be.

Powered by Google App Engine
This is Rietveld 408576698