OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "ash/common/system/tray/system_tray_bubble.h" | 5 #include "ash/common/system/tray/system_tray_bubble.h" |
6 | 6 |
| 7 #include "ash/common/system/tray/system_tray.h" |
7 #include "ash/common/system/tray/system_tray_delegate.h" | 8 #include "ash/common/system/tray/system_tray_delegate.h" |
8 #include "ash/common/system/tray/system_tray_item.h" | 9 #include "ash/common/system/tray/system_tray_item.h" |
9 #include "ash/common/system/tray/tray_bubble_wrapper.h" | 10 #include "ash/common/system/tray/tray_bubble_wrapper.h" |
10 #include "ash/common/system/tray/tray_constants.h" | 11 #include "ash/common/system/tray/tray_constants.h" |
11 #include "ash/common/system/tray/tray_popup_item_container.h" | 12 #include "ash/common/system/tray/tray_popup_item_container.h" |
12 #include "ash/common/wm_shell.h" | 13 #include "ash/common/wm_shell.h" |
13 #include "ash/system/tray/system_tray.h" | |
14 #include "base/threading/thread_task_runner_handle.h" | 14 #include "base/threading/thread_task_runner_handle.h" |
15 #include "ui/compositor/layer.h" | 15 #include "ui/compositor/layer.h" |
16 #include "ui/compositor/layer_animation_observer.h" | 16 #include "ui/compositor/layer_animation_observer.h" |
17 #include "ui/compositor/scoped_layer_animation_settings.h" | 17 #include "ui/compositor/scoped_layer_animation_settings.h" |
18 #include "ui/gfx/canvas.h" | 18 #include "ui/gfx/canvas.h" |
19 #include "ui/views/layout/box_layout.h" | 19 #include "ui/views/layout/box_layout.h" |
20 #include "ui/views/view.h" | 20 #include "ui/views/view.h" |
21 #include "ui/views/widget/widget.h" | 21 #include "ui/views/widget/widget.h" |
22 | 22 |
23 using views::TrayBubbleView; | 23 using views::TrayBubbleView; |
(...skipping 285 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
309 // 2 items, which are the bottom header row and the one just above it. | 309 // 2 items, which are the bottom header row and the one just above it. |
310 bubble_view_->AddChildView(new TrayPopupItemContainer( | 310 bubble_view_->AddChildView(new TrayPopupItemContainer( |
311 item_views[i], is_default_bubble, | 311 item_views[i], is_default_bubble, |
312 is_default_bubble && (i < item_views.size() - 2))); | 312 is_default_bubble && (i < item_views.size() - 2))); |
313 } | 313 } |
314 if (focus_view) | 314 if (focus_view) |
315 focus_view->RequestFocus(); | 315 focus_view->RequestFocus(); |
316 } | 316 } |
317 | 317 |
318 } // namespace ash | 318 } // namespace ash |
OLD | NEW |