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

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: Rebase gyp file for ui extraction Created 8 years, 3 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
« no previous file with comments | « chrome/common/chrome_switches.cc ('k') | ui/app_list/app_list_view.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 af785e2e9593d5bb2c7917b02593096a116817a2..bfd134c84f9d62b3215ac24478a8d1e027f5bb4b 100644
--- a/ui/app_list/app_list_bubble_border.cc
+++ b/ui/app_list/app_list_bubble_border.cc
@@ -36,6 +36,11 @@ AppListBubbleBorder::~AppListBubbleBorder() {
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 +48,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 +60,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(kContentsBackgroundColor);
canvas->DrawRect(contents_rect, paint);
« no previous file with comments | « chrome/common/chrome_switches.cc ('k') | ui/app_list/app_list_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698