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/base/resource/resource_bundle.h" | |
16 #include "ui/gfx/canvas.h" | 15 #include "ui/gfx/canvas.h" |
17 #include "ui/gfx/rect.h" | 16 #include "ui/gfx/rect.h" |
18 #include "ui/gfx/skia_util.h" | 17 #include "ui/gfx/skia_util.h" |
19 #include "ui/views/view.h" | 18 #include "ui/views/view.h" |
20 | 19 |
21 namespace { | 20 namespace { |
22 | 21 |
23 // Size of top separator between searchbox and grid view. | 22 // Size of top separator between searchbox and grid view. |
24 const int kTopSeparatorSize = 1; | 23 const int kTopSeparatorSize = 1; |
25 | 24 |
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
100 bounds.bottom() - contents_switcher_top); | 99 bounds.bottom() - contents_switcher_top); |
101 paint.setColor(kContentsSwitcherBackgroundColor); | 100 paint.setColor(kContentsSwitcherBackgroundColor); |
102 canvas->DrawRect(contents_switcher_rect, paint); | 101 canvas->DrawRect(contents_switcher_rect, paint); |
103 } | 102 } |
104 } | 103 } |
105 | 104 |
106 canvas->Restore(); | 105 canvas->Restore(); |
107 } | 106 } |
108 | 107 |
109 } // namespace app_list | 108 } // namespace app_list |
OLD | NEW |