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

Unified Diff: ash/focus_cycler.h

Issue 9406031: Makes it so the launcher only gets focus when using the keyboard. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 10 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 | « no previous file | ash/focus_cycler.cc » ('j') | ui/views/widget/native_widget_aura.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/focus_cycler.h
diff --git a/ash/focus_cycler.h b/ash/focus_cycler.h
index dfdf7e5c4a268921ce2ed10392dd6658d0da8d1a..c084a988209a464fca7c7780d638062918fbd08a 100644
--- a/ash/focus_cycler.h
+++ b/ash/focus_cycler.h
@@ -31,6 +31,10 @@ class FocusCycler : public ui::AcceleratorTarget {
FocusCycler();
virtual ~FocusCycler();
+ // Returns the widget the FocusCycler is attempting to activate or NULL if
+ // FocusCycler is not activating any widgets.
+ const views::Widget* widget_activating() const { return widget_activating_; }
+
// Add a widget to the focus cycle and set up accelerators. The widget needs
// to have an AccessiblePaneView as the content view.
void AddWidget(views::Widget* widget);
@@ -45,6 +49,9 @@ class FocusCycler : public ui::AcceleratorTarget {
private:
std::vector<views::Widget*> widgets_;
+ // See description above getter.
+ views::Widget* widget_activating_;
+
DISALLOW_COPY_AND_ASSIGN(FocusCycler);
};
« no previous file with comments | « no previous file | ash/focus_cycler.cc » ('j') | ui/views/widget/native_widget_aura.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698