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

Unified Diff: chrome/browser/views/tabs/tab_overview_container.cc

Issue 126185: Improved tab overview animations with better animation and wiring to... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 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
Index: chrome/browser/views/tabs/tab_overview_container.cc
===================================================================
--- chrome/browser/views/tabs/tab_overview_container.cc (revision 18480)
+++ chrome/browser/views/tabs/tab_overview_container.cc (working copy)
@@ -34,11 +34,12 @@
max_size.height() - kVerticalPadding * 2 - kArrowHeight));
}
-void TabOverviewContainer::UpdateWidgetShape(int width, int height) {
+void TabOverviewContainer::UpdateWidgetShape(int horizontal_center,
+ int width, int height) {
int bottom_y = height - kArrowHeight;
int right_edge = width - 1;
int center = width / 2;
- // The points in alternating x,y pairs.
+ // The points, in alternating x,y pairs.
int points[] = {
kEdgeInset, 0,
right_edge - kEdgeInset, 0,

Powered by Google App Engine
This is Rietveld 408576698