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/animation_container.h" | |
10 #include "app/l10n_util.h" | 9 #include "app/l10n_util.h" |
11 #include "app/resource_bundle.h" | 10 #include "app/resource_bundle.h" |
12 #include "app/slide_animation.h" | 11 #include "app/slide_animation.h" |
13 #include "app/theme_provider.h" | 12 #include "app/theme_provider.h" |
14 #include "app/throb_animation.h" | 13 #include "app/throb_animation.h" |
15 #include "base/command_line.h" | 14 #include "base/command_line.h" |
16 #include "base/utf_string_conversions.h" | 15 #include "base/utf_string_conversions.h" |
17 #include "chrome/browser/browser.h" | 16 #include "chrome/browser/browser.h" |
18 #include "chrome/browser/tab_contents/tab_contents.h" | 17 #include "chrome/browser/tab_contents/tab_contents.h" |
19 #include "chrome/browser/views/tabs/tab_controller.h" | 18 #include "chrome/browser/views/tabs/tab_controller.h" |
(...skipping 457 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
477 // static | 476 // static |
478 void BaseTab::InitResources() { | 477 void BaseTab::InitResources() { |
479 static bool initialized = false; | 478 static bool initialized = false; |
480 if (!initialized) { | 479 if (!initialized) { |
481 initialized = true; | 480 initialized = true; |
482 font_ = new gfx::Font( | 481 font_ = new gfx::Font( |
483 ResourceBundle::GetSharedInstance().GetFont(ResourceBundle::BaseFont)); | 482 ResourceBundle::GetSharedInstance().GetFont(ResourceBundle::BaseFont)); |
484 font_height_ = font_->height(); | 483 font_height_ = font_->height(); |
485 } | 484 } |
486 } | 485 } |
OLD | NEW |