| OLD | NEW |
| 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/frame/caption_buttons/frame_caption_button.h" | 5 #include "ash/common/frame/caption_buttons/frame_caption_button.h" |
| 6 | 6 |
| 7 #include "ui/gfx/animation/slide_animation.h" | 7 #include "ui/gfx/animation/slide_animation.h" |
| 8 #include "ui/gfx/animation/throb_animation.h" | 8 #include "ui/gfx/animation/throb_animation.h" |
| 9 #include "ui/gfx/canvas.h" | 9 #include "ui/gfx/canvas.h" |
| 10 #include "ui/gfx/color_palette.h" | 10 #include "ui/gfx/color_palette.h" |
| 11 #include "ui/gfx/paint_vector_icon.h" | 11 #include "ui/gfx/paint_vector_icon.h" |
| 12 #include "ui/gfx/vector_icons_public.h" | 12 #include "ui/gfx/vector_icons_public.h" |
| 13 | 13 |
| 14 namespace ash { | 14 namespace ash { |
| 15 | 15 |
| (...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 180 alpha *= inactive_alpha; | 180 alpha *= inactive_alpha; |
| 181 } | 181 } |
| 182 | 182 |
| 183 SkPaint paint; | 183 SkPaint paint; |
| 184 paint.setAlpha(alpha); | 184 paint.setAlpha(alpha); |
| 185 canvas->DrawImageInt(to_center, (width() - to_center.width()) / 2, | 185 canvas->DrawImageInt(to_center, (width() - to_center.width()) / 2, |
| 186 (height() - to_center.height()) / 2, paint); | 186 (height() - to_center.height()) / 2, paint); |
| 187 } | 187 } |
| 188 | 188 |
| 189 } // namespace ash | 189 } // namespace ash |
| OLD | NEW |