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

Unified Diff: chrome/browser/ui/touch/tabs/touch_tab.h

Issue 7065052: Improve large tab strip by leveraging touch icons when present (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Resynced (again) Created 9 years, 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/ui/touch/tabs/tab_strip_factory.cc ('k') | chrome/browser/ui/touch/tabs/touch_tab.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « chrome/browser/ui/touch/tabs/tab_strip_factory.cc ('k') | chrome/browser/ui/touch/tabs/touch_tab.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698