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

Unified Diff: chrome/browser/ui/views/toolbar/browser_actions_container.cc

Issue 2897533003: Change default ink drop center points to center of contents bounds (Closed)
Patch Set: fix compile Created 3 years, 7 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 | « chrome/browser/ui/views/toolbar/app_menu.cc ('k') | chrome/browser/ui/views/toolbar/toolbar_button.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/views/toolbar/browser_actions_container.cc
diff --git a/chrome/browser/ui/views/toolbar/browser_actions_container.cc b/chrome/browser/ui/views/toolbar/browser_actions_container.cc
index f2f57fde20840666b257fb63c01a9f71803c124d..d707c3b8f6388bd414cd4b4f4bd09ec4076421d5 100644
--- a/chrome/browser/ui/views/toolbar/browser_actions_container.cc
+++ b/chrome/browser/ui/views/toolbar/browser_actions_container.cc
@@ -630,11 +630,8 @@ void BrowserActionsContainer::OnPaint(gfx::Canvas* canvas) {
((space_before_drop_icon + kDropIndicatorWidth) / 2);
const int row_height = ToolbarActionsBar::IconHeight();
const int drop_indicator_y = row_height * drop_position_->row;
- gfx::Rect indicator_bounds(drop_indicator_x,
- drop_indicator_y,
- kDropIndicatorWidth,
- row_height);
- indicator_bounds.set_x(GetMirroredXForRect(indicator_bounds));
+ gfx::Rect indicator_bounds = GetMirroredRect(gfx::Rect(
+ drop_indicator_x, drop_indicator_y, kDropIndicatorWidth, row_height));
// Color of the drop indicator.
static const SkColor kDropIndicatorColor = SK_ColorBLACK;
« no previous file with comments | « chrome/browser/ui/views/toolbar/app_menu.cc ('k') | chrome/browser/ui/views/toolbar/toolbar_button.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698