Makes the extension resize gripper only visible when the mouse is over
it.

BUG=45750
TEST=see bug

Review URL: http://codereview.chromium.org/2800022

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@50515 0039d316-1c4b-4281-b951-d872f2087c98
 void ImageView::Paint(gfx::Canvas* canvas) {
   View::Paint(canvas);
 
  if (image_.empty())
    return;

   gfx::Rect image_bounds(GetImageBounds());
   if (image_bounds.IsEmpty())
     return;

  if (image_bounds.size() != gfx::Size(image_.width(), image_.height())) {
    image_.buildMipMap(false);
    SkPaint paint;
    paint.setFilterBitmap(true);
    canvas->DrawBitmapInt(image_, 0, 0, image_.width(), image_.height(),
        image_bounds.x(), image_bounds.y(), image_bounds.width(),
        image_bounds.height(), true, paint);
  } else {
    canvas->DrawBitmapInt(image_, image_bounds.x(), image_bounds.y());
  }
}

 void ImageView::Paint(gfx::Canvas* canvas) {
   View::Paint(canvas);
 
   gfx::Rect image_bounds(GetImageBounds());
   if (image_bounds.IsEmpty())
     return;

  if (image_bounds.size() != gfx::Size(image_.width(), image_.height())) {
    image_.buildMipMap(false);
    SkPaint paint;
    paint.setFilterBitmap(true);
    canvas->DrawBitmapInt(image_, 0, 0, image_.width(), image_.height(),
        image_bounds.x(), image_bounds.y(), image_bounds.width(),
        image_bounds.height(), true, paint);
  } else {
    canvas->DrawBitmapInt(image_, image_bounds.x(), image_bounds.y());
  }
}
