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

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

Issue 8879045: Don't close ExtensionPopups on child window focus (Win, non-Aura). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix bad typo. Created 9 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
« no previous file with comments | « chrome/browser/ui/views/extensions/extension_popup.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/focus/widget_focus_manager.cc
diff --git a/ui/views/focus/widget_focus_manager.cc b/ui/views/focus/widget_focus_manager.cc
index d2b67d7aedbabdfa2edd0cd6c86a0c9649a780b7..d50d490d669d8651cc6c027831d14eb30a077f41 100644
--- a/ui/views/focus/widget_focus_manager.cc
+++ b/ui/views/focus/widget_focus_manager.cc
@@ -27,7 +27,7 @@ void WidgetFocusManager::RemoveFocusChangeListener(
void WidgetFocusManager::OnWidgetFocusEvent(gfx::NativeView focused_before,
gfx::NativeView focused_now) {
- if (enabled_) {
+ if (enabled_ && focused_before != focused_now) {
FOR_EACH_OBSERVER(WidgetFocusChangeListener, focus_change_listeners_,
OnNativeFocusChange(focused_before, focused_now));
}
« no previous file with comments | « chrome/browser/ui/views/extensions/extension_popup.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698