| OLD | NEW | 
|---|
| 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/touch/tabs/touch_tab.h" | 5 #include "chrome/browser/ui/touch/tabs/touch_tab.h" | 
| 6 | 6 | 
| 7 #include "base/logging.h" | 7 #include "base/logging.h" | 
| 8 #include "chrome/browser/themes/theme_service.h" | 8 #include "chrome/browser/themes/theme_service.h" | 
| 9 #include "grit/app_resources.h" | 9 #include "grit/app_resources.h" | 
| 10 #include "grit/theme_resources.h" | 10 #include "grit/theme_resources.h" | 
|  | 11 #include "grit/theme_resources_standard.h" | 
| 11 #include "ui/base/resource/resource_bundle.h" | 12 #include "ui/base/resource/resource_bundle.h" | 
| 12 #include "ui/gfx/canvas_skia.h" | 13 #include "ui/gfx/canvas_skia.h" | 
| 13 #include "ui/gfx/favicon_size.h" | 14 #include "ui/gfx/favicon_size.h" | 
| 14 #include "ui/gfx/path.h" | 15 #include "ui/gfx/path.h" | 
| 15 #include "ui/gfx/skbitmap_operations.h" | 16 #include "ui/gfx/skbitmap_operations.h" | 
| 16 | 17 | 
| 17 static const int kLeftPadding = 16; | 18 static const int kLeftPadding = 16; | 
| 18 static const int kRightPadding = 15; | 19 static const int kRightPadding = 15; | 
| 19 static const int kDropShadowHeight = 2; | 20 static const int kDropShadowHeight = 2; | 
| 20 | 21 | 
| (...skipping 252 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 273   tab_active.image_r = rb.GetBitmapNamed(IDR_TAB_ACTIVE_RIGHT); | 274   tab_active.image_r = rb.GetBitmapNamed(IDR_TAB_ACTIVE_RIGHT); | 
| 274   tab_active.l_width = tab_active.image_l->width(); | 275   tab_active.l_width = tab_active.image_l->width(); | 
| 275   tab_active.r_width = tab_active.image_r->width(); | 276   tab_active.r_width = tab_active.image_r->width(); | 
| 276 | 277 | 
| 277   tab_inactive.image_l = rb.GetBitmapNamed(IDR_TAB_INACTIVE_LEFT); | 278   tab_inactive.image_l = rb.GetBitmapNamed(IDR_TAB_INACTIVE_LEFT); | 
| 278   tab_inactive.image_c = rb.GetBitmapNamed(IDR_TAB_INACTIVE_CENTER); | 279   tab_inactive.image_c = rb.GetBitmapNamed(IDR_TAB_INACTIVE_CENTER); | 
| 279   tab_inactive.image_r = rb.GetBitmapNamed(IDR_TAB_INACTIVE_RIGHT); | 280   tab_inactive.image_r = rb.GetBitmapNamed(IDR_TAB_INACTIVE_RIGHT); | 
| 280   tab_inactive.l_width = tab_inactive.image_l->width(); | 281   tab_inactive.l_width = tab_inactive.image_l->width(); | 
| 281   tab_inactive.r_width = tab_inactive.image_r->width(); | 282   tab_inactive.r_width = tab_inactive.image_r->width(); | 
| 282 } | 283 } | 
| OLD | NEW | 
|---|