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

Unified Diff: ui/views/bubble/bubble_delegate.h

Issue 15329005: Adding new general bubble error message consisting of icon, message and caption. Using this message… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 7 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: ui/views/bubble/bubble_delegate.h
diff --git a/ui/views/bubble/bubble_delegate.h b/ui/views/bubble/bubble_delegate.h
index ab76fa59b81d67ae0273881c2475d73a364fd683..28e8917f898d72290c7bd5e230bbcf291a9f57cc 100644
--- a/ui/views/bubble/bubble_delegate.h
+++ b/ui/views/bubble/bubble_delegate.h
@@ -113,6 +113,10 @@ class VIEWS_EXPORT BubbleDelegateView : public WidgetDelegateView,
// after calling CreateBubble.
void SetAlignment(BubbleBorder::BubbleAlignment alignment);
+ // Offset the arrow location this many pixels from the corner. Does only work
+ // with arrow locations which do not use CENTER.
+ void SetArrowOffset(int offset);
+
protected:
// Get bubble bounds from the anchor rect and client view's preferred size.
virtual gfx::Rect GetBubbleBounds();
@@ -169,6 +173,9 @@ class VIEWS_EXPORT BubbleDelegateView : public WidgetDelegateView,
// The arrow's location on the bubble.
BubbleBorder::Arrow arrow_;
+ // The offset of the arrow from the corner of the bubble.
+ int arrow_offset_;
+
// Bubble border shadow to use.
BubbleBorder::Shadow shadow_;

Powered by Google App Engine
This is Rietveld 408576698