OLD | NEW |
1 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_VIEW_FILTER_H_ | 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. |
2 #define CHROME_BROWSER_CHROMEOS_LOGIN_VIEW_FILTER_H_ | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_ROUNDED_VIEW_H_ |
| 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_ROUNDED_VIEW_H_ |
3 | 7 |
4 #include "gfx/canvas.h" | 8 #include "gfx/canvas.h" |
5 #include "gfx/canvas_skia.h" | 9 #include "gfx/canvas_skia.h" |
6 #include "gfx/rect.h" | 10 #include "gfx/rect.h" |
7 | 11 |
8 namespace chromeos { | 12 namespace chromeos { |
9 | 13 |
10 namespace rounded_view { | 14 namespace rounded_view { |
11 | 15 |
12 // Corner radius of the RoundedView. | 16 // Corner radius of the RoundedView. |
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
117 view_rect.fTop -= kDelta; | 121 view_rect.fTop -= kDelta; |
118 view_rect.offset(rounded_view::kStrokeWidth - kDelta, | 122 view_rect.offset(rounded_view::kStrokeWidth - kDelta, |
119 rounded_view::kStrokeWidth - kDelta); | 123 rounded_view::kStrokeWidth - kDelta); |
120 paint.setColor(rounded_view::kOuterFrameColor); | 124 paint.setColor(rounded_view::kOuterFrameColor); |
121 canvas->AsCanvasSkia()->drawRoundRect(view_rect, rounded_view::kCornerRadius, | 125 canvas->AsCanvasSkia()->drawRoundRect(view_rect, rounded_view::kCornerRadius, |
122 rounded_view::kCornerRadius, paint); | 126 rounded_view::kCornerRadius, paint); |
123 } | 127 } |
124 | 128 |
125 } | 129 } |
126 | 130 |
127 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_VIEW_FILTER_H_ | 131 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_ROUNDED_VIEW_H_ |
OLD | NEW |