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

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

Issue 10905311: Consolidate bubble border code. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: remove USE_AURA ifdef for kBigShadowImages and kSmalleShadowImages Created 8 years, 3 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
« no previous file with comments | « ui/views/bubble/bubble_border_unittest.cc ('k') | ui/views/bubble/bubble_delegate.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/bubble/bubble_delegate.h
diff --git a/ui/views/bubble/bubble_delegate.h b/ui/views/bubble/bubble_delegate.h
index dd29da79bdfce68f26f1b407353a6a101a587dd8..247202daca67faf3ee6c0548c89f64ba55168aa3 100644
--- a/ui/views/bubble/bubble_delegate.h
+++ b/ui/views/bubble/bubble_delegate.h
@@ -67,6 +67,9 @@ class VIEWS_EXPORT BubbleDelegateView : public WidgetDelegateView,
arrow_location_ = arrow_location;
}
+ BubbleBorder::Shadow shadow() const { return shadow_; }
+ void set_shadow(BubbleBorder::Shadow shadow) { shadow_ = shadow; }
+
SkColor color() const { return color_; }
void set_color(SkColor color) { color_ = color; }
@@ -87,10 +90,8 @@ class VIEWS_EXPORT BubbleDelegateView : public WidgetDelegateView,
bool accept_events() const { return accept_events_; }
void set_accept_events(bool accept_events) { accept_events_ = accept_events; }
- bool try_mirroring_arrow() const { return try_mirroring_arrow_; }
- void set_try_mirroring_arrow(bool try_mirroring_arrow) {
- try_mirroring_arrow_ = try_mirroring_arrow;
- }
+ bool adjust_if_offscreen() const { return adjust_if_offscreen_; }
+ void set_adjust_if_offscreen(bool adjust) { adjust_if_offscreen_ = adjust; }
// Get the arrow's anchor rect in screen space.
virtual gfx::Rect GetAnchorRect();
@@ -173,6 +174,9 @@ class VIEWS_EXPORT BubbleDelegateView : public WidgetDelegateView,
// The arrow's location on the bubble.
BubbleBorder::ArrowLocation arrow_location_;
+ // Bubble border shadow to use.
+ BubbleBorder::Shadow shadow_;
+
// The background color of the bubble.
SkColor color_;
@@ -195,9 +199,9 @@ class VIEWS_EXPORT BubbleDelegateView : public WidgetDelegateView,
// Specifies whether the popup accepts events or lets them pass through.
bool accept_events_;
- // If true (defaults to true), the arrow may be mirrored to fit the
- // bubble on screen better.
- bool try_mirroring_arrow_;
+ // If true (defaults to true), the arrow may be mirrored and moved to fit the
+ // bubble on screen better. It would be a no-op if the bubble has no arrow.
+ bool adjust_if_offscreen_;
// Parent native window of the bubble.
gfx::NativeView parent_window_;
« no previous file with comments | « ui/views/bubble/bubble_border_unittest.cc ('k') | ui/views/bubble/bubble_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698