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); |
}; |