diff options
author | dewittj@chromium.org <dewittj@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-02-25 21:48:11 +0000 |
---|---|---|
committer | dewittj@chromium.org <dewittj@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-02-25 21:48:11 +0000 |
commit | cde5087b2087938bba3e9f0752d7524fe82489d2 (patch) | |
tree | 9100c8b8f6e3b2e0a669f1375e54dfd579afc508 /chrome/browser | |
parent | f1b1fe087711f52ace6be3204e6bfd63172717c0 (diff) | |
download | chromium_src-cde5087b2087938bba3e9f0752d7524fe82489d2.zip chromium_src-cde5087b2087938bba3e9f0752d7524fe82489d2.tar.gz chromium_src-cde5087b2087938bba3e9f0752d7524fe82489d2.tar.bz2 |
More flexibility in BubbleBorder arrow rendering.
Currently causing the arrow not to be painted leaves a
margin of several pixels on the side the arrow would be
painted, causing issues when laying out bubbles next to an
anchor rectangle such as the edge of the screen.
This patch changes the API so that you can choose whether
the arrow is painted normally, there is space left for the
arrow but it is not painted, or there is no space left for
the arrow and it is not painted.
r=msw@chromium.org,sadrul@chromium.org,ben@chromium.org
BUG=NONE
Review URL: https://chromiumcodereview.appspot.com/12310022
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@184487 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser')
-rw-r--r-- | chrome/browser/ui/views/message_center/notification_bubble_wrapper_win.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/chrome/browser/ui/views/message_center/notification_bubble_wrapper_win.cc b/chrome/browser/ui/views/message_center/notification_bubble_wrapper_win.cc index a4627fe..da1849f 100644 --- a/chrome/browser/ui/views/message_center/notification_bubble_wrapper_win.cc +++ b/chrome/browser/ui/views/message_center/notification_bubble_wrapper_win.cc @@ -41,7 +41,7 @@ NotificationBubbleWrapperWin::NotificationBubbleWrapperWin( bubble_->GetInitParams(anchor_alignment); init_params.close_on_deactivate = false; init_params.arrow_alignment = views::BubbleBorder::ALIGN_EDGE_TO_ANCHOR_EDGE; - init_params.hide_arrow = true; + init_params.arrow_paint_type = views::BubbleBorder::PAINT_NONE; // TODO(dewittj): Show big shadow without blocking clicks. init_params.shadow = views::BubbleBorder::NO_SHADOW; |