| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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/sysui/shelf_delegate_mus.h" | 5 #include "ash/sysui/shelf_delegate_mus.h" |
| 6 | 6 |
| 7 #include <memory> | 7 #include <memory> |
| 8 | 8 |
| 9 #include "ash/common/shelf/shelf.h" |
| 9 #include "ash/common/shelf/shelf_item_delegate.h" | 10 #include "ash/common/shelf/shelf_item_delegate.h" |
| 11 #include "ash/common/shelf/shelf_layout_manager.h" |
| 10 #include "ash/common/shelf/shelf_menu_model.h" | 12 #include "ash/common/shelf/shelf_menu_model.h" |
| 11 #include "ash/common/shelf/shelf_model.h" | 13 #include "ash/common/shelf/shelf_model.h" |
| 12 #include "ash/common/shelf/shelf_types.h" | 14 #include "ash/common/shelf/shelf_types.h" |
| 15 #include "ash/common/shelf/shelf_widget.h" |
| 13 #include "ash/common/system/status_area_widget.h" | 16 #include "ash/common/system/status_area_widget.h" |
| 14 #include "ash/common/wm_shell.h" | 17 #include "ash/common/wm_shell.h" |
| 15 #include "ash/shelf/shelf.h" | |
| 16 #include "ash/shelf/shelf_layout_manager.h" | |
| 17 #include "ash/shelf/shelf_widget.h" | |
| 18 #include "base/strings/string_util.h" | 18 #include "base/strings/string_util.h" |
| 19 #include "mojo/common/common_type_converters.h" | 19 #include "mojo/common/common_type_converters.h" |
| 20 #include "services/shell/public/cpp/connector.h" | 20 #include "services/shell/public/cpp/connector.h" |
| 21 #include "services/ui/public/cpp/property_type_converters.h" | 21 #include "services/ui/public/cpp/property_type_converters.h" |
| 22 #include "services/ui/public/cpp/window.h" | 22 #include "services/ui/public/cpp/window.h" |
| 23 #include "services/ui/public/cpp/window_property.h" | 23 #include "services/ui/public/cpp/window_property.h" |
| 24 #include "ui/aura/mus/mus_util.h" | 24 #include "ui/aura/mus/mus_util.h" |
| 25 #include "ui/base/resource/resource_bundle.h" | 25 #include "ui/base/resource/resource_bundle.h" |
| 26 #include "ui/gfx/image/image_skia.h" | 26 #include "ui/gfx/image/image_skia.h" |
| 27 #include "ui/resources/grit/ui_resources.h" | 27 #include "ui/resources/grit/ui_resources.h" |
| (...skipping 312 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 340 StatusAreaWidget* status_widget = widget->status_area_widget(); | 340 StatusAreaWidget* status_widget = widget->status_area_widget(); |
| 341 ui::Window* status_window = | 341 ui::Window* status_window = |
| 342 aura::GetMusWindow(status_widget->GetNativeWindow()); | 342 aura::GetMusWindow(status_widget->GetNativeWindow()); |
| 343 gfx::Size status_size = status_widget->GetWindowBoundsInScreen().size(); | 343 gfx::Size status_size = status_widget->GetWindowBoundsInScreen().size(); |
| 344 status_window->SetSharedProperty<gfx::Size>( | 344 status_window->SetSharedProperty<gfx::Size>( |
| 345 ui::mojom::WindowManager::kPreferredSize_Property, status_size); | 345 ui::mojom::WindowManager::kPreferredSize_Property, status_size); |
| 346 } | 346 } |
| 347 | 347 |
| 348 } // namespace sysui | 348 } // namespace sysui |
| 349 } // namespace ash | 349 } // namespace ash |
| OLD | NEW |