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

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

Issue 10834140: aura: Fix launcher tooltips: (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: patch Created 8 years, 4 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 a76a7274995654efbb39a7d6f378772a665c5069..13560189bbd8289ab12ae1192b8203d34921f5a5 100644
--- a/ui/views/bubble/bubble_delegate.h
+++ b/ui/views/bubble/bubble_delegate.h
@@ -72,6 +72,11 @@ class VIEWS_EXPORT BubbleDelegateView : public WidgetDelegateView,
const gfx::Insets& margins() const { return margins_; }
void set_margins(const gfx::Insets& margins) { margins_ = margins; }
+ void set_anchor_insets(const gfx::Insets& anchor_insets) {
msw 2012/08/03 20:42:00 nit: if you name the parameter |insets| it's a one
varunjain 2012/08/03 20:54:23 Done.
+ anchor_insets_ = anchor_insets;
+ }
+ const gfx::Insets& anchor_insets() const { return anchor_insets_; }
+
gfx::NativeView parent_window() const { return parent_window_; }
void set_parent_window(gfx::NativeView window) { parent_window_ = window; }
@@ -157,6 +162,9 @@ class VIEWS_EXPORT BubbleDelegateView : public WidgetDelegateView,
// The margins between the content and the inside of the border.
gfx::Insets margins_;
+ // Insets applied to the |anchor_view_| bounds.
+ gfx::Insets anchor_insets_;
+
// Original opacity of the bubble.
int original_opacity_;

Powered by Google App Engine
This is Rietveld 408576698