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/tray_event_filter.h" | 5 #include "ash/common/system/tray/tray_event_filter.h" |
6 | 6 |
7 #include "ash/common/shell_window_ids.h" | |
8 #include "ash/common/system/tray/tray_background_view.h" | 7 #include "ash/common/system/tray/tray_background_view.h" |
9 #include "ash/common/system/tray/tray_bubble_wrapper.h" | 8 #include "ash/common/system/tray/tray_bubble_wrapper.h" |
10 #include "ash/common/wm/container_finder.h" | 9 #include "ash/common/wm/container_finder.h" |
11 #include "ash/common/wm_lookup.h" | 10 #include "ash/common/wm_lookup.h" |
12 #include "ash/common/wm_shell.h" | 11 #include "ash/common/wm_shell.h" |
13 #include "ash/common/wm_window.h" | 12 #include "ash/common/wm_window.h" |
| 13 #include "ash/public/cpp/shell_window_ids.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 TrayEventFilter::~TrayEventFilter() { | 20 TrayEventFilter::~TrayEventFilter() { |
21 DCHECK(wrappers_.empty()); | 21 DCHECK(wrappers_.empty()); |
22 } | 22 } |
23 | 23 |
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
88 | 88 |
89 // Close all bubbles other than the one a user clicked on the tray | 89 // Close all bubbles other than the one a user clicked on the tray |
90 // or its bubble. | 90 // or its bubble. |
91 for (std::set<TrayBackgroundView*>::iterator iter = trays.begin(); | 91 for (std::set<TrayBackgroundView*>::iterator iter = trays.begin(); |
92 iter != trays.end(); ++iter) { | 92 iter != trays.end(); ++iter) { |
93 (*iter)->ClickedOutsideBubble(); | 93 (*iter)->ClickedOutsideBubble(); |
94 } | 94 } |
95 } | 95 } |
96 | 96 |
97 } // namespace ash | 97 } // namespace ash |
OLD | NEW |