OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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/wm/dock/docked_window_layout_manager.h" | 5 #include "ash/wm/dock/docked_window_layout_manager.h" |
6 | 6 |
7 #include "ash/ash_switches.h" | 7 #include "ash/ash_switches.h" |
8 #include "ash/launcher/launcher.h" | 8 #include "ash/launcher/launcher.h" |
9 #include "ash/screen_ash.h" | 9 #include "ash/screen_ash.h" |
10 #include "ash/shelf/shelf_layout_manager.h" | 10 #include "ash/shelf/shelf_layout_manager.h" |
11 #include "ash/shelf/shelf_types.h" | 11 #include "ash/shelf/shelf_types.h" |
12 #include "ash/shelf/shelf_widget.h" | 12 #include "ash/shelf/shelf_widget.h" |
13 #include "ash/shell.h" | 13 #include "ash/shell.h" |
14 #include "ash/shell_window_ids.h" | 14 #include "ash/shell_window_ids.h" |
15 #include "ash/wm/coordinate_conversion.h" | 15 #include "ash/wm/coordinate_conversion.h" |
16 #include "ash/wm/window_animations.h" | 16 #include "ash/wm/window_animations.h" |
17 #include "ash/wm/window_properties.h" | 17 #include "ash/wm/window_properties.h" |
18 #include "ash/wm/window_state.h" | 18 #include "ash/wm/window_state.h" |
19 #include "ash/wm/window_util.h" | 19 #include "ash/wm/window_util.h" |
20 #include "ash/wm/workspace_controller.h" | 20 #include "ash/wm/workspace_controller.h" |
21 #include "base/auto_reset.h" | 21 #include "base/auto_reset.h" |
22 #include "base/command_line.h" | 22 #include "base/command_line.h" |
23 #include "third_party/skia/include/core/SkColor.h" | 23 #include "third_party/skia/include/core/SkColor.h" |
24 #include "ui/aura/client/activation_client.h" | 24 #include "ui/aura/client/activation_client.h" |
25 #include "ui/aura/focus_manager.h" | 25 #include "ui/aura/client/focus_client.h" |
26 #include "ui/aura/root_window.h" | 26 #include "ui/aura/root_window.h" |
27 #include "ui/aura/window.h" | 27 #include "ui/aura/window.h" |
28 #include "ui/aura/window_delegate.h" | 28 #include "ui/aura/window_delegate.h" |
29 #include "ui/compositor/scoped_layer_animation_settings.h" | 29 #include "ui/compositor/scoped_layer_animation_settings.h" |
30 #include "ui/gfx/rect.h" | 30 #include "ui/gfx/rect.h" |
31 | 31 |
32 namespace ash { | 32 namespace ash { |
33 namespace internal { | 33 namespace internal { |
34 | 34 |
35 // Minimum, maximum width of the dock area and a width of the gap | 35 // Minimum, maximum width of the dock area and a width of the gap |
(...skipping 985 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1021 void DockedWindowLayoutManager::OnKeyboardBoundsChanging( | 1021 void DockedWindowLayoutManager::OnKeyboardBoundsChanging( |
1022 const gfx::Rect& keyboard_bounds) { | 1022 const gfx::Rect& keyboard_bounds) { |
1023 // This bounds change will have caused a change to the Shelf which does not | 1023 // This bounds change will have caused a change to the Shelf which does not |
1024 // propagate automatically to this class, so manually recalculate bounds. | 1024 // propagate automatically to this class, so manually recalculate bounds. |
1025 Relayout(); | 1025 Relayout(); |
1026 UpdateDockBounds(DockedWindowLayoutManagerObserver::KEYBOARD_BOUNDS_CHANGING); | 1026 UpdateDockBounds(DockedWindowLayoutManagerObserver::KEYBOARD_BOUNDS_CHANGING); |
1027 } | 1027 } |
1028 | 1028 |
1029 } // namespace internal | 1029 } // namespace internal |
1030 } // namespace ash | 1030 } // namespace ash |
OLD | NEW |