OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 "chrome/browser/chromeos/login/helper.h" | 5 #include "chrome/browser/chromeos/login/helper.h" |
6 | 6 |
7 #include "base/file_util.h" | 7 #include "base/file_util.h" |
8 #include "chrome/browser/chromeos/cros/network_library.h" | 8 #include "chrome/browser/chromeos/cros/network_library.h" |
9 #include "chrome/browser/google/google_util.h" | 9 #include "chrome/browser/google/google_util.h" |
10 #include "googleurl/src/gurl.h" | 10 #include "googleurl/src/gurl.h" |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
55 SkShader* s = SkGradientShader::CreateRadial( | 55 SkShader* s = SkGradientShader::CreateRadial( |
56 SkPoint::Make(SkIntToScalar(w / 2), SkIntToScalar(h / 2)), | 56 SkPoint::Make(SkIntToScalar(w / 2), SkIntToScalar(h / 2)), |
57 SkIntToScalar(w / 2), | 57 SkIntToScalar(w / 2), |
58 colors, | 58 colors, |
59 NULL, | 59 NULL, |
60 2, | 60 2, |
61 SkShader::kClamp_TileMode, | 61 SkShader::kClamp_TileMode, |
62 NULL); | 62 NULL); |
63 paint.setShader(s); | 63 paint.setShader(s); |
64 s->unref(); | 64 s->unref(); |
65 canvas->AsCanvasSkia()->drawRect(rect, paint); | 65 canvas->GetSkCanvas()->drawRect(rect, paint); |
66 } | 66 } |
67 | 67 |
68 private: | 68 private: |
69 DISALLOW_COPY_AND_ASSIGN(BackgroundPainter); | 69 DISALLOW_COPY_AND_ASSIGN(BackgroundPainter); |
70 }; | 70 }; |
71 | 71 |
72 } // namespace | 72 } // namespace |
73 | 73 |
74 ThrobberHostView::ThrobberHostView() | 74 ThrobberHostView::ThrobberHostView() |
75 : host_view_(this), | 75 : host_view_(this), |
(...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
221 gfx::Size preferred_size = NativeTextButton::GetPreferredSize(); | 221 gfx::Size preferred_size = NativeTextButton::GetPreferredSize(); |
222 // Set minimal width. | 222 // Set minimal width. |
223 if (preferred_size.width() < kButtonMinWidth) | 223 if (preferred_size.width() < kButtonMinWidth) |
224 preferred_size.set_width(kButtonMinWidth); | 224 preferred_size.set_width(kButtonMinWidth); |
225 return preferred_size; | 225 return preferred_size; |
226 } | 226 } |
227 | 227 |
228 } // namespace login | 228 } // namespace login |
229 | 229 |
230 } // namespace chromeos | 230 } // namespace chromeos |
OLD | NEW |