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 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
100 | 104 |
101 // Draw outer frame. | 105 // Draw outer frame. |
102 view_rect.inset(-rounded_view::kStrokeWidth, -rounded_view::kStrokeWidth); | 106 view_rect.inset(-rounded_view::kStrokeWidth, -rounded_view::kStrokeWidth); |
103 paint.setColor(rounded_view::kOuterFrameColor); | 107 paint.setColor(rounded_view::kOuterFrameColor); |
104 canvas->AsCanvasSkia()->drawRoundRect(view_rect, rounded_view::kCornerRadius, | 108 canvas->AsCanvasSkia()->drawRoundRect(view_rect, rounded_view::kCornerRadius, |
105 rounded_view::kCornerRadius, paint); | 109 rounded_view::kCornerRadius, paint); |
106 } | 110 } |
107 | 111 |
108 } | 112 } |
109 | 113 |
110 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_VIEW_FILTER_H_ | 114 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_ROUNDED_VIEW_H_ |
OLD | NEW |