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/system/tray/tray_event_filter.h" | 5 #include "ash/common/system/tray/tray_event_filter.h" |
6 | 6 |
7 #include "ash/common/shell_window_ids.h" | 7 #include "ash/common/shell_window_ids.h" |
| 8 #include "ash/common/system/tray/tray_background_view.h" |
| 9 #include "ash/common/system/tray/tray_bubble_wrapper.h" |
8 #include "ash/common/wm/container_finder.h" | 10 #include "ash/common/wm/container_finder.h" |
9 #include "ash/common/wm_lookup.h" | 11 #include "ash/common/wm_lookup.h" |
10 #include "ash/common/wm_shell.h" | 12 #include "ash/common/wm_shell.h" |
11 #include "ash/common/wm_window.h" | 13 #include "ash/common/wm_window.h" |
12 #include "ash/system/tray/tray_background_view.h" | |
13 #include "ash/system/tray/tray_bubble_wrapper.h" | |
14 #include "ui/views/widget/widget.h" | 14 #include "ui/views/widget/widget.h" |
15 | 15 |
16 namespace ash { | 16 namespace ash { |
17 | 17 |
18 TrayEventFilter::TrayEventFilter() { | 18 TrayEventFilter::TrayEventFilter() { |
19 } | 19 } |
20 | 20 |
21 TrayEventFilter::~TrayEventFilter() { | 21 TrayEventFilter::~TrayEventFilter() { |
22 DCHECK(wrappers_.empty()); | 22 DCHECK(wrappers_.empty()); |
23 } | 23 } |
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
92 iter != wrappers_.end(); ++iter) { | 92 iter != wrappers_.end(); ++iter) { |
93 trays.insert((*iter)->tray()); | 93 trays.insert((*iter)->tray()); |
94 } | 94 } |
95 for (std::set<TrayBackgroundView*>::iterator iter = trays.begin(); | 95 for (std::set<TrayBackgroundView*>::iterator iter = trays.begin(); |
96 iter != trays.end(); ++iter) { | 96 iter != trays.end(); ++iter) { |
97 (*iter)->ClickedOutsideBubble(); | 97 (*iter)->ClickedOutsideBubble(); |
98 } | 98 } |
99 } | 99 } |
100 | 100 |
101 } // namespace ash | 101 } // namespace ash |
OLD | NEW |