| 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 "ash/common/wm/overview/window_selector_item.h" | 5 #include "ash/common/wm/overview/window_selector_item.h" |
| 6 | 6 |
| 7 #include <algorithm> | 7 #include <algorithm> |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "ash/common/material_design/material_design_controller.h" | 10 #include "ash/common/material_design/material_design_controller.h" |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 61 static const SkColor kLabelColor = SK_ColorWHITE; | 61 static const SkColor kLabelColor = SK_ColorWHITE; |
| 62 | 62 |
| 63 // TODO(tdanderson): Move this to a central location. | 63 // TODO(tdanderson): Move this to a central location. |
| 64 static const SkColor kCloseButtonColor = SK_ColorWHITE; | 64 static const SkColor kCloseButtonColor = SK_ColorWHITE; |
| 65 | 65 |
| 66 // Label background color used with Material Design. | 66 // Label background color used with Material Design. |
| 67 // TODO(varkha): Make background color conform to window header. | 67 // TODO(varkha): Make background color conform to window header. |
| 68 static const SkColor kLabelBackgroundColor = SkColorSetARGB(25, 255, 255, 255); | 68 static const SkColor kLabelBackgroundColor = SkColorSetARGB(25, 255, 255, 255); |
| 69 | 69 |
| 70 // Corner radius for the selection tiles used with Material Design. | 70 // Corner radius for the selection tiles used with Material Design. |
| 71 static int kLabelBackgroundRadius = 2; | 71 static int kLabelBackgroundRadius = 5; |
| 72 | 72 |
| 73 // Label shadow color. | 73 // Label shadow color. |
| 74 static const SkColor kLabelShadow = SkColorSetARGB(176, 0, 0, 0); | 74 static const SkColor kLabelShadow = SkColorSetARGB(176, 0, 0, 0); |
| 75 | 75 |
| 76 // Vertical padding for the label, on top of it. | 76 // Vertical padding for the label, on top of it. |
| 77 static const int kVerticalLabelPadding = 20; | 77 static const int kVerticalLabelPadding = 20; |
| 78 | 78 |
| 79 // Horizontal padding for the label, on both sides. Used with Material Design. | 79 // Horizontal padding for the label, on both sides. Used with Material Design. |
| 80 static const int kHorizontalLabelPaddingMD = 8; | 80 static const int kHorizontalLabelPaddingMD = 8; |
| 81 | 81 |
| (...skipping 504 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 586 } | 586 } |
| 587 } | 587 } |
| 588 | 588 |
| 589 void WindowSelectorItem::UpdateCloseButtonAccessibilityName() { | 589 void WindowSelectorItem::UpdateCloseButtonAccessibilityName() { |
| 590 close_button_->SetAccessibleName(l10n_util::GetStringFUTF16( | 590 close_button_->SetAccessibleName(l10n_util::GetStringFUTF16( |
| 591 IDS_ASH_OVERVIEW_CLOSE_ITEM_BUTTON_ACCESSIBLE_NAME, | 591 IDS_ASH_OVERVIEW_CLOSE_ITEM_BUTTON_ACCESSIBLE_NAME, |
| 592 GetWindow()->GetTitle())); | 592 GetWindow()->GetTitle())); |
| 593 } | 593 } |
| 594 | 594 |
| 595 } // namespace ash | 595 } // namespace ash |
| OLD | NEW |