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

Unified Diff: ash/status_area/status_area_view.h

Issue 9570013: Activate the status area only when it's focused using the keyboard (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix new FocusCycler tests Created 8 years, 9 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 | « ash/shell.h ('k') | ash/status_area/status_area_view.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/status_area/status_area_view.h
diff --git a/ash/status_area/status_area_view.h b/ash/status_area/status_area_view.h
index 32d9f373ffcd99d0fd434034251871e6586d997f..808508f5bd2bfefc80da29bb6f2e73b4a6bdf2c2 100644
--- a/ash/status_area/status_area_view.h
+++ b/ash/status_area/status_area_view.h
@@ -13,21 +13,30 @@
namespace ash {
namespace internal {
+class FocusCycler;
+
class StatusAreaView : public views::WidgetDelegate,
public views::AccessiblePaneView {
public:
StatusAreaView();
virtual ~StatusAreaView();
+ // Sets the focus cycler.
+ void SetFocusCyclerForTesting(const FocusCycler* focus_cycler);
+
// Overridden from views::View:
virtual gfx::Size GetPreferredSize() OVERRIDE;
virtual views::Widget* GetWidget() OVERRIDE;
virtual const views::Widget* GetWidget() const OVERRIDE;
+ // views::WidgetDelegate overrides:
+ virtual bool CanActivate() const OVERRIDE;
+
private:
virtual void OnPaint(gfx::Canvas* canvas) OVERRIDE;
SkBitmap status_mock_;
+ const FocusCycler* focus_cycler_for_testing_;
DISALLOW_COPY_AND_ASSIGN(StatusAreaView);
};
« no previous file with comments | « ash/shell.h ('k') | ash/status_area/status_area_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698