| 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/test/test_shelf_delegate.h" | 5 #include "ash/test/test_shelf_delegate.h" |
| 6 | 6 |
| 7 #include <utility> | 7 #include <utility> |
| 8 | 8 |
| 9 #include "ash/common/shelf/shelf_model.h" | |
| 10 #include "ash/common/shelf/wm_shelf.h" | |
| 11 #include "ash/common/shell_observer.h" | |
| 12 #include "ash/common/test/test_shelf_item_delegate.h" | |
| 13 #include "ash/common/wm_shell.h" | |
| 14 #include "ash/common/wm_window.h" | |
| 15 #include "ash/root_window_controller.h" | 9 #include "ash/root_window_controller.h" |
| 10 #include "ash/shelf/shelf_model.h" |
| 11 #include "ash/shelf/wm_shelf.h" |
| 12 #include "ash/shell_observer.h" |
| 13 #include "ash/test/test_shelf_item_delegate.h" |
| 16 #include "ash/wm/window_properties.h" | 14 #include "ash/wm/window_properties.h" |
| 15 #include "ash/wm_shell.h" |
| 16 #include "ash/wm_window.h" |
| 17 #include "base/memory/ptr_util.h" | 17 #include "base/memory/ptr_util.h" |
| 18 #include "ui/aura/window.h" | 18 #include "ui/aura/window.h" |
| 19 | 19 |
| 20 namespace ash { | 20 namespace ash { |
| 21 namespace test { | 21 namespace test { |
| 22 | 22 |
| 23 TestShelfDelegate* TestShelfDelegate::instance_ = nullptr; | 23 TestShelfDelegate* TestShelfDelegate::instance_ = nullptr; |
| 24 | 24 |
| 25 // A ShellObserver that sets the shelf alignment and auto hide behavior when the | 25 // A ShellObserver that sets the shelf alignment and auto hide behavior when the |
| 26 // shelf is created, to simulate ChromeLauncherController's behavior. | 26 // shelf is created, to simulate ChromeLauncherController's behavior. |
| (...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 153 const std::string& app_id) { | 153 const std::string& app_id) { |
| 154 shelf_id_to_app_id_map_[shelf_id] = app_id; | 154 shelf_id_to_app_id_map_[shelf_id] = app_id; |
| 155 } | 155 } |
| 156 | 156 |
| 157 void TestShelfDelegate::RemoveShelfIDToAppIDMapping(ShelfID shelf_id) { | 157 void TestShelfDelegate::RemoveShelfIDToAppIDMapping(ShelfID shelf_id) { |
| 158 shelf_id_to_app_id_map_.erase(shelf_id); | 158 shelf_id_to_app_id_map_.erase(shelf_id); |
| 159 } | 159 } |
| 160 | 160 |
| 161 } // namespace test | 161 } // namespace test |
| 162 } // namespace ash | 162 } // namespace ash |
| OLD | NEW |