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