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

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 CycleFocus* tests in aura_shell_unittests 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 | « 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..81089a0e2968dfe8b7911a9eb05d3410febd9fa0 100644
--- a/ash/status_area/status_area_view.h
+++ b/ash/status_area/status_area_view.h
@@ -13,6 +13,8 @@
namespace ash {
namespace internal {
+class FocusCycler;
+
class StatusAreaView : public views::WidgetDelegate,
public views::AccessiblePaneView {
public:
@@ -24,10 +26,17 @@ class StatusAreaView : public views::WidgetDelegate,
virtual views::Widget* GetWidget() OVERRIDE;
virtual const views::Widget* GetWidget() const OVERRIDE;
+ // views::WidgetDelegate overrides:
+ virtual bool CanActivate() const OVERRIDE;
+
+ // Sets the focus cycler.
sky 2012/03/06 16:49:40 Move this above overriden methods.
Yusuke Sato 2012/03/07 01:28:46 Done.
+ void SetFocusCyclerForTesting(const FocusCycler* focus_cycler);
+
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