| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 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/shelf/shelf_window_watcher.h" | 5 #include "ash/common/shelf/shelf_window_watcher.h" |
| 6 | 6 |
| 7 #include <memory> | 7 #include <memory> |
| 8 #include <utility> | 8 #include <utility> |
| 9 | 9 |
| 10 #include "ash/common/shelf/shelf_constants.h" | 10 #include "ash/common/shelf/shelf_constants.h" |
| 11 #include "ash/common/shelf/shelf_model.h" | 11 #include "ash/common/shelf/shelf_model.h" |
| 12 #include "ash/common/shelf/shelf_window_watcher_item_delegate.h" |
| 12 #include "ash/common/shell_window_ids.h" | 13 #include "ash/common/shell_window_ids.h" |
| 13 #include "ash/common/wm/window_state.h" | 14 #include "ash/common/wm/window_state.h" |
| 14 #include "ash/common/wm_shell.h" | 15 #include "ash/common/wm_shell.h" |
| 15 #include "ash/common/wm_window.h" | 16 #include "ash/common/wm_window.h" |
| 16 #include "ash/common/wm_window_property.h" | 17 #include "ash/common/wm_window_property.h" |
| 17 #include "ash/shelf/shelf_window_watcher_item_delegate.h" | |
| 18 #include "ui/base/resource/resource_bundle.h" | 18 #include "ui/base/resource/resource_bundle.h" |
| 19 #include "ui/display/display.h" | 19 #include "ui/display/display.h" |
| 20 #include "ui/display/screen.h" | 20 #include "ui/display/screen.h" |
| 21 #include "ui/gfx/image/image_skia.h" | 21 #include "ui/gfx/image/image_skia.h" |
| 22 | 22 |
| 23 namespace ash { | 23 namespace ash { |
| 24 namespace { | 24 namespace { |
| 25 | 25 |
| 26 // Sets ShelfItem property by using the value of |details|. | 26 // Sets ShelfItem property by using the value of |details|. |
| 27 void SetShelfItemDetailsForShelfItem(ash::ShelfItem* item, | 27 void SetShelfItemDetailsForShelfItem(ash::ShelfItem* item, |
| (...skipping 184 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 212 observed_container_windows_.Add(container); | 212 observed_container_windows_.Add(container); |
| 213 } | 213 } |
| 214 | 214 |
| 215 void ShelfWindowWatcher::OnDisplayRemoved(const display::Display& old_display) { | 215 void ShelfWindowWatcher::OnDisplayRemoved(const display::Display& old_display) { |
| 216 } | 216 } |
| 217 | 217 |
| 218 void ShelfWindowWatcher::OnDisplayMetricsChanged(const display::Display&, | 218 void ShelfWindowWatcher::OnDisplayMetricsChanged(const display::Display&, |
| 219 uint32_t) {} | 219 uint32_t) {} |
| 220 | 220 |
| 221 } // namespace ash | 221 } // namespace ash |
| OLD | NEW |