| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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/window_cycle_list.h" | 5 #include "ash/common/wm/window_cycle_list.h" |
| 6 | 6 |
| 7 #include <list> | 7 #include <list> |
| 8 #include <map> | 8 #include <map> |
| 9 | 9 |
| 10 #include "ash/common/ash_switches.h" | |
| 11 #include "ash/common/shell_window_ids.h" | 10 #include "ash/common/shell_window_ids.h" |
| 12 #include "ash/common/wm/forwarding_layer_delegate.h" | 11 #include "ash/common/wm/forwarding_layer_delegate.h" |
| 13 #include "ash/common/wm/mru_window_tracker.h" | 12 #include "ash/common/wm/mru_window_tracker.h" |
| 14 #include "ash/common/wm/window_state.h" | 13 #include "ash/common/wm/window_state.h" |
| 15 #include "ash/common/wm_root_window_controller.h" | 14 #include "ash/common/wm_root_window_controller.h" |
| 16 #include "ash/common/wm_shell.h" | 15 #include "ash/common/wm_shell.h" |
| 17 #include "ash/common/wm_window.h" | 16 #include "ash/common/wm_window.h" |
| 18 #include "base/command_line.h" | 17 #include "base/command_line.h" |
| 19 #include "ui/accessibility/ax_view_state.h" | 18 #include "ui/accessibility/ax_view_state.h" |
| 20 #include "ui/compositor/scoped_layer_animation_settings.h" | 19 #include "ui/compositor/scoped_layer_animation_settings.h" |
| (...skipping 592 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 613 gfx::Rect widget_rect = root_window->GetDisplayNearestWindow().bounds(); | 612 gfx::Rect widget_rect = root_window->GetDisplayNearestWindow().bounds(); |
| 614 int widget_height = cycle_view_->GetPreferredSize().height(); | 613 int widget_height = cycle_view_->GetPreferredSize().height(); |
| 615 widget_rect.set_y((widget_rect.height() - widget_height) / 2); | 614 widget_rect.set_y((widget_rect.height() - widget_height) / 2); |
| 616 widget_rect.set_height(widget_height); | 615 widget_rect.set_height(widget_height); |
| 617 widget->SetBounds(widget_rect); | 616 widget->SetBounds(widget_rect); |
| 618 widget->Show(); | 617 widget->Show(); |
| 619 cycle_ui_widget_.reset(widget); | 618 cycle_ui_widget_.reset(widget); |
| 620 } | 619 } |
| 621 | 620 |
| 622 } // namespace ash | 621 } // namespace ash |
| OLD | NEW |