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

Side by Side Diff: ash/shelf/shelf_layout_manager.h

Issue 1849623002: Remove unused ash::SHELF_ALIGNMENT_TOP (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase 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/shelf/shelf_button.cc ('k') | ash/shelf/shelf_layout_manager.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2012 The Chromium Authors. All rights reserved. 1 // Copyright 2012 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 #ifndef ASH_SHELF_SHELF_LAYOUT_MANAGER_H_ 5 #ifndef ASH_SHELF_SHELF_LAYOUT_MANAGER_H_
6 #define ASH_SHELF_SHELF_LAYOUT_MANAGER_H_ 6 #define ASH_SHELF_SHELF_LAYOUT_MANAGER_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "ash/ash_export.h" 10 #include "ash/ash_export.h"
(...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after
178 // Overridden from ash::LockStateObserver: 178 // Overridden from ash::LockStateObserver:
179 void OnLockStateEvent(LockStateObserver::EventType event) override; 179 void OnLockStateEvent(LockStateObserver::EventType event) override;
180 180
181 // Overridden from ash::SessionStateObserver: 181 // Overridden from ash::SessionStateObserver:
182 void SessionStateChanged(SessionStateDelegate::SessionState state) override; 182 void SessionStateChanged(SessionStateDelegate::SessionState state) override;
183 183
184 // TODO(harrym|oshima): These templates will be moved to 184 // TODO(harrym|oshima): These templates will be moved to
185 // new Shelf class. 185 // new Shelf class.
186 // A helper function that provides a shortcut for choosing 186 // A helper function that provides a shortcut for choosing
187 // values specific to a shelf alignment. 187 // values specific to a shelf alignment.
188 template<typename T> 188 template <typename T>
189 T SelectValueForShelfAlignment(T bottom, T left, T right, T top) const { 189 T SelectValueForShelfAlignment(T bottom, T left, T right) const {
190 switch (GetAlignment()) { 190 switch (GetAlignment()) {
191 case SHELF_ALIGNMENT_BOTTOM: 191 case SHELF_ALIGNMENT_BOTTOM:
192 return bottom; 192 return bottom;
193 case SHELF_ALIGNMENT_LEFT: 193 case SHELF_ALIGNMENT_LEFT:
194 return left; 194 return left;
195 case SHELF_ALIGNMENT_RIGHT: 195 case SHELF_ALIGNMENT_RIGHT:
196 return right; 196 return right;
197 case SHELF_ALIGNMENT_TOP:
198 return top;
199 } 197 }
200 NOTREACHED(); 198 NOTREACHED();
201 return right; 199 return right;
202 } 200 }
203 201
204 template<typename T> 202 template<typename T>
205 T PrimaryAxisValue(T horizontal, T vertical) const { 203 T PrimaryAxisValue(T horizontal, T vertical) const {
206 return IsHorizontalAlignment() ? horizontal : vertical; 204 return IsHorizontalAlignment() ? horizontal : vertical;
207 } 205 }
208 206
(...skipping 197 matching lines...) Expand 10 before | Expand all | Expand 10 after
406 404
407 // The show hide animation duration override or 0 for default. 405 // The show hide animation duration override or 0 for default.
408 int duration_override_in_ms_; 406 int duration_override_in_ms_;
409 407
410 DISALLOW_COPY_AND_ASSIGN(ShelfLayoutManager); 408 DISALLOW_COPY_AND_ASSIGN(ShelfLayoutManager);
411 }; 409 };
412 410
413 } // namespace ash 411 } // namespace ash
414 412
415 #endif // ASH_SHELF_SHELF_LAYOUT_MANAGER_H_ 413 #endif // ASH_SHELF_SHELF_LAYOUT_MANAGER_H_
OLDNEW
« no previous file with comments | « ash/shelf/shelf_button.cc ('k') | ash/shelf/shelf_layout_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698