#include "ui/app_list/views/app_list_background.h"
#include "base/command_line.h"
-#include "grit/ui_resources.h"
#include "third_party/skia/include/core/SkPaint.h"
#include "third_party/skia/include/core/SkPath.h"
#include "ui/app_list/app_list_constants.h"
#include "ui/app_list/views/app_list_main_view.h"
#include "ui/app_list/views/contents_view.h"
#include "ui/app_list/views/search_box_view.h"
-#include "ui/base/resource/resource_bundle.h"
#include "ui/gfx/canvas.h"
#include "ui/gfx/rect.h"
#include "ui/gfx/skia_util.h"
const gfx::Rect contents_view_view_bounds =
contents_view->ConvertRectToWidget(contents_view->GetLocalBounds());
gfx::Rect separator_rect(contents_rect);
- separator_rect.set_y(contents_view_view_bounds.bottom());
+ // Extra kContentsSwitcherSeparatorHeight pixels so the launcher page
+ // indicator overlays the separator rect.
+ separator_rect.set_y(contents_view_view_bounds.bottom() +
+ kContentsSwitcherSeparatorHeight);
separator_rect.set_height(kBottomSeparatorSize);
canvas->FillRect(separator_rect, kBottomSeparatorColor);
int contents_switcher_top = separator_rect.bottom();
paint.setColor(kContentsSwitcherBackgroundColor);
canvas->DrawRect(contents_switcher_rect, paint);
}
-
- // Draw a banner in the corner of the app list if it is the experimental app
- // list.
- const gfx::ImageSkia& experimental_icon =
- *ui::ResourceBundle::GetSharedInstance().GetImageSkiaNamed(
- IDR_APP_LIST_EXPERIMENTAL_ICON);
- canvas->DrawImageInt(experimental_icon,
- contents_rect.right() - experimental_icon.width(),
- contents_rect.bottom() - experimental_icon.height());
}
canvas->Restore();