Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1274)

Side by Side Diff: ui/app_list/views/app_list_background.cc

Issue 823133004: Cleanup: Update the path to gfx rect headers. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rect_f.h Created 5 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « ui/accessibility/ax_node_data.h ('k') | ui/app_list/views/app_list_folder_view.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « ui/accessibility/ax_node_data.h ('k') | ui/app_list/views/app_list_folder_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698