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

Unified Diff: chrome/browser/ui/views/location_bar/icon_label_bubble_view.cc

Issue 6685069: Disambiguate OnMouseCaptureLost from OnMouseReleased, etc. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Refinements, etc. Created 9 years, 9 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: chrome/browser/ui/views/location_bar/icon_label_bubble_view.cc
diff --git a/chrome/browser/ui/views/location_bar/icon_label_bubble_view.cc b/chrome/browser/ui/views/location_bar/icon_label_bubble_view.cc
index 7640e96df3ebdc6cf5f6230f2c6fff8d37dd281e..f48eb79e1c889a4a3ba577cc3f27bc83a9bd94ce 100644
--- a/chrome/browser/ui/views/location_bar/icon_label_bubble_view.cc
+++ b/chrome/browser/ui/views/location_bar/icon_label_bubble_view.cc
@@ -46,10 +46,6 @@ void IconLabelBubbleView::SetImage(const SkBitmap& bitmap) {
image_->SetImage(bitmap);
}
-void IconLabelBubbleView::OnPaint(gfx::Canvas* canvas) {
- background_painter_.Paint(width(), height(), canvas);
-}
-
gfx::Size IconLabelBubbleView::GetPreferredSize() {
gfx::Size size(GetNonLabelSize());
size.Enlarge(label_->GetPreferredSize().width(), 0);
@@ -73,6 +69,10 @@ gfx::Size IconLabelBubbleView::GetNonLabelSize() {
return gfx::Size(GetNonLabelWidth(), background_painter_.height());
}
+void IconLabelBubbleView::OnPaint(gfx::Canvas* canvas) {
+ background_painter_.Paint(width(), height(), canvas);
+}
+
int IconLabelBubbleView::GetNonLabelWidth() {
return kBubbleOuterPadding + image_->GetPreferredSize().width() +
item_padding_ + kBubbleOuterPadding;

Powered by Google App Engine
This is Rietveld 408576698