| 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.h" | 5 #include "chrome/browser/ui/ash/launcher/chrome_launcher_controller.h" |
| 6 | 6 |
| 7 #include <stddef.h> | 7 #include <stddef.h> |
| 8 | 8 |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 1136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1147 GetShelfAutoHideBehaviorFromPrefs(profile_, root_window)); | 1147 GetShelfAutoHideBehaviorFromPrefs(profile_, root_window)); |
| 1148 | 1148 |
| 1149 if (ash::ShelfWidget::ShelfAlignmentAllowed()) | 1149 if (ash::ShelfWidget::ShelfAlignmentAllowed()) |
| 1150 shelf->SetAlignment(GetShelfAlignmentFromPrefs(profile_, root_window)); | 1150 shelf->SetAlignment(GetShelfAlignmentFromPrefs(profile_, root_window)); |
| 1151 } | 1151 } |
| 1152 | 1152 |
| 1153 void ChromeLauncherController::OnShelfDestroyed(ash::Shelf* shelf) {} | 1153 void ChromeLauncherController::OnShelfDestroyed(ash::Shelf* shelf) {} |
| 1154 | 1154 |
| 1155 void ChromeLauncherController::OnShelfAlignmentChanged(ash::Shelf* shelf) { | 1155 void ChromeLauncherController::OnShelfAlignmentChanged(ash::Shelf* shelf) { |
| 1156 const char* value = nullptr; | 1156 const char* value = nullptr; |
| 1157 switch (shelf->GetAlignment()) { | 1157 switch (shelf->alignment()) { |
| 1158 case ash::SHELF_ALIGNMENT_BOTTOM: | 1158 case ash::SHELF_ALIGNMENT_BOTTOM: |
| 1159 value = ash::kShelfAlignmentBottom; | 1159 value = ash::kShelfAlignmentBottom; |
| 1160 break; | 1160 break; |
| 1161 case ash::SHELF_ALIGNMENT_LEFT: | 1161 case ash::SHELF_ALIGNMENT_LEFT: |
| 1162 value = ash::kShelfAlignmentLeft; | 1162 value = ash::kShelfAlignmentLeft; |
| 1163 break; | 1163 break; |
| 1164 case ash::SHELF_ALIGNMENT_RIGHT: | 1164 case ash::SHELF_ALIGNMENT_RIGHT: |
| 1165 value = ash::kShelfAlignmentRight; | 1165 value = ash::kShelfAlignmentRight; |
| 1166 break; | 1166 break; |
| 1167 case ash::SHELF_ALIGNMENT_BOTTOM_LOCKED: | 1167 case ash::SHELF_ALIGNMENT_BOTTOM_LOCKED: |
| (...skipping 1064 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2232 | 2232 |
| 2233 AppIconLoader* ChromeLauncherController::GetAppIconLoaderForApp( | 2233 AppIconLoader* ChromeLauncherController::GetAppIconLoaderForApp( |
| 2234 const std::string& app_id) { | 2234 const std::string& app_id) { |
| 2235 for (const auto& app_icon_loader : app_icon_loaders_) { | 2235 for (const auto& app_icon_loader : app_icon_loaders_) { |
| 2236 if (app_icon_loader->CanLoadImageForApp(app_id)) | 2236 if (app_icon_loader->CanLoadImageForApp(app_id)) |
| 2237 return app_icon_loader.get(); | 2237 return app_icon_loader.get(); |
| 2238 } | 2238 } |
| 2239 | 2239 |
| 2240 return nullptr; | 2240 return nullptr; |
| 2241 } | 2241 } |
| OLD | NEW |