Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(41)

Side by Side Diff: ash/sysui/shelf_delegate_mus.cc

Issue 2268823002: mash: Move more shelf files to ash/common/shelf. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix rebase. Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « ash/shell_unittest.cc ('k') | ash/test/shelf_test_api.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « ash/shell_unittest.cc ('k') | ash/test/shelf_test_api.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698