| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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/base_tab.h" | 5 #include "chrome/browser/views/tabs/base_tab.h" |
| 6 | 6 |
| 7 #include <limits> | 7 #include <limits> |
| 8 | 8 |
| 9 #include "app/l10n_util.h" | 9 #include "app/l10n_util.h" |
| 10 #include "app/resource_bundle.h" | 10 #include "app/resource_bundle.h" |
| 11 #include "app/slide_animation.h" | 11 #include "app/slide_animation.h" |
| 12 #include "app/theme_provider.h" | 12 #include "app/theme_provider.h" |
| 13 #include "app/throb_animation.h" | 13 #include "app/throb_animation.h" |
| 14 #include "base/command_line.h" | 14 #include "base/command_line.h" |
| 15 #include "base/utf_string_conversions.h" | 15 #include "base/utf_string_conversions.h" |
| 16 #include "chrome/browser/tab_contents/tab_contents.h" | 16 #include "chrome/browser/tab_contents/tab_contents.h" |
| 17 #include "chrome/browser/ui/browser.h" | 17 #include "chrome/browser/ui/browser.h" |
| 18 #include "chrome/browser/views/tabs/tab_controller.h" | 18 #include "chrome/browser/ui/view_ids.h" |
| 19 #include "chrome/browser/view_ids.h" | 19 #include "chrome/browser/ui/views/tabs/tab_controller.h" |
| 20 #include "chrome/common/chrome_switches.h" | 20 #include "chrome/common/chrome_switches.h" |
| 21 #include "gfx/canvas_skia.h" | 21 #include "gfx/canvas_skia.h" |
| 22 #include "gfx/favicon_size.h" | 22 #include "gfx/favicon_size.h" |
| 23 #include "gfx/font.h" | 23 #include "gfx/font.h" |
| 24 #include "grit/app_resources.h" | 24 #include "grit/app_resources.h" |
| 25 #include "grit/generated_resources.h" | 25 #include "grit/generated_resources.h" |
| 26 #include "grit/theme_resources.h" | 26 #include "grit/theme_resources.h" |
| 27 #include "views/controls/button/image_button.h" | 27 #include "views/controls/button/image_button.h" |
| 28 | 28 |
| 29 #ifdef WIN32 | 29 #ifdef WIN32 |
| (...skipping 441 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 471 // static | 471 // static |
| 472 void BaseTab::InitResources() { | 472 void BaseTab::InitResources() { |
| 473 static bool initialized = false; | 473 static bool initialized = false; |
| 474 if (!initialized) { | 474 if (!initialized) { |
| 475 initialized = true; | 475 initialized = true; |
| 476 font_ = new gfx::Font( | 476 font_ = new gfx::Font( |
| 477 ResourceBundle::GetSharedInstance().GetFont(ResourceBundle::BaseFont)); | 477 ResourceBundle::GetSharedInstance().GetFont(ResourceBundle::BaseFont)); |
| 478 font_height_ = font_->GetHeight(); | 478 font_height_ = font_->GetHeight(); |
| 479 } | 479 } |
| 480 } | 480 } |
| OLD | NEW |