Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(643)

Side by Side Diff: chrome/browser/ui/gtk/tabs/tab_renderer_gtk.cc

Issue 6263008: Move ResourceBundle, DataPack to ui/base (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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/ui/gtk/tabs/tab_renderer_gtk.h" 5 #include "chrome/browser/ui/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"
12 #include "base/utf_string_conversions.h" 11 #include "base/utf_string_conversions.h"
13 #include "chrome/browser/defaults.h" 12 #include "chrome/browser/defaults.h"
14 #include "chrome/browser/profiles/profile.h" 13 #include "chrome/browser/profiles/profile.h"
15 #include "chrome/browser/tab_contents/tab_contents.h" 14 #include "chrome/browser/tab_contents/tab_contents.h"
16 #include "chrome/browser/ui/browser.h" 15 #include "chrome/browser/ui/browser.h"
17 #include "chrome/browser/ui/gtk/bookmark_utils_gtk.h" 16 #include "chrome/browser/ui/gtk/bookmark_utils_gtk.h"
18 #include "chrome/browser/ui/gtk/custom_button.h" 17 #include "chrome/browser/ui/gtk/custom_button.h"
19 #include "chrome/browser/ui/gtk/gtk_theme_provider.h" 18 #include "chrome/browser/ui/gtk/gtk_theme_provider.h"
20 #include "chrome/browser/ui/gtk/gtk_util.h" 19 #include "chrome/browser/ui/gtk/gtk_util.h"
21 #include "chrome/common/notification_service.h" 20 #include "chrome/common/notification_service.h"
22 #include "gfx/canvas_skia_paint.h" 21 #include "gfx/canvas_skia_paint.h"
23 #include "gfx/favicon_size.h" 22 #include "gfx/favicon_size.h"
24 #include "gfx/platform_font_gtk.h" 23 #include "gfx/platform_font_gtk.h"
25 #include "gfx/skbitmap_operations.h" 24 #include "gfx/skbitmap_operations.h"
26 #include "grit/app_resources.h" 25 #include "grit/app_resources.h"
27 #include "grit/generated_resources.h" 26 #include "grit/generated_resources.h"
28 #include "grit/theme_resources.h" 27 #include "grit/theme_resources.h"
29 #include "ui/base/animation/slide_animation.h" 28 #include "ui/base/animation/slide_animation.h"
30 #include "ui/base/animation/throb_animation.h" 29 #include "ui/base/animation/throb_animation.h"
30 #include "ui/base/resource/resource_bundle.h"
31 31
32 namespace { 32 namespace {
33 33
34 const int kLeftPadding = 16; 34 const int kLeftPadding = 16;
35 const int kTopPadding = 6; 35 const int kTopPadding = 6;
36 const int kRightPadding = 15; 36 const int kRightPadding = 15;
37 const int kBottomPadding = 5; 37 const int kBottomPadding = 5;
38 const int kDropShadowHeight = 2; 38 const int kDropShadowHeight = 2;
39 const int kFavIconTitleSpacing = 4; 39 const int kFavIconTitleSpacing = 4;
40 const int kTitleCloseButtonSpacing = 5; 40 const int kTitleCloseButtonSpacing = 5;
(...skipping 1036 matching lines...) Expand 10 before | Expand all | Expand 10 after
1077 // Dividing by the pango scale factor maintains an absolute pixel size across 1077 // Dividing by the pango scale factor maintains an absolute pixel size across
1078 // all DPIs. 1078 // all DPIs.
1079 int size = static_cast<int>(13 / gfx::PlatformFontGtk::GetPangoScaleFactor()); 1079 int size = static_cast<int>(13 / gfx::PlatformFontGtk::GetPangoScaleFactor());
1080 title_font_ = new gfx::Font(base_font.GetFontName(), size); 1080 title_font_ = new gfx::Font(base_font.GetFontName(), size);
1081 title_font_height_ = title_font_->GetHeight(); 1081 title_font_height_ = title_font_->GetHeight();
1082 1082
1083 crashed_fav_icon = rb.GetBitmapNamed(IDR_SAD_FAVICON); 1083 crashed_fav_icon = rb.GetBitmapNamed(IDR_SAD_FAVICON);
1084 1084
1085 initialized_ = true; 1085 initialized_ = true;
1086 } 1086 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/gtk/status_icons/status_tray_gtk_unittest.cc ('k') | chrome/browser/ui/gtk/tabs/tab_strip_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698