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

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

Issue 1761443003: [MD] simplify and unify some ink drop center calculations (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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
Index: chrome/browser/ui/views/toolbar/app_menu_button.cc
diff --git a/chrome/browser/ui/views/toolbar/app_menu_button.cc b/chrome/browser/ui/views/toolbar/app_menu_button.cc
index 12c0e38dfdc7ac277baa9d7eda618c0c97d26bf7..473d42315b8398727a4c081d7119eada8865fe31 100644
--- a/chrome/browser/ui/views/toolbar/app_menu_button.cc
+++ b/chrome/browser/ui/views/toolbar/app_menu_button.cc
@@ -188,17 +188,6 @@ void AppMenuButton::SetTrailingMargin(int margin) {
InvalidateLayout();
}
-gfx::Point AppMenuButton::GetInkDropCenter() const {
- // ToolbarView extends the bounds of the app button to the right in maximized
- // mode. So instead of using the center point of local bounds, we use the
- // center point (adjusted for RTL layouts) of the preferred size, which
- // doesn't change in maximized mode.
- const int visible_width = GetPreferredSize().width();
- return gfx::Point(
- (GetMirroredXWithWidthInView(0, visible_width) + visible_width) / 2,
varkha 2016/03/03 06:11:22 I looked at it some more and I understand what hap
- height() / 2);
-}
-
const char* AppMenuButton::GetClassName() const {
return "AppMenuButton";
}

Powered by Google App Engine
This is Rietveld 408576698