summaryrefslogtreecommitdiffstats
path: root/ui/views/accessible_pane_view.h
diff options
context:
space:
mode:
authorskuhne@chromium.org <skuhne@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-02-22 06:12:52 +0000
committerskuhne@chromium.org <skuhne@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-02-22 06:12:52 +0000
commite846c006edf7e38ee103b4962346b31bd4a6d4e9 (patch)
treeca20dfc302e1782033371ecd747b48e57c4c73fb /ui/views/accessible_pane_view.h
parentbd8f606940b8e709388c5470ad8c1806033659d6 (diff)
downloadchromium_src-e846c006edf7e38ee103b4962346b31bd4a6d4e9.zip
chromium_src-e846c006edf7e38ee103b4962346b31bd4a6d4e9.tar.gz
chromium_src-e846c006edf7e38ee103b4962346b31bd4a6d4e9.tar.bz2
Fixing activation state problem with the launcher acessiblity pane
BUG=165089 TEST=unittest Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=183728 Review URL: https://chromiumcodereview.appspot.com/12315021 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@184045 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ui/views/accessible_pane_view.h')
-rw-r--r--ui/views/accessible_pane_view.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/ui/views/accessible_pane_view.h b/ui/views/accessible_pane_view.h
index f15bbed..982cb04 100644
--- a/ui/views/accessible_pane_view.h
+++ b/ui/views/accessible_pane_view.h
@@ -88,9 +88,20 @@ class VIEWS_EXPORT AccessiblePaneView : public View,
FocusManager* focus_manager() const { return focus_manager_; }
+ // When finishing navigation by pressing ESC, it is allowed to surrender the
+ // focus to another window if if |allow| is set and no previous view can be
+ // found.
+ void set_allow_deactivate_on_esc(bool allow) {
+ allow_deactivate_on_esc_ = allow;
+ }
+
private:
bool pane_has_focus_;
+ // If true, the panel should be de-activated upon escape when no active view
+ // is known where to return to.
+ bool allow_deactivate_on_esc_;
+
base::WeakPtrFactory<AccessiblePaneView> method_factory_;
// Save the focus manager rather than calling GetFocusManager(),