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

Side by Side Diff: chrome/browser/views/tabs/tab.cc

Issue 115836: Fix erroneous sign when drawing path for right endcap of tabs, causing them t... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 11 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/views/tabs/tab.h" 5 #include "chrome/browser/views/tabs/tab.h"
6 6
7 #include "app/gfx/canvas.h" 7 #include "app/gfx/canvas.h"
8 #include "app/gfx/font.h" 8 #include "app/gfx/font.h"
9 #include "app/gfx/path.h" 9 #include "app/gfx/path.h"
10 #include "app/l10n_util.h" 10 #include "app/l10n_util.h"
(...skipping 254 matching lines...) Expand 10 before | Expand all | Expand 10 after
265 265
266 // Left end cap. 266 // Left end cap.
267 path->lineTo(kTabBottomCurveWidth, h - kTabBottomCurveWidth); 267 path->lineTo(kTabBottomCurveWidth, h - kTabBottomCurveWidth);
268 path->lineTo(kTabCapWidth - kTabTopCurveWidth, kTabTopCurveWidth); 268 path->lineTo(kTabCapWidth - kTabTopCurveWidth, kTabTopCurveWidth);
269 path->lineTo(kTabCapWidth, 0); 269 path->lineTo(kTabCapWidth, 0);
270 270
271 // Connect to the right cap. 271 // Connect to the right cap.
272 path->lineTo(w - kTabCapWidth, 0); 272 path->lineTo(w - kTabCapWidth, 0);
273 273
274 // Right end cap. 274 // Right end cap.
275 path->lineTo(w - kTabCapWidth - kTabTopCurveWidth, kTabTopCurveWidth); 275 path->lineTo(w - kTabCapWidth + kTabTopCurveWidth, kTabTopCurveWidth);
276 path->lineTo(w - kTabBottomCurveWidth, h - kTabBottomCurveWidth); 276 path->lineTo(w - kTabBottomCurveWidth, h - kTabBottomCurveWidth);
277 path->lineTo(w, h); 277 path->lineTo(w, h);
278 278
279 // Close out the path. 279 // Close out the path.
280 path->lineTo(0, h); 280 path->lineTo(0, h);
281 path->close(); 281 path->close();
282 } 282 }
283 283
284 void Tab::ContextMenuClosed() { 284 void Tab::ContextMenuClosed() {
285 delegate()->StopAllHighlighting(); 285 delegate()->StopAllHighlighting();
286 menu_controller_ = NULL; 286 menu_controller_ = NULL;
287 } 287 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698