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

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

Issue 25849004: Clean up unused constant globals (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 2 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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 "base/debug/trace_event.h" 10 #include "base/debug/trace_event.h"
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 45
46 using content::WebContents; 46 using content::WebContents;
47 47
48 namespace { 48 namespace {
49 49
50 const int kFontPixelSize = 12; 50 const int kFontPixelSize = 12;
51 const int kLeftPadding = 16; 51 const int kLeftPadding = 16;
52 const int kTopPadding = 6; 52 const int kTopPadding = 6;
53 const int kRightPadding = 15; 53 const int kRightPadding = 15;
54 const int kBottomPadding = 5; 54 const int kBottomPadding = 5;
55 const int kDropShadowHeight = 2;
56 const int kFaviconTitleSpacing = 4; 55 const int kFaviconTitleSpacing = 4;
57 const int kTitleCloseButtonSpacing = 5; 56 const int kTitleCloseButtonSpacing = 5;
58 const int kStandardTitleWidth = 175; 57 const int kStandardTitleWidth = 175;
59 const int kDropShadowOffset = 2; 58 const int kDropShadowOffset = 2;
60 const int kInactiveTabBackgroundOffsetY = 15; 59 const int kInactiveTabBackgroundOffsetY = 15;
61 60
62 // When a non-mini-tab becomes a mini-tab the width of the tab animates. If 61 // When a non-mini-tab becomes a mini-tab the width of the tab animates. If
63 // the width of a mini-tab is >= kMiniTabRendererAsNormalTabWidth then the tab 62 // the width of a mini-tab is >= kMiniTabRendererAsNormalTabWidth then the tab
64 // is rendered as a normal tab. This is done to avoid having the title 63 // is rendered as a normal tab. This is done to avoid having the title
65 // immediately disappear when transitioning a tab from normal to mini-tab. 64 // immediately disappear when transitioning a tab from normal to mini-tab.
(...skipping 1180 matching lines...) Expand 10 before | Expand all | Expand 10 after
1246 GdkPixbuf* tab_close = rb.GetNativeImageNamed(IDR_CLOSE_1).ToGdkPixbuf(); 1245 GdkPixbuf* tab_close = rb.GetNativeImageNamed(IDR_CLOSE_1).ToGdkPixbuf();
1247 close_button_width_ = gdk_pixbuf_get_width(tab_close); 1246 close_button_width_ = gdk_pixbuf_get_width(tab_close);
1248 close_button_height_ = gdk_pixbuf_get_height(tab_close); 1247 close_button_height_ = gdk_pixbuf_get_height(tab_close);
1249 1248
1250 const gfx::Font& base_font = rb.GetFont(ui::ResourceBundle::BaseFont); 1249 const gfx::Font& base_font = rb.GetFont(ui::ResourceBundle::BaseFont);
1251 title_font_ = new gfx::Font(base_font.GetFontName(), kFontPixelSize); 1250 title_font_ = new gfx::Font(base_font.GetFontName(), kFontPixelSize);
1252 title_font_height_ = title_font_->GetHeight(); 1251 title_font_height_ = title_font_->GetHeight();
1253 1252
1254 initialized_ = true; 1253 initialized_ = true;
1255 } 1254 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698