| OLD | NEW |
| 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 Loading... |
| 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 } |
| OLD | NEW |