| 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/common/wm/dock/docked_window_layout_manager.h" | 5 #include "ash/common/wm/dock/docked_window_layout_manager.h" |
| 6 | 6 |
| 7 #include "ash/animation/animation_change_type.h" | 7 #include "ash/animation/animation_change_type.h" |
| 8 #include "ash/common/shelf/shelf_background_animator.h" | 8 #include "ash/common/shelf/shelf_background_animator.h" |
| 9 #include "ash/common/shelf/shelf_background_animator_observer.h" | 9 #include "ash/common/shelf/shelf_background_animator_observer.h" |
| 10 #include "ash/common/shelf/shelf_constants.h" | 10 #include "ash/common/shelf/shelf_constants.h" |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 52 | 52 |
| 53 class DockedBackgroundWidget : public views::Widget, | 53 class DockedBackgroundWidget : public views::Widget, |
| 54 public WmShelfObserver, | 54 public WmShelfObserver, |
| 55 public ShelfBackgroundAnimatorObserver { | 55 public ShelfBackgroundAnimatorObserver { |
| 56 public: | 56 public: |
| 57 explicit DockedBackgroundWidget(DockedWindowLayoutManager* manager) | 57 explicit DockedBackgroundWidget(DockedWindowLayoutManager* manager) |
| 58 : manager_(manager), | 58 : manager_(manager), |
| 59 alignment_(DOCKED_ALIGNMENT_NONE), | 59 alignment_(DOCKED_ALIGNMENT_NONE), |
| 60 background_animator_(SHELF_BACKGROUND_DEFAULT, | 60 background_animator_(SHELF_BACKGROUND_DEFAULT, |
| 61 nullptr, | 61 nullptr, |
| 62 WmShell::Get()->wallpaper_controller()), | 62 Shell::GetInstance()->wallpaper_controller()), |
| 63 opaque_background_(ui::LAYER_SOLID_COLOR), | 63 opaque_background_(ui::LAYER_SOLID_COLOR), |
| 64 visible_background_type_(manager_->shelf()->GetBackgroundType()), | 64 visible_background_type_(manager_->shelf()->GetBackgroundType()), |
| 65 visible_background_change_type_(AnimationChangeType::IMMEDIATE) { | 65 visible_background_change_type_(AnimationChangeType::IMMEDIATE) { |
| 66 manager_->shelf()->AddObserver(this); | 66 manager_->shelf()->AddObserver(this); |
| 67 InitWidget(manager_->dock_container()); | 67 InitWidget(manager_->dock_container()); |
| 68 | 68 |
| 69 background_animator_.AddObserver(this); | 69 background_animator_.AddObserver(this); |
| 70 } | 70 } |
| 71 | 71 |
| 72 ~DockedBackgroundWidget() override { | 72 ~DockedBackgroundWidget() override { |
| (...skipping 1259 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1332 const gfx::Rect& keyboard_bounds) { | 1332 const gfx::Rect& keyboard_bounds) { |
| 1333 // This bounds change will have caused a change to the Shelf which does not | 1333 // This bounds change will have caused a change to the Shelf which does not |
| 1334 // propagate automatically to this class, so manually recalculate bounds. | 1334 // propagate automatically to this class, so manually recalculate bounds. |
| 1335 Relayout(); | 1335 Relayout(); |
| 1336 UpdateDockBounds(DockedWindowLayoutManagerObserver::KEYBOARD_BOUNDS_CHANGING); | 1336 UpdateDockBounds(DockedWindowLayoutManagerObserver::KEYBOARD_BOUNDS_CHANGING); |
| 1337 } | 1337 } |
| 1338 | 1338 |
| 1339 void DockedWindowLayoutManager::OnKeyboardClosed() {} | 1339 void DockedWindowLayoutManager::OnKeyboardClosed() {} |
| 1340 | 1340 |
| 1341 } // namespace ash | 1341 } // namespace ash |
| OLD | NEW |