| 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/common/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/shelf/shelf_window_watcher_item_delegate.h" |
| 13 #include "ash/common/shell_window_ids.h" | |
| 14 #include "ash/common/wm/window_state.h" | 13 #include "ash/common/wm/window_state.h" |
| 15 #include "ash/common/wm_shell.h" | 14 #include "ash/common/wm_shell.h" |
| 16 #include "ash/common/wm_window.h" | 15 #include "ash/common/wm_window.h" |
| 17 #include "ash/common/wm_window_property.h" | 16 #include "ash/common/wm_window_property.h" |
| 17 #include "ash/public/cpp/shell_window_ids.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 // Update the ShelfItem from relevant window properties. | 26 // Update the ShelfItem from relevant window properties. |
| 27 void UpdateShelfItemForWindow(ShelfItem* item, WmWindow* window) { | 27 void UpdateShelfItemForWindow(ShelfItem* item, WmWindow* window) { |
| (...skipping 186 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 214 observed_container_windows_.Add(container); | 214 observed_container_windows_.Add(container); |
| 215 } | 215 } |
| 216 | 216 |
| 217 void ShelfWindowWatcher::OnDisplayRemoved(const display::Display& old_display) { | 217 void ShelfWindowWatcher::OnDisplayRemoved(const display::Display& old_display) { |
| 218 } | 218 } |
| 219 | 219 |
| 220 void ShelfWindowWatcher::OnDisplayMetricsChanged(const display::Display&, | 220 void ShelfWindowWatcher::OnDisplayMetricsChanged(const display::Display&, |
| 221 uint32_t) {} | 221 uint32_t) {} |
| 222 | 222 |
| 223 } // namespace ash | 223 } // namespace ash |
| OLD | NEW |