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

Unified Diff: views/focus/focus_manager.h

Issue 7706003: Fixes regression (and crash) in instant. The crash would happen if (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Initial field Created 9 years, 4 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
« no previous file with comments | « chrome/browser/instant/instant_controller.cc ('k') | views/focus/focus_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: views/focus/focus_manager.h
diff --git a/views/focus/focus_manager.h b/views/focus/focus_manager.h
index f2bf0693855421785da0891cbe3761ed1c979efa..88f7a1c23209c6abf024b27e69e9083c36516527 100644
--- a/views/focus/focus_manager.h
+++ b/views/focus/focus_manager.h
@@ -225,6 +225,9 @@ class VIEWS_EXPORT FocusManager {
// Clears the stored focused view.
void ClearStoredFocusedView();
+ // Returns true if in the process of changing the focused view.
+ bool is_changing_focus() const { return is_changing_focus_; }
+
// Register a keyboard accelerator for the specified target. If multiple
// targets are registered for an accelerator, a target registered later has
// higher priority.
@@ -313,6 +316,9 @@ class VIEWS_EXPORT FocusManager {
// The list of registered FocusChange listeners.
ObserverList<FocusChangeListener, true> focus_change_listeners_;
+ // See description above getter.
+ bool is_changing_focus_;
+
DISALLOW_COPY_AND_ASSIGN(FocusManager);
};
« no previous file with comments | « chrome/browser/instant/instant_controller.cc ('k') | views/focus/focus_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698