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

Side by Side Diff: chrome/browser/ui/views/tabs/tab.cc

Issue 10965055: Shift tab title and favicon down by 1px. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 3 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/views/tabs/tab.h" 5 #include "chrome/browser/ui/views/tabs/tab.h"
6 6
7 #include <limits> 7 #include <limits>
8 8
9 #include "base/utf_string_conversions.h" 9 #include "base/utf_string_conversions.h"
10 #include "chrome/browser/defaults.h" 10 #include "chrome/browser/defaults.h"
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 } 54 }
55 return value; 55 return value;
56 } 56 }
57 57
58 int top_padding() { 58 int top_padding() {
59 static int value = -1; 59 static int value = -1;
60 if (value == -1) { 60 if (value == -1) {
61 switch (ui::GetDisplayLayout()) { 61 switch (ui::GetDisplayLayout()) {
62 case ui::LAYOUT_ASH: 62 case ui::LAYOUT_ASH:
63 case ui::LAYOUT_DESKTOP: 63 case ui::LAYOUT_DESKTOP:
64 value = 6; 64 value = 7;
65 break; 65 break;
66 case ui::LAYOUT_TOUCH: 66 case ui::LAYOUT_TOUCH:
67 value = 12; 67 value = 12;
68 break; 68 break;
69 default: 69 default:
70 NOTREACHED(); 70 NOTREACHED();
71 } 71 }
72 } 72 }
73 return value; 73 return value;
74 } 74 }
(...skipping 768 matching lines...) Expand 10 before | Expand all | Expand 10 after
843 rb.GetImageSkiaNamed(IDR_TAB_ACTIVE_RIGHT_SEARCH); 843 rb.GetImageSkiaNamed(IDR_TAB_ACTIVE_RIGHT_SEARCH);
844 tab_active_search_.l_width = tab_active_search_.image_l->width(); 844 tab_active_search_.l_width = tab_active_search_.image_l->width();
845 tab_active_search_.r_width = tab_active_search_.image_r->width(); 845 tab_active_search_.r_width = tab_active_search_.image_r->width();
846 846
847 tab_inactive_.image_l = rb.GetImageSkiaNamed(IDR_TAB_INACTIVE_LEFT); 847 tab_inactive_.image_l = rb.GetImageSkiaNamed(IDR_TAB_INACTIVE_LEFT);
848 tab_inactive_.image_c = rb.GetImageSkiaNamed(IDR_TAB_INACTIVE_CENTER); 848 tab_inactive_.image_c = rb.GetImageSkiaNamed(IDR_TAB_INACTIVE_CENTER);
849 tab_inactive_.image_r = rb.GetImageSkiaNamed(IDR_TAB_INACTIVE_RIGHT); 849 tab_inactive_.image_r = rb.GetImageSkiaNamed(IDR_TAB_INACTIVE_RIGHT);
850 tab_inactive_.l_width = tab_inactive_.image_l->width(); 850 tab_inactive_.l_width = tab_inactive_.image_l->width();
851 tab_inactive_.r_width = tab_inactive_.image_r->width(); 851 tab_inactive_.r_width = tab_inactive_.image_r->width();
852 } 852 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698