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

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

Issue 10514003: Config UI for Extension Commands (part 1). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 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
« no previous file with comments | « chrome/browser/ui/webui/extensions/command_handler.cc ('k') | ui/views/focus/focus_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/focus/focus_manager.h
===================================================================
--- ui/views/focus/focus_manager.h (revision 140271)
+++ ui/views/focus/focus_manager.h (working copy)
@@ -188,6 +188,13 @@
// Returns true if in the process of changing the focused view.
bool is_changing_focus() const { return is_changing_focus_; }
+ // Disable shortcut handling.
+ static void set_shortcut_handling_suspended(bool suspended) {
+ shortcut_handling_suspended_ = suspended;
+ }
+ // Returns whether shortcut handling is currently suspended.
+ bool shortcut_handling_suspended() { return shortcut_handling_suspended_; }
+
// Register a keyboard accelerator for the specified target. If multiple
// targets are registered for an accelerator, a target registered later has
// higher priority.
@@ -268,6 +275,9 @@
View* starting_view,
bool reverse);
+ // Keeps track of whether shortcut handling is currently suspended.
+ static bool shortcut_handling_suspended_;
+
// The top-level Widget this FocusManager is associated with.
Widget* widget_;
« no previous file with comments | « chrome/browser/ui/webui/extensions/command_handler.cc ('k') | ui/views/focus/focus_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698