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 "chrome/browser/ui/ash/launcher/chrome_launcher_controller_impl.h" | 5 #include "chrome/browser/ui/ash/launcher/chrome_launcher_controller_impl.h" |
6 | 6 |
7 #include <stddef.h> | 7 #include <stddef.h> |
8 | 8 |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
11 #include "ash/ash_switches.h" | 11 #include "ash/common/ash_switches.h" |
12 #include "ash/common/shelf/shelf_item_delegate_manager.h" | 12 #include "ash/common/shelf/shelf_item_delegate_manager.h" |
13 #include "ash/common/shelf/shelf_model.h" | 13 #include "ash/common/shelf/shelf_model.h" |
14 #include "ash/common/system/tray/system_tray_delegate.h" | 14 #include "ash/common/system/tray/system_tray_delegate.h" |
15 #include "ash/common/wm_shell.h" | 15 #include "ash/common/wm_shell.h" |
16 #include "ash/desktop_background/desktop_background_controller.h" | 16 #include "ash/desktop_background/desktop_background_controller.h" |
17 #include "ash/multi_profile_uma.h" | 17 #include "ash/multi_profile_uma.h" |
18 #include "ash/root_window_controller.h" | 18 #include "ash/root_window_controller.h" |
19 #include "ash/shelf/shelf.h" | 19 #include "ash/shelf/shelf.h" |
20 #include "ash/shell.h" | 20 #include "ash/shell.h" |
21 #include "ash/wm/window_util.h" | 21 #include "ash/wm/window_util.h" |
(...skipping 1860 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1882 continue; | 1882 continue; |
1883 int index = model_->ItemIndexByID(i->first); | 1883 int index = model_->ItemIndexByID(i->first); |
1884 if (index == -1) | 1884 if (index == -1) |
1885 continue; | 1885 continue; |
1886 ash::ShelfItem item = model_->items()[index]; | 1886 ash::ShelfItem item = model_->items()[index]; |
1887 item.image = image; | 1887 item.image = image; |
1888 model_->Set(index, item); | 1888 model_->Set(index, item); |
1889 // It's possible we're waiting on more than one item, so don't break. | 1889 // It's possible we're waiting on more than one item, so don't break. |
1890 } | 1890 } |
1891 } | 1891 } |
OLD | NEW |