OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_grid.h" | 5 #include "ash/common/wm/overview/window_grid.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 #include <functional> | 8 #include <functional> |
9 #include <set> | 9 #include <set> |
10 #include <utility> | 10 #include <utility> |
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
104 const SkColor kWindowSelectionColorMD = SkColorSetARGB(51, 255, 255, 255); | 104 const SkColor kWindowSelectionColorMD = SkColorSetARGB(51, 255, 255, 255); |
105 const SkColor kWindowSelectionBorderColor = SkColorSetARGB(38, 255, 255, 255); | 105 const SkColor kWindowSelectionBorderColor = SkColorSetARGB(38, 255, 255, 255); |
106 const SkColor kWindowSelectionBorderColorMD = SkColorSetARGB(76, 255, 255, 255); | 106 const SkColor kWindowSelectionBorderColorMD = SkColorSetARGB(76, 255, 255, 255); |
107 | 107 |
108 // Border thickness of overview selector. | 108 // Border thickness of overview selector. |
109 const int kWindowSelectionBorderThickness = 2; | 109 const int kWindowSelectionBorderThickness = 2; |
110 const int kWindowSelectionBorderThicknessMD = 1; | 110 const int kWindowSelectionBorderThicknessMD = 1; |
111 | 111 |
112 // Corner radius of the overview selector border. | 112 // Corner radius of the overview selector border. |
113 const int kWindowSelectionRadius = 0; | 113 const int kWindowSelectionRadius = 0; |
114 const int kWindowSelectionRadiusMD = 3; | 114 const int kWindowSelectionRadiusMD = 6; |
115 | 115 |
116 // The minimum amount of spacing between the bottom of the text filtering | 116 // The minimum amount of spacing between the bottom of the text filtering |
117 // text field and the top of the selection widget on the first row of items. | 117 // text field and the top of the selection widget on the first row of items. |
118 const int kTextFilterBottomMargin = 5; | 118 const int kTextFilterBottomMargin = 5; |
119 | 119 |
120 // In the conceptual overview table, the window margin is the space reserved | 120 // In the conceptual overview table, the window margin is the space reserved |
121 // around the window within the cell. This margin does not overlap so the | 121 // around the window within the cell. This margin does not overlap so the |
122 // closest distance between adjacent windows will be twice this amount. | 122 // closest distance between adjacent windows will be twice this amount. |
123 const int kWindowMarginMD = 5; | 123 const int kWindowMarginMD = 5; |
124 | 124 |
(...skipping 818 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
943 *min_right = left; | 943 *min_right = left; |
944 if (*max_right < left) | 944 if (*max_right < left) |
945 *max_right = left; | 945 *max_right = left; |
946 } | 946 } |
947 *max_bottom = top + height; | 947 *max_bottom = top + height; |
948 } | 948 } |
949 return windows_fit; | 949 return windows_fit; |
950 } | 950 } |
951 | 951 |
952 } // namespace ash | 952 } // namespace ash |
OLD | NEW |