| Index: chrome/browser/ui/views/dropdown_bar_view.cc
|
| diff --git a/chrome/browser/ui/views/dropdown_bar_view.cc b/chrome/browser/ui/views/dropdown_bar_view.cc
|
| index 7f1fbb2533fd21e3f2e64ad02f9e7c952e0f556e..c86c0e8e14524e189ef0242c86d984b7e9923e65 100644
|
| --- a/chrome/browser/ui/views/dropdown_bar_view.cc
|
| +++ b/chrome/browser/ui/views/dropdown_bar_view.cc
|
| @@ -20,11 +20,6 @@
|
|
|
| namespace {
|
|
|
| -// When we are animating, we draw only the top part of the left and right
|
| -// edges to give the illusion that the find dialog is attached to the
|
| -// window during this animation; this is the height of the items we draw.
|
| -const int kAnimatingEdgeHeight = 5;
|
| -
|
| // Background to paint toolbar background with rounded corners.
|
| class DropdownBackground : public views::Background {
|
| public:
|
| @@ -87,41 +82,12 @@ void DropdownBackground::Paint(gfx::Canvas* canvas, views::View* view) const {
|
|
|
| } // namespace
|
|
|
| -DropdownBarView::DropdownBarView(DropdownBarHost* host)
|
| - : host_(host),
|
| - animation_offset_(0) {
|
| -}
|
| +DropdownBarView::DropdownBarView(DropdownBarHost* host) : host_(host) {}
|
|
|
| DropdownBarView::~DropdownBarView() {
|
| }
|
|
|
| ////////////////////////////////////////////////////////////////////////////////
|
| -// DropDownBarView, public:
|
| -
|
| -void DropdownBarView::SetAnimationOffset(int offset) {
|
| - animation_offset_ = offset;
|
| - set_clip_insets(gfx::Insets(animation_offset_, 0, 0, 0));
|
| -}
|
| -
|
| -// DropDownBarView, views::View overrides:
|
| -void DropdownBarView::OnPaint(gfx::Canvas* canvas) {
|
| - OnPaintBackground(canvas);
|
| - OnPaintBorder(canvas);
|
| -
|
| - if (animation_offset() > 0) {
|
| - gfx::Canvas animating_edges(
|
| - gfx::Size(bounds().width(), kAnimatingEdgeHeight),
|
| - canvas->image_scale(),
|
| - false);
|
| - canvas->Translate(bounds().OffsetFromOrigin());
|
| - OnPaintBackground(&animating_edges);
|
| - OnPaintBorder(&animating_edges);
|
| - canvas->DrawImageInt(gfx::ImageSkia(animating_edges.ExtractImageRep()),
|
| - bounds().x(), animation_offset());
|
| - }
|
| -}
|
| -
|
| -////////////////////////////////////////////////////////////////////////////////
|
| // DropDownBarView, protected:
|
|
|
| void DropdownBarView::SetBackground(const gfx::ImageSkia* left_alpha_mask,
|
|
|