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

Side by Side Diff: ash/common/shelf/shelf_constants.cc

Issue 2070143003: Add MD ink drop ripple to app list button (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@b612539_shelf_button_ripple
Patch Set: Rebased Created 4 years, 5 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/common/shelf/shelf_constants.h ('k') | ash/first_run/first_run_helper_impl.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 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/shelf/shelf_constants.h" 5 #include "ash/common/shelf/shelf_constants.h"
6 6
7 #include "ash/common/material_design/material_design_controller.h" 7 #include "ash/common/material_design/material_design_controller.h"
8 #include "base/logging.h" 8 #include "base/logging.h"
9 #include "third_party/skia/include/core/SkColor.h" 9 #include "third_party/skia/include/core/SkColor.h"
10 10
11 namespace ash { 11 namespace ash {
12 12
13 const int kInvalidImageResourceID = -1; 13 const int kInvalidImageResourceID = -1;
14 const int kTimeToSwitchBackgroundMs = 1000; 14 const int kTimeToSwitchBackgroundMs = 1000;
15 const int kWorkspaceAreaVisibleInset = 2; 15 const int kWorkspaceAreaVisibleInset = 2;
16 const int kWorkspaceAreaAutoHideInset = 5; 16 const int kWorkspaceAreaAutoHideInset = 5;
17 const int kShelfAutoHideSize = 3; 17 const int kShelfAutoHideSize = 3;
18 const int kShelfItemInset = 3; 18 const int kShelfItemInset = 3;
19 const SkColor kShelfBaseColor = SK_ColorBLACK; 19 const SkColor kShelfBaseColor = SK_ColorBLACK;
20 const SkColor kShelfButtonActivatedHighlightColor = 20 const SkColor kShelfButtonActivatedHighlightColor =
21 SkColorSetA(SK_ColorWHITE, 100); 21 SkColorSetA(SK_ColorWHITE, 100);
22 const SkColor kShelfInkDropBaseColor = SK_ColorWHITE;
22 const float kShelfInkDropVisibleOpacity = 0.2f; 23 const float kShelfInkDropVisibleOpacity = 0.2f;
23 const SkColor kShelfIconColor = SK_ColorWHITE; 24 const SkColor kShelfIconColor = SK_ColorWHITE;
24 const int kOverflowButtonSize = 32; 25 const int kOverflowButtonSize = 32;
25 const int kOverflowButtonCornerRadius = 2; 26 const int kOverflowButtonCornerRadius = 2;
26 const int kAppListButtonRadius = kOverflowButtonSize / 2; 27 const int kAppListButtonRadius = kOverflowButtonSize / 2;
27 28
28 int GetShelfConstant(ShelfConstant shelf_constant) { 29 int GetShelfConstant(ShelfConstant shelf_constant) {
29 const int kShelfBackgroundAlpha[] = {204, 204, 153}; 30 const int kShelfBackgroundAlpha[] = {204, 204, 153};
30 const int kShelfSize[] = {47, 47, 48}; 31 const int kShelfSize[] = {47, 47, 48};
31 const int kShelfButtonSpacing[] = {10, 10, 16}; 32 const int kShelfButtonSpacing[] = {10, 10, 16};
(...skipping 14 matching lines...) Expand all
46 case SHELF_BUTTON_SIZE: 47 case SHELF_BUTTON_SIZE:
47 return kShelfButtonSize[mode]; 48 return kShelfButtonSize[mode];
48 case SHELF_INSETS_FOR_AUTO_HIDE: 49 case SHELF_INSETS_FOR_AUTO_HIDE:
49 return kShelfInsetsForAutoHide[mode]; 50 return kShelfInsetsForAutoHide[mode];
50 } 51 }
51 NOTREACHED(); 52 NOTREACHED();
52 return 0; 53 return 0;
53 } 54 }
54 55
55 } // namespace ash 56 } // namespace ash
OLDNEW
« no previous file with comments | « ash/common/shelf/shelf_constants.h ('k') | ash/first_run/first_run_helper_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698