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

Unified Diff: ui/views/focus/focus_manager.cc

Issue 2345183002: Views: Draw Textfield selected text in gray when top-level Widget loses focus.
Patch Set: Fix up colors for Linux. Created 4 years, 2 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
« ui/views/controls/textfield/textfield.cc ('K') | « ui/views/focus/focus_manager.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/focus/focus_manager.cc
diff --git a/ui/views/focus/focus_manager.cc b/ui/views/focus/focus_manager.cc
index 719510805ab2e8f5a8811d6ac764fe8ce2b770fa..4192567928537832d3f57f60e6aeae3fedeed5ab 100644
--- a/ui/views/focus/focus_manager.cc
+++ b/ui/views/focus/focus_manager.cc
@@ -43,6 +43,8 @@ FocusManager::FocusManager(Widget* widget, FocusManagerDelegate* delegate)
}
FocusManager::~FocusManager() {
+ for (FocusChangeListener& observer : focus_change_listeners_)
+ observer.OnFocusManagerDestroying();
}
bool FocusManager::OnKeyEvent(const ui::KeyEvent& event) {
« ui/views/controls/textfield/textfield.cc ('K') | « ui/views/focus/focus_manager.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698