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

Unified Diff: ui/app_list/app_list_bubble_border.cc

Issue 10900018: Introduce App Launcher for Windows. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: First round of feedback Created 8 years, 4 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 side-by-side diff with in-line comments
Download patch
Index: ui/app_list/app_list_bubble_border.cc
diff --git a/ui/app_list/app_list_bubble_border.cc b/ui/app_list/app_list_bubble_border.cc
index 5575f84980f064b41d07fd12dfceb4cabff3e1d2..1427daa2bcfa9648f6ff2b7b45d2e47009461859 100644
--- a/ui/app_list/app_list_bubble_border.cc
+++ b/ui/app_list/app_list_bubble_border.cc
@@ -34,8 +34,18 @@ AppListBubbleBorder::AppListBubbleBorder(views::View* app_list_view,
AppListBubbleBorder::~AppListBubbleBorder() {
}
+// static
+SkColor AppListBubbleBorder::ContentsBackgroundColor() {
+ return kContentsBackground;
+}
+
void AppListBubbleBorder::PaintBackground(gfx::Canvas* canvas,
const gfx::Rect& bounds) const {
+ SkPaint paint;
+ paint.setStyle(SkPaint::kFill_Style);
+
+// TODO(benwells): Get these details painting on Windows.
+#if !defined(OS_WIN)
const gfx::Rect search_box_view_bounds =
app_list_view_->ConvertRectToWidget(search_box_view_->bounds());
gfx::Rect search_box_rect(bounds.x(),
@@ -43,8 +53,6 @@ void AppListBubbleBorder::PaintBackground(gfx::Canvas* canvas,
bounds.width(),
search_box_view_bounds.bottom() - bounds.y());
- SkPaint paint;
- paint.setStyle(SkPaint::kFill_Style);
paint.setColor(kSearchBoxBackground);
canvas->DrawRect(search_box_rect, paint);
@@ -57,6 +65,9 @@ void AppListBubbleBorder::PaintBackground(gfx::Canvas* canvas,
seperator_rect.bottom(),
bounds.width(),
bounds.bottom() - seperator_rect.bottom());
+#else
+ gfx::Rect contents_rect(bounds);
+#endif
paint.setColor(kContentsBackground);
canvas->DrawRect(contents_rect, paint);

Powered by Google App Engine
This is Rietveld 408576698