summaryrefslogtreecommitdiffstats
path: root/ui/views/bubble
diff options
context:
space:
mode:
authorskuhne@chromium.org <skuhne@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-06-16 03:16:56 +0000
committerskuhne@chromium.org <skuhne@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-06-16 03:16:56 +0000
commitd206c6efb0a641c04650c04593974a8e6d9de721 (patch)
treeb0a60ee06d249d74a4aeb50606e8b0e818b4faee /ui/views/bubble
parent415aba8c7634ecc823eefa97272c04b31a10d481 (diff)
downloadchromium_src-d206c6efb0a641c04650c04593974a8e6d9de721.zip
chromium_src-d206c6efb0a641c04650c04593974a8e6d9de721.tar.gz
chromium_src-d206c6efb0a641c04650c04593974a8e6d9de721.tar.bz2
Turn off the tip for the sytem tray menu and the app list (ChromeOS).
BUG=245016 TEST=visual Review URL: https://chromiumcodereview.appspot.com/16909006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@206628 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ui/views/bubble')
-rw-r--r--ui/views/bubble/bubble_delegate.cc6
-rw-r--r--ui/views/bubble/bubble_delegate.h3
2 files changed, 9 insertions, 0 deletions
diff --git a/ui/views/bubble/bubble_delegate.cc b/ui/views/bubble/bubble_delegate.cc
index a713e43..e42329c 100644
--- a/ui/views/bubble/bubble_delegate.cc
+++ b/ui/views/bubble/bubble_delegate.cc
@@ -277,6 +277,12 @@ void BubbleDelegateView::SetAlignment(BubbleBorder::BubbleAlignment alignment) {
SizeToContents();
}
+void BubbleDelegateView::SetArrowPaintType(
+ BubbleBorder::ArrowPaintType paint_type) {
+ GetBubbleFrameView()->bubble_border()->set_paint_arrow(paint_type);
+ SizeToContents();
+}
+
bool BubbleDelegateView::AcceleratorPressed(
const ui::Accelerator& accelerator) {
if (!close_on_esc() || accelerator.key_code() != ui::VKEY_ESCAPE)
diff --git a/ui/views/bubble/bubble_delegate.h b/ui/views/bubble/bubble_delegate.h
index 340cad7..be35b79 100644
--- a/ui/views/bubble/bubble_delegate.h
+++ b/ui/views/bubble/bubble_delegate.h
@@ -113,6 +113,9 @@ class VIEWS_EXPORT BubbleDelegateView : public WidgetDelegateView,
// after calling CreateBubble.
void SetAlignment(BubbleBorder::BubbleAlignment alignment);
+ // Sets the bubble arrow paint type.
+ void SetArrowPaintType(BubbleBorder::ArrowPaintType paint_type);
+
protected:
// Get bubble bounds from the anchor rect and client view's preferred size.
virtual gfx::Rect GetBubbleBounds();