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/screen_util.h" | 7 #include "ash/screen_util.h" |
8 #include "ash/shelf/shelf.h" | 8 #include "ash/shelf/shelf.h" |
9 #include "ash/shelf/shelf_constants.h" | 9 #include "ash/shelf/shelf_constants.h" |
10 #include "ash/shelf/shelf_layout_manager.h" | 10 #include "ash/shelf/shelf_layout_manager.h" |
(...skipping 15 matching lines...) Expand all Loading... |
26 #include "third_party/skia/include/core/SkColor.h" | 26 #include "third_party/skia/include/core/SkColor.h" |
27 #include "third_party/skia/include/core/SkPaint.h" | 27 #include "third_party/skia/include/core/SkPaint.h" |
28 #include "ui/aura/client/focus_client.h" | 28 #include "ui/aura/client/focus_client.h" |
29 #include "ui/aura/client/window_tree_client.h" | 29 #include "ui/aura/client/window_tree_client.h" |
30 #include "ui/aura/window.h" | 30 #include "ui/aura/window.h" |
31 #include "ui/aura/window_delegate.h" | 31 #include "ui/aura/window_delegate.h" |
32 #include "ui/aura/window_event_dispatcher.h" | 32 #include "ui/aura/window_event_dispatcher.h" |
33 #include "ui/base/resource/resource_bundle.h" | 33 #include "ui/base/resource/resource_bundle.h" |
34 #include "ui/compositor/scoped_layer_animation_settings.h" | 34 #include "ui/compositor/scoped_layer_animation_settings.h" |
35 #include "ui/gfx/canvas.h" | 35 #include "ui/gfx/canvas.h" |
| 36 #include "ui/gfx/geometry/rect.h" |
36 #include "ui/gfx/image/image_skia_operations.h" | 37 #include "ui/gfx/image/image_skia_operations.h" |
37 #include "ui/gfx/rect.h" | |
38 #include "ui/views/background.h" | 38 #include "ui/views/background.h" |
39 #include "ui/wm/core/window_util.h" | 39 #include "ui/wm/core/window_util.h" |
40 #include "ui/wm/public/activation_client.h" | 40 #include "ui/wm/public/activation_client.h" |
41 | 41 |
42 namespace ash { | 42 namespace ash { |
43 | 43 |
44 // Minimum, maximum width of the dock area and a width of the gap | 44 // Minimum, maximum width of the dock area and a width of the gap |
45 // static | 45 // static |
46 const int DockedWindowLayoutManager::kMaxDockWidth = 360; | 46 const int DockedWindowLayoutManager::kMaxDockWidth = 360; |
47 // static | 47 // static |
(...skipping 1314 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1362 | 1362 |
1363 void DockedWindowLayoutManager::OnKeyboardBoundsChanging( | 1363 void DockedWindowLayoutManager::OnKeyboardBoundsChanging( |
1364 const gfx::Rect& keyboard_bounds) { | 1364 const gfx::Rect& keyboard_bounds) { |
1365 // This bounds change will have caused a change to the Shelf which does not | 1365 // This bounds change will have caused a change to the Shelf which does not |
1366 // propagate automatically to this class, so manually recalculate bounds. | 1366 // propagate automatically to this class, so manually recalculate bounds. |
1367 Relayout(); | 1367 Relayout(); |
1368 UpdateDockBounds(DockedWindowLayoutManagerObserver::KEYBOARD_BOUNDS_CHANGING); | 1368 UpdateDockBounds(DockedWindowLayoutManagerObserver::KEYBOARD_BOUNDS_CHANGING); |
1369 } | 1369 } |
1370 | 1370 |
1371 } // namespace ash | 1371 } // namespace ash |
OLD | NEW |