| 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/app_list_bubble_border.h" | 5 #include "ui/app_list/app_list_bubble_border.h" |
| 6 | 6 |
| 7 #include "third_party/skia/include/core/SkPath.h" | 7 #include "third_party/skia/include/core/SkPath.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/effects/SkGradientShader.h" | 9 #include "third_party/skia/include/effects/SkGradientShader.h" |
| 10 #include "ui/gfx/canvas.h" | 10 #include "ui/gfx/canvas.h" |
| 11 #include "ui/gfx/path.h" | 11 #include "ui/gfx/path.h" |
| 12 #include "ui/gfx/skia_util.h" | 12 #include "ui/gfx/skia_util.h" |
| 13 | 13 |
| 14 namespace { | 14 namespace { |
| 15 | 15 |
| 16 const SkColor kSearchBoxBackground = SK_ColorWHITE; | 16 const SkColor kSearchBoxBackground = SK_ColorWHITE; |
| 17 const SkColor kContentsBackground = SkColorSetRGB(0xFC, 0xFC, 0xFC); | 17 const SkColor kContentsBackground = SkColorSetRGB(0xF5, 0xF5, 0xF5); |
| 18 | 18 |
| 19 // Colors and sizes of top separator between searchbox and grid view. | 19 // Colors and sizes of top separator between searchbox and grid view. |
| 20 const SkColor kTopSeparatorColor = SkColorSetRGB(0xF0, 0xF0, 0xF0); | 20 const SkColor kTopSeparatorColor = SkColorSetRGB(0xF0, 0xF0, 0xF0); |
| 21 const int kTopSeparatorSize = 1; | 21 const int kTopSeparatorSize = 1; |
| 22 | 22 |
| 23 } // namespace | 23 } // namespace |
| 24 | 24 |
| 25 namespace app_list { | 25 namespace app_list { |
| 26 | 26 |
| 27 AppListBubbleBorder::AppListBubbleBorder(views::View* app_list_view, | 27 AppListBubbleBorder::AppListBubbleBorder(views::View* app_list_view, |
| (...skipping 28 matching lines...) Expand all Loading... |
| 56 gfx::Rect contents_rect(bounds.x(), | 56 gfx::Rect contents_rect(bounds.x(), |
| 57 seperator_rect.bottom(), | 57 seperator_rect.bottom(), |
| 58 bounds.width(), | 58 bounds.width(), |
| 59 bounds.bottom() - seperator_rect.bottom()); | 59 bounds.bottom() - seperator_rect.bottom()); |
| 60 | 60 |
| 61 paint.setColor(kContentsBackground); | 61 paint.setColor(kContentsBackground); |
| 62 canvas->DrawRect(contents_rect, paint); | 62 canvas->DrawRect(contents_rect, paint); |
| 63 } | 63 } |
| 64 | 64 |
| 65 } // namespace app_list | 65 } // namespace app_list |
| OLD | NEW |