| 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/shelf/shelf_layout_manager.h" | 5 #include "ash/shelf/shelf_layout_manager.h" |
| 6 | 6 |
| 7 #include <algorithm> | 7 #include <algorithm> |
| 8 #include <cmath> | 8 #include <cmath> |
| 9 #include <cstring> | 9 #include <cstring> |
| 10 #include <string> | 10 #include <string> |
| 11 #include <vector> | 11 #include <vector> |
| 12 | 12 |
| 13 #include "ash/accelerators/accelerator_commands.h" | 13 #include "ash/accelerators/accelerator_commands.h" |
| 14 #include "ash/ash_switches.h" | 14 #include "ash/ash_switches.h" |
| 15 #include "ash/root_window_controller.h" | 15 #include "ash/root_window_controller.h" |
| 16 #include "ash/screen_util.h" | 16 #include "ash/screen_util.h" |
| 17 #include "ash/session_state_delegate.h" | 17 #include "ash/session/session_state_delegate.h" |
| 18 #include "ash/shelf/shelf.h" | 18 #include "ash/shelf/shelf.h" |
| 19 #include "ash/shelf/shelf_bezel_event_filter.h" | 19 #include "ash/shelf/shelf_bezel_event_filter.h" |
| 20 #include "ash/shelf/shelf_constants.h" | 20 #include "ash/shelf/shelf_constants.h" |
| 21 #include "ash/shelf/shelf_layout_manager_observer.h" | 21 #include "ash/shelf/shelf_layout_manager_observer.h" |
| 22 #include "ash/shelf/shelf_widget.h" | 22 #include "ash/shelf/shelf_widget.h" |
| 23 #include "ash/shell.h" | 23 #include "ash/shell.h" |
| 24 #include "ash/shell_window_ids.h" | 24 #include "ash/shell_window_ids.h" |
| 25 #include "ash/system/status_area_widget.h" | 25 #include "ash/system/status_area_widget.h" |
| 26 #include "ash/wm/gestures/shelf_gesture_handler.h" | 26 #include "ash/wm/gestures/shelf_gesture_handler.h" |
| 27 #include "ash/wm/lock_state_controller.h" | 27 #include "ash/wm/lock_state_controller.h" |
| (...skipping 1163 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1191 | 1191 |
| 1192 void ShelfLayoutManager::SessionStateChanged( | 1192 void ShelfLayoutManager::SessionStateChanged( |
| 1193 SessionStateDelegate::SessionState state) { | 1193 SessionStateDelegate::SessionState state) { |
| 1194 TargetBounds target_bounds; | 1194 TargetBounds target_bounds; |
| 1195 CalculateTargetBounds(state_, &target_bounds); | 1195 CalculateTargetBounds(state_, &target_bounds); |
| 1196 UpdateBoundsAndOpacity(target_bounds, true, NULL); | 1196 UpdateBoundsAndOpacity(target_bounds, true, NULL); |
| 1197 UpdateVisibilityState(); | 1197 UpdateVisibilityState(); |
| 1198 } | 1198 } |
| 1199 | 1199 |
| 1200 } // namespace ash | 1200 } // namespace ash |
| OLD | NEW |