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 <limits> | 5 #include <limits> |
6 | 6 |
7 #include "chrome/browser/views/tabs/tab_renderer.h" | 7 #include "chrome/browser/views/tabs/tab_renderer.h" |
8 | 8 |
| 9 #include "app/l10n_util.h" |
9 #include "app/resource_bundle.h" | 10 #include "app/resource_bundle.h" |
10 #include "chrome/browser/browser.h" | 11 #include "chrome/browser/browser.h" |
11 #include "chrome/browser/profile.h" | 12 #include "chrome/browser/profile.h" |
12 #include "chrome/browser/tab_contents/tab_contents.h" | 13 #include "chrome/browser/tab_contents/tab_contents.h" |
13 #include "chrome/browser/tabs/tab_strip_model.h" | 14 #include "chrome/browser/tabs/tab_strip_model.h" |
14 #include "chrome/common/gfx/chrome_canvas.h" | 15 #include "chrome/common/gfx/chrome_canvas.h" |
15 #include "chrome/common/gfx/chrome_font.h" | 16 #include "chrome/common/gfx/chrome_font.h" |
16 #include "chrome/common/l10n_util.h" | |
17 #include "chrome/common/win_util.h" | 17 #include "chrome/common/win_util.h" |
18 #include "chrome/views/widget/widget.h" | 18 #include "chrome/views/widget/widget.h" |
19 #include "chrome/views/window/non_client_view.h" | 19 #include "chrome/views/window/non_client_view.h" |
20 #include "chrome/views/window/window.h" | 20 #include "chrome/views/window/window.h" |
21 #include "grit/generated_resources.h" | 21 #include "grit/generated_resources.h" |
22 #include "grit/theme_resources.h" | 22 #include "grit/theme_resources.h" |
23 #include "skia/ext/image_operations.h" | 23 #include "skia/ext/image_operations.h" |
24 | 24 |
25 static const int kLeftPadding = 16; | 25 static const int kLeftPadding = 16; |
26 static const int kTopPadding = 6; | 26 static const int kTopPadding = 6; |
(...skipping 676 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
703 tab_inactive_otr.image_l = rb.GetBitmapNamed(IDR_TAB_INACTIVE_LEFT_OTR); | 703 tab_inactive_otr.image_l = rb.GetBitmapNamed(IDR_TAB_INACTIVE_LEFT_OTR); |
704 tab_inactive_otr.image_c = rb.GetBitmapNamed(IDR_TAB_INACTIVE_CENTER_OTR); | 704 tab_inactive_otr.image_c = rb.GetBitmapNamed(IDR_TAB_INACTIVE_CENTER_OTR); |
705 tab_inactive_otr.image_r = rb.GetBitmapNamed(IDR_TAB_INACTIVE_RIGHT_OTR); | 705 tab_inactive_otr.image_r = rb.GetBitmapNamed(IDR_TAB_INACTIVE_RIGHT_OTR); |
706 } | 706 } |
707 | 707 |
708 tab_inactive.l_width = tab_inactive.image_l->width(); | 708 tab_inactive.l_width = tab_inactive.image_l->width(); |
709 tab_inactive.r_width = tab_inactive.image_r->width(); | 709 tab_inactive.r_width = tab_inactive.image_r->width(); |
710 // tab_[hover,inactive_otr] width are not used and are initialized to 0 | 710 // tab_[hover,inactive_otr] width are not used and are initialized to 0 |
711 // during static initialization. | 711 // during static initialization. |
712 } | 712 } |
OLD | NEW |