| 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 "chrome/browser/themes/browser_theme_provider.h" | 7 #include "chrome/browser/themes/browser_theme_provider.h" |
| 8 #include "gfx/canvas_skia.h" | |
| 9 #include "gfx/favicon_size.h" | |
| 10 #include "gfx/path.h" | |
| 11 #include "gfx/skbitmap_operations.h" | |
| 12 #include "grit/app_resources.h" | 8 #include "grit/app_resources.h" |
| 13 #include "grit/theme_resources.h" | 9 #include "grit/theme_resources.h" |
| 14 #include "ui/base/resource/resource_bundle.h" | 10 #include "ui/base/resource/resource_bundle.h" |
| 11 #include "ui/gfx/canvas_skia.h" |
| 12 #include "ui/gfx/favicon_size.h" |
| 13 #include "ui/gfx/path.h" |
| 14 #include "ui/gfx/skbitmap_operations.h" |
| 15 | 15 |
| 16 static const int kLeftPadding = 16; | 16 static const int kLeftPadding = 16; |
| 17 static const int kRightPadding = 15; | 17 static const int kRightPadding = 15; |
| 18 static const int kDropShadowHeight = 2; | 18 static const int kDropShadowHeight = 2; |
| 19 static const int kTouchFaviconSize = 32; | 19 static const int kTouchFaviconSize = 32; |
| 20 | 20 |
| 21 TouchTab::TouchTabImage TouchTab::tab_alpha = {0}; | 21 TouchTab::TouchTabImage TouchTab::tab_alpha = {0}; |
| 22 TouchTab::TouchTabImage TouchTab::tab_active = {0}; | 22 TouchTab::TouchTabImage TouchTab::tab_active = {0}; |
| 23 TouchTab::TouchTabImage TouchTab::tab_inactive = {0}; | 23 TouchTab::TouchTabImage TouchTab::tab_inactive = {0}; |
| 24 | 24 |
| (...skipping 201 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 226 tab_active.image_r = rb.GetBitmapNamed(IDR_TAB_ACTIVE_RIGHT); | 226 tab_active.image_r = rb.GetBitmapNamed(IDR_TAB_ACTIVE_RIGHT); |
| 227 tab_active.l_width = tab_active.image_l->width(); | 227 tab_active.l_width = tab_active.image_l->width(); |
| 228 tab_active.r_width = tab_active.image_r->width(); | 228 tab_active.r_width = tab_active.image_r->width(); |
| 229 | 229 |
| 230 tab_inactive.image_l = rb.GetBitmapNamed(IDR_TAB_INACTIVE_LEFT); | 230 tab_inactive.image_l = rb.GetBitmapNamed(IDR_TAB_INACTIVE_LEFT); |
| 231 tab_inactive.image_c = rb.GetBitmapNamed(IDR_TAB_INACTIVE_CENTER); | 231 tab_inactive.image_c = rb.GetBitmapNamed(IDR_TAB_INACTIVE_CENTER); |
| 232 tab_inactive.image_r = rb.GetBitmapNamed(IDR_TAB_INACTIVE_RIGHT); | 232 tab_inactive.image_r = rb.GetBitmapNamed(IDR_TAB_INACTIVE_RIGHT); |
| 233 tab_inactive.l_width = tab_inactive.image_l->width(); | 233 tab_inactive.l_width = tab_inactive.image_l->width(); |
| 234 tab_inactive.r_width = tab_inactive.image_r->width(); | 234 tab_inactive.r_width = tab_inactive.image_r->width(); |
| 235 } | 235 } |
| OLD | NEW |