Index: chrome/browser/ui/touch/tabs/touch_tab.h |
diff --git a/chrome/browser/ui/touch/tabs/touch_tab.h b/chrome/browser/ui/touch/tabs/touch_tab.h |
index b4ff409ed756abae2066c2952e6425e6a214d2d6..ec458aa3df32247690dd2890ae9a81025ebe7475 100644 |
--- a/chrome/browser/ui/touch/tabs/touch_tab.h |
+++ b/chrome/browser/ui/touch/tabs/touch_tab.h |
@@ -25,6 +25,9 @@ class TouchTab : public BaseTab { |
// The menu button's class name. |
static const char kViewClassName[]; |
+ // The size of the favicon touch area. |
+ static const int kTouchTargetIconSize = 32; |
+ |
explicit TouchTab(TabController* controller); |
virtual ~TouchTab(); |
@@ -34,6 +37,14 @@ class TouchTab : public BaseTab { |
background_offset_ = offset; |
} |
+ // get and set touch icon |
+ void set_touch_icon(const SkBitmap& bitmap) { |
+ touch_icon_ = bitmap; |
+ } |
+ const SkBitmap& touch_icon() const { |
+ return touch_icon_; |
+ } |
+ |
// Returns the minimum possible size of a single unselected Tab. |
static gfx::Size GetMinimumUnselectedSize(); |
@@ -74,6 +85,9 @@ class TouchTab : public BaseTab { |
// The offset used to paint the inactive background image. |
gfx::Point background_offset_; |
+ // The touch icon found |
+ SkBitmap touch_icon_; |
+ |
// 'l' is for left |
// 'c' is for center |
// 'r' is for right |