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

Unified Diff: ash/shelf/shelf_widget.cc

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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ash/shelf/shelf_view_unittest.cc ('k') | ash/system/cast/tray_cast.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/shelf/shelf_widget.cc
diff --git a/ash/shelf/shelf_widget.cc b/ash/shelf/shelf_widget.cc
index 6458119a5e3fc0b13a6b1f63cd4b5ac8a305a77b..685a434395aa499a9ca3e0be130a96aaadc4cf89 100644
--- a/ash/shelf/shelf_widget.cc
+++ b/ash/shelf/shelf_widget.cc
@@ -183,8 +183,7 @@ void DimmerView::OnPaintBackground(gfx::Canvas* canvas) {
shelf_->shelf_layout_manager()->SelectValueForShelfAlignment(
SkBitmapOperations::ROTATION_90_CW,
SkBitmapOperations::ROTATION_90_CW,
- SkBitmapOperations::ROTATION_270_CW,
- SkBitmapOperations::ROTATION_180_CW));
+ SkBitmapOperations::ROTATION_270_CW));
}
paint.setAlpha(alpha_);
canvas->DrawImageInt(shelf_background,
@@ -272,8 +271,6 @@ class ShelfWindowTargeter : public wm::EasyResizeWindowTargeter,
return gfx::Insets(0, 0, 0, distance);
case ash::SHELF_ALIGNMENT_RIGHT:
return gfx::Insets(0, distance, 0, 0);
- case ash::SHELF_ALIGNMENT_TOP:
- return gfx::Insets(0, 0, distance, 0);
}
NOTREACHED();
return gfx::Insets();
@@ -476,8 +473,7 @@ void ShelfWidget::DelegateView::OnPaintBackground(gfx::Canvas* canvas) {
shelf_->shelf_layout_manager()->SelectValueForShelfAlignment(
SkBitmapOperations::ROTATION_90_CW,
SkBitmapOperations::ROTATION_90_CW,
- SkBitmapOperations::ROTATION_270_CW,
- SkBitmapOperations::ROTATION_180_CW));
+ SkBitmapOperations::ROTATION_270_CW));
const gfx::Rect dock_bounds(shelf_->shelf_layout_manager()->dock_bounds());
SkPaint paint;
paint.setAlpha(alpha_);
@@ -538,8 +534,7 @@ void ShelfWidget::DelegateView::OnPaintBackground(gfx::Canvas* canvas) {
shelf_->shelf_layout_manager()->SelectValueForShelfAlignment(
gfx::Rect(0, height() - kNumBlackPixels, width(), kNumBlackPixels),
gfx::Rect(0, 0, kNumBlackPixels, height()),
- gfx::Rect(width() - kNumBlackPixels, 0, kNumBlackPixels, height()),
- gfx::Rect(0, 0, width(), kNumBlackPixels));
+ gfx::Rect(width() - kNumBlackPixels, 0, kNumBlackPixels, height()));
canvas->FillRect(black_rect, SK_ColorBLACK);
}
« no previous file with comments | « ash/shelf/shelf_view_unittest.cc ('k') | ash/system/cast/tray_cast.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698