Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(288)

Side by Side Diff: chrome/browser/ui/ash/launcher/chrome_launcher_controller.cc

Issue 1913553002: Fix compile failures from shelf locking merge CL. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@2704
Patch Set: Update GetAlignment function call. Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « ash/wm/app_list_controller.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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 }
OLDNEW
« no previous file with comments | « ash/wm/app_list_controller.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698