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/l10n_util.h" |
7 #include "app/resource_bundle.h" | 8 #include "app/resource_bundle.h" |
8 #include "base/gfx/size.h" | 9 #include "base/gfx/size.h" |
9 #include "chrome/common/gfx/chrome_canvas.h" | 10 #include "chrome/common/gfx/chrome_canvas.h" |
10 #include "chrome/common/gfx/path.h" | 11 #include "chrome/common/gfx/path.h" |
11 #include "chrome/common/l10n_util.h" | |
12 #include "chrome/views/controls/menu/chrome_menu.h" | 12 #include "chrome/views/controls/menu/chrome_menu.h" |
13 #include "chrome/views/widget/tooltip_manager.h" | 13 #include "chrome/views/widget/tooltip_manager.h" |
14 #include "chrome/views/widget/widget.h" | 14 #include "chrome/views/widget/widget.h" |
15 #include "grit/generated_resources.h" | 15 #include "grit/generated_resources.h" |
16 | 16 |
17 const std::string Tab::kTabClassName = "browser/tabs/Tab"; | 17 const std::string Tab::kTabClassName = "browser/tabs/Tab"; |
18 | 18 |
19 static const SkScalar kTabCapWidth = 15; | 19 static const SkScalar kTabCapWidth = 15; |
20 static const SkScalar kTabTopCurveWidth = 4; | 20 static const SkScalar kTabTopCurveWidth = 4; |
21 static const SkScalar kTabBottomCurveWidth = 3; | 21 static const SkScalar kTabBottomCurveWidth = 3; |
(...skipping 251 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
273 | 273 |
274 // Close out the path. | 274 // Close out the path. |
275 path->lineTo(0, h); | 275 path->lineTo(0, h); |
276 path->close(); | 276 path->close(); |
277 } | 277 } |
278 | 278 |
279 void Tab::ContextMenuClosed() { | 279 void Tab::ContextMenuClosed() { |
280 delegate()->StopAllHighlighting(); | 280 delegate()->StopAllHighlighting(); |
281 menu_controller_ = NULL; | 281 menu_controller_ = NULL; |
282 } | 282 } |
OLD | NEW |