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

Unified Diff: ash/system/tray/system_tray.h

Issue 10116018: Fix uber tray to accept focus via tab selection (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 8 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
Index: ash/system/tray/system_tray.h
diff --git a/ash/system/tray/system_tray.h b/ash/system/tray/system_tray.h
index 58049ec3f0150eac8ec62838ac629099a497b901..0c0158adb4042cf2d675b2125515167933928f41 100644
--- a/ash/system/tray/system_tray.h
+++ b/ash/system/tray/system_tray.h
@@ -79,8 +79,12 @@ class ASH_EXPORT SystemTray : NON_EXPORTED_BASE(
bool value,
internal::BackgroundAnimator::ChangeType change_type);
+ // Take focus and activate the system tray.
+ void TakeFocus(View* next_focusable_view);
+
// Returns true if the launcher should show.
bool should_show_launcher() const { return popup_ && should_show_launcher_; }
+ bool is_taking_focus() const { return taking_focus_; }
AccessibilityObserver* accessibility_observer() const {
return accessibility_observer_;
@@ -174,6 +178,9 @@ class ASH_EXPORT SystemTray : NON_EXPORTED_BASE(
// See description agove getter.
bool should_show_launcher_;
+ // Set when taking focus to indicate that the system area can be activated.
+ bool taking_focus_;
+
internal::BackgroundAnimator hide_background_animator_;
internal::BackgroundAnimator hover_background_animator_;

Powered by Google App Engine
This is Rietveld 408576698