| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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/gtk/tabs/tab_renderer_gtk.h" | 5 #include "chrome/browser/gtk/tabs/tab_renderer_gtk.h" |
| 6 | 6 |
| 7 #include "app/l10n_util.h" |
| 7 #include "app/resource_bundle.h" | 8 #include "app/resource_bundle.h" |
| 8 #include "chrome/browser/browser.h" | 9 #include "chrome/browser/browser.h" |
| 9 #include "chrome/browser/profile.h" | 10 #include "chrome/browser/profile.h" |
| 10 #include "chrome/browser/tab_contents/tab_contents.h" | 11 #include "chrome/browser/tab_contents/tab_contents.h" |
| 11 #include "chrome/common/l10n_util.h" | |
| 12 #include "grit/generated_resources.h" | 12 #include "grit/generated_resources.h" |
| 13 #include "grit/theme_resources.h" | 13 #include "grit/theme_resources.h" |
| 14 #include "skia/ext/image_operations.h" | 14 #include "skia/ext/image_operations.h" |
| 15 | 15 |
| 16 namespace { | 16 namespace { |
| 17 | 17 |
| 18 const int kLeftPadding = 16; | 18 const int kLeftPadding = 16; |
| 19 const int kTopPadding = 6; | 19 const int kTopPadding = 6; |
| 20 const int kRightPadding = 15; | 20 const int kRightPadding = 15; |
| 21 const int kBottomPadding = 5; | 21 const int kBottomPadding = 5; |
| (...skipping 467 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 489 LoadTabImages(); | 489 LoadTabImages(); |
| 490 | 490 |
| 491 ResourceBundle& rb = ResourceBundle::GetSharedInstance(); | 491 ResourceBundle& rb = ResourceBundle::GetSharedInstance(); |
| 492 title_font_ = new ChromeFont(rb.GetFont(ResourceBundle::BaseFont)); | 492 title_font_ = new ChromeFont(rb.GetFont(ResourceBundle::BaseFont)); |
| 493 title_font_height_ = title_font_->height(); | 493 title_font_height_ = title_font_->height(); |
| 494 | 494 |
| 495 InitializeLoadingAnimationData(&rb, &loading_animation_data); | 495 InitializeLoadingAnimationData(&rb, &loading_animation_data); |
| 496 | 496 |
| 497 initialized_ = true; | 497 initialized_ = true; |
| 498 } | 498 } |
| OLD | NEW |