diff options
Diffstat (limited to 'ash/system/tray/system_tray_bubble.cc')
-rw-r--r-- | ash/system/tray/system_tray_bubble.cc | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/ash/system/tray/system_tray_bubble.cc b/ash/system/tray/system_tray_bubble.cc index 3477c3c..362e996 100644 --- a/ash/system/tray/system_tray_bubble.cc +++ b/ash/system/tray/system_tray_bubble.cc @@ -271,6 +271,16 @@ void SystemTrayBubble::InitView(views::View* anchor, } } +void SystemTrayBubble::FocusDefault() { + views::FocusManager* manager = bubble_view_->GetFocusManager(); + if (!manager) + return; + + views::View* view = manager->GetNextFocusableView(NULL, NULL, false, false); + if (view) + view->RequestFocus(); +} + void SystemTrayBubble::DestroyItemViews() { for (std::vector<ash::SystemTrayItem*>::iterator it = items_.begin(); it != items_.end(); |