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

Unified Diff: ui/app_list/app_list_bubble_border.cc

Issue 10544009: ash/app_list: Make applist bubble edge touch launcher bar edge. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 6 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 | « ash/shell.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/app_list/app_list_bubble_border.cc
diff --git a/ui/app_list/app_list_bubble_border.cc b/ui/app_list/app_list_bubble_border.cc
index 7d9c9079afad4103f24d19cf0724b2d34e901edb..2eddeb06e13d42519db4b0c11ee2596334b693c1 100644
--- a/ui/app_list/app_list_bubble_border.cc
+++ b/ui/app_list/app_list_bubble_border.cc
@@ -295,7 +295,8 @@ gfx::Rect AppListBubbleBorder::GetBounds(
// Arrow at top.
return gfx::Rect(
gfx::Point(anchor_center_x - arrow_tip_x,
- position_relative_to.bottom() - shadow_padding.top()),
+ position_relative_to.bottom() - shadow_padding.top() -
+ kArrowHeight),
border_size);
} else if (arrow_location() == views::BubbleBorder::BOTTOM_LEFT ||
arrow_location() == views::BubbleBorder::BOTTOM_RIGHT) {
@@ -303,13 +304,14 @@ gfx::Rect AppListBubbleBorder::GetBounds(
return gfx::Rect(
gfx::Point(anchor_center_x - arrow_tip_x,
position_relative_to.y() - border_size.height() +
- shadow_padding.bottom()),
+ shadow_padding.bottom() + kArrowHeight),
border_size);
} else if (arrow_location() == views::BubbleBorder::LEFT_TOP ||
arrow_location() == views::BubbleBorder::LEFT_BOTTOM) {
// Arrow on left.
return gfx::Rect(
- gfx::Point(position_relative_to.right() - shadow_padding.left(),
+ gfx::Point(position_relative_to.right() - shadow_padding.left() -
+ kArrowHeight,
anchor_center_y - arrow_tip_y),
border_size);
} else if (arrow_location() == views::BubbleBorder::RIGHT_TOP ||
@@ -317,7 +319,7 @@ gfx::Rect AppListBubbleBorder::GetBounds(
// Arrow on right.
return gfx::Rect(
gfx::Point(position_relative_to.x() - border_size.width() +
- shadow_padding.right(),
+ shadow_padding.right() + kArrowHeight,
anchor_center_y - arrow_tip_y),
border_size);
}
« no previous file with comments | « ash/shell.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698