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

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

Issue 10213011: Attempt 3 at a better touch tabstrip. There is still a bunch to do, (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remove Tab::GetTouchModeMinimumSize Created 8 years, 7 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
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 #ifndef CHROME_BROWSER_UI_VIEWS_TABS_TAB_H_ 5 #ifndef CHROME_BROWSER_UI_VIEWS_TABS_TAB_H_
6 #define CHROME_BROWSER_UI_VIEWS_TABS_TAB_H_ 6 #define CHROME_BROWSER_UI_VIEWS_TABS_TAB_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 10
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 // always show a close button and have a larger minimum size than unselected 47 // always show a close button and have a larger minimum size than unselected
48 // tabs. 48 // tabs.
49 static gfx::Size GetMinimumSelectedSize(); 49 static gfx::Size GetMinimumSelectedSize();
50 // Returns the preferred size of a single Tab, assuming space is 50 // Returns the preferred size of a single Tab, assuming space is
51 // available. 51 // available.
52 static gfx::Size GetStandardSize(); 52 static gfx::Size GetStandardSize();
53 53
54 // Returns the width for mini-tabs. Mini-tabs always have this width. 54 // Returns the width for mini-tabs. Mini-tabs always have this width.
55 static int GetMiniWidth(); 55 static int GetMiniWidth();
56 56
57 // Returns the smallest tabs can get when in touch mode.
58 static gfx::Size GetTouchModeMinimumSize();
59
60 protected: 57 protected:
61 // BaseTab overrides: 58 // BaseTab overrides:
62 virtual const gfx::Rect& GetTitleBounds() const OVERRIDE; 59 virtual const gfx::Rect& GetTitleBounds() const OVERRIDE;
63 virtual const gfx::Rect& GetIconBounds() const OVERRIDE; 60 virtual const gfx::Rect& GetIconBounds() const OVERRIDE;
64 virtual void DataChanged(const TabRendererData& old) OVERRIDE; 61 virtual void DataChanged(const TabRendererData& old) OVERRIDE;
65 62
66 // Returns whether the Tab should display a close button. 63 // Returns whether the Tab should display a close button.
67 virtual bool ShouldShowCloseBox() const; 64 virtual bool ShouldShowCloseBox() const;
68 65
69 private: 66 private:
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
138 135
139 // The current color of the close button. 136 // The current color of the close button.
140 SkColor close_button_color_; 137 SkColor close_button_color_;
141 138
142 static bool initialized_; 139 static bool initialized_;
143 140
144 DISALLOW_COPY_AND_ASSIGN(Tab); 141 DISALLOW_COPY_AND_ASSIGN(Tab);
145 }; 142 };
146 143
147 #endif // CHROME_BROWSER_UI_VIEWS_TABS_TAB_H_ 144 #endif // CHROME_BROWSER_UI_VIEWS_TABS_TAB_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/tabs/fake_base_tab_strip_controller.cc ('k') | chrome/browser/ui/views/tabs/tab.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698