| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 "ui/app_list/views/app_list_background.h" | 5 #include "ui/app_list/views/app_list_background.h" |
| 6 | 6 |
| 7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
| 8 #include "third_party/skia/include/core/SkPaint.h" | 8 #include "third_party/skia/include/core/SkPaint.h" |
| 9 #include "third_party/skia/include/core/SkPath.h" | 9 #include "third_party/skia/include/core/SkPath.h" |
| 10 #include "ui/app_list/app_list_constants.h" | 10 #include "ui/app_list/app_list_constants.h" |
| 11 #include "ui/app_list/app_list_switches.h" | 11 #include "ui/app_list/app_list_switches.h" |
| 12 #include "ui/app_list/views/app_list_main_view.h" | 12 #include "ui/app_list/views/app_list_main_view.h" |
| 13 #include "ui/app_list/views/contents_view.h" | 13 #include "ui/app_list/views/contents_view.h" |
| 14 #include "ui/app_list/views/search_box_view.h" | 14 #include "ui/app_list/views/search_box_view.h" |
| 15 #include "ui/gfx/canvas.h" | 15 #include "ui/gfx/canvas.h" |
| 16 #include "ui/gfx/rect.h" | 16 #include "ui/gfx/geometry/rect.h" |
| 17 #include "ui/gfx/skia_util.h" | 17 #include "ui/gfx/skia_util.h" |
| 18 #include "ui/views/view.h" | 18 #include "ui/views/view.h" |
| 19 | 19 |
| 20 namespace app_list { | 20 namespace app_list { |
| 21 | 21 |
| 22 AppListBackground::AppListBackground(int corner_radius, | 22 AppListBackground::AppListBackground(int corner_radius, |
| 23 AppListMainView* main_view) | 23 AppListMainView* main_view) |
| 24 : corner_radius_(corner_radius), | 24 : corner_radius_(corner_radius), |
| 25 main_view_(main_view) { | 25 main_view_(main_view) { |
| 26 } | 26 } |
| (...skipping 24 matching lines...) Expand all Loading... |
| 51 bounds.bottom() - contents_top); | 51 bounds.bottom() - contents_top); |
| 52 | 52 |
| 53 paint.setColor(kContentsBackgroundColor); | 53 paint.setColor(kContentsBackgroundColor); |
| 54 canvas->DrawRect(contents_rect, paint); | 54 canvas->DrawRect(contents_rect, paint); |
| 55 | 55 |
| 56 if (corner_radius_ > 0) | 56 if (corner_radius_ > 0) |
| 57 canvas->Restore(); | 57 canvas->Restore(); |
| 58 } | 58 } |
| 59 | 59 |
| 60 } // namespace app_list | 60 } // namespace app_list |
| OLD | NEW |