| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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/brightness/tray_brightness.h" | 5 #include "ash/system/brightness/tray_brightness.h" |
| 6 | 6 |
| 7 #include <algorithm> | 7 #include <algorithm> |
| 8 | 8 |
| 9 #include "ash/resources/grit/ash_resources.h" | |
| 10 #include "ash/resources/vector_icons/vector_icons.h" | 9 #include "ash/resources/vector_icons/vector_icons.h" |
| 11 #include "ash/shell.h" | 10 #include "ash/shell.h" |
| 12 #include "ash/shell_observer.h" | 11 #include "ash/shell_observer.h" |
| 13 #include "ash/shell_port.h" | 12 #include "ash/shell_port.h" |
| 14 #include "ash/strings/grit/ash_strings.h" | 13 #include "ash/strings/grit/ash_strings.h" |
| 15 #include "ash/system/brightness_control_delegate.h" | 14 #include "ash/system/brightness_control_delegate.h" |
| 16 #include "ash/system/tray/tray_constants.h" | 15 #include "ash/system/tray/tray_constants.h" |
| 17 #include "ash/system/tray/tray_popup_utils.h" | 16 #include "ash/system/tray/tray_popup_utils.h" |
| 18 #include "ash/system/tray/tri_view.h" | 17 #include "ash/system/tray/tri_view.h" |
| 19 #include "ash/wm/maximize_mode/maximize_mode_controller.h" | 18 #include "ash/wm/maximize_mode/maximize_mode_controller.h" |
| (...skipping 248 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 268 if (!display::Display::HasInternalDisplay()) | 267 if (!display::Display::HasInternalDisplay()) |
| 269 return; | 268 return; |
| 270 | 269 |
| 271 if (brightness_view_ && brightness_view_->visible()) | 270 if (brightness_view_ && brightness_view_->visible()) |
| 272 SetDetailedViewCloseDelay(kTrayPopupAutoCloseDelayInSeconds); | 271 SetDetailedViewCloseDelay(kTrayPopupAutoCloseDelayInSeconds); |
| 273 else | 272 else |
| 274 ShowDetailedView(kTrayPopupAutoCloseDelayInSeconds, false); | 273 ShowDetailedView(kTrayPopupAutoCloseDelayInSeconds, false); |
| 275 } | 274 } |
| 276 | 275 |
| 277 } // namespace ash | 276 } // namespace ash |
| OLD | NEW |