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/gtk/tabs/tab_renderer_gtk.h" | 5 #include "chrome/browser/gtk/tabs/tab_renderer_gtk.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 #include <utility> | 8 #include <utility> |
9 | 9 |
10 #include "app/l10n_util.h" | 10 #include "app/l10n_util.h" |
11 #include "app/resource_bundle.h" | 11 #include "app/resource_bundle.h" |
12 #include "app/slide_animation.h" | 12 #include "app/slide_animation.h" |
13 #include "app/throb_animation.h" | 13 #include "app/throb_animation.h" |
14 #include "base/utf_string_conversions.h" | 14 #include "base/utf_string_conversions.h" |
15 #include "chrome/browser/defaults.h" | 15 #include "chrome/browser/defaults.h" |
16 #include "chrome/browser/gtk/bookmark_utils_gtk.h" | 16 #include "chrome/browser/gtk/bookmark_utils_gtk.h" |
17 #include "chrome/browser/gtk/custom_button.h" | 17 #include "chrome/browser/gtk/custom_button.h" |
18 #include "chrome/browser/gtk/gtk_theme_provider.h" | 18 #include "chrome/browser/gtk/gtk_theme_provider.h" |
19 #include "chrome/browser/gtk/gtk_util.h" | 19 #include "chrome/browser/gtk/gtk_util.h" |
20 #include "chrome/browser/profile.h" | 20 #include "chrome/browser/profiles/profile.h" |
21 #include "chrome/browser/tab_contents/tab_contents.h" | 21 #include "chrome/browser/tab_contents/tab_contents.h" |
22 #include "chrome/browser/ui/browser.h" | 22 #include "chrome/browser/ui/browser.h" |
23 #include "chrome/common/notification_service.h" | 23 #include "chrome/common/notification_service.h" |
24 #include "gfx/canvas_skia_paint.h" | 24 #include "gfx/canvas_skia_paint.h" |
25 #include "gfx/favicon_size.h" | 25 #include "gfx/favicon_size.h" |
26 #include "gfx/platform_font_gtk.h" | 26 #include "gfx/platform_font_gtk.h" |
27 #include "gfx/skbitmap_operations.h" | 27 #include "gfx/skbitmap_operations.h" |
28 #include "grit/app_resources.h" | 28 #include "grit/app_resources.h" |
29 #include "grit/generated_resources.h" | 29 #include "grit/generated_resources.h" |
30 #include "grit/theme_resources.h" | 30 #include "grit/theme_resources.h" |
(...skipping 1045 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1076 // Dividing by the pango scale factor maintains an absolute pixel size across | 1076 // Dividing by the pango scale factor maintains an absolute pixel size across |
1077 // all DPIs. | 1077 // all DPIs. |
1078 int size = static_cast<int>(13 / gfx::PlatformFontGtk::GetPangoScaleFactor()); | 1078 int size = static_cast<int>(13 / gfx::PlatformFontGtk::GetPangoScaleFactor()); |
1079 title_font_ = new gfx::Font(base_font.GetFontName(), size); | 1079 title_font_ = new gfx::Font(base_font.GetFontName(), size); |
1080 title_font_height_ = title_font_->GetHeight(); | 1080 title_font_height_ = title_font_->GetHeight(); |
1081 | 1081 |
1082 crashed_fav_icon = rb.GetBitmapNamed(IDR_SAD_FAVICON); | 1082 crashed_fav_icon = rb.GetBitmapNamed(IDR_SAD_FAVICON); |
1083 | 1083 |
1084 initialized_ = true; | 1084 initialized_ = true; |
1085 } | 1085 } |
OLD | NEW |