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

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

Issue 11881042: highlight intermediate tabs (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Make check for Gesture vs Scroll event for flings explicit Created 7 years, 11 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 7
8 #include <list> 8 #include <list>
9 #include <string> 9 #include <string>
10 10
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
98 // to the frame image. 98 // to the frame image.
99 void set_background_offset(const gfx::Point& offset) { 99 void set_background_offset(const gfx::Point& offset) {
100 background_offset_ = offset; 100 background_offset_ = offset;
101 } 101 }
102 102
103 // Recomputes the dominant color of the favicon, used in immersive mode. 103 // Recomputes the dominant color of the favicon, used in immersive mode.
104 // TODO(jamescook): Remove this if UX agrees that we don't want colors in the 104 // TODO(jamescook): Remove this if UX agrees that we don't want colors in the
105 // immersive mode light bar. crbug.com/166929 105 // immersive mode light bar. crbug.com/166929
106 void UpdateIconDominantColor(); 106 void UpdateIconDominantColor();
107 107
108 views::GlowHoverController* hover_controller() {
109 return &hover_controller_;
110 }
111
108 // Returns the minimum possible size of a single unselected Tab. 112 // Returns the minimum possible size of a single unselected Tab.
109 static gfx::Size GetMinimumUnselectedSize(); 113 static gfx::Size GetMinimumUnselectedSize();
110 // Returns the minimum possible size of a selected Tab. Selected tabs must 114 // Returns the minimum possible size of a selected Tab. Selected tabs must
111 // always show a close button and have a larger minimum size than unselected 115 // always show a close button and have a larger minimum size than unselected
112 // tabs. 116 // tabs.
113 static gfx::Size GetMinimumSelectedSize(); 117 static gfx::Size GetMinimumSelectedSize();
114 // Returns the preferred size of a single Tab, assuming space is 118 // Returns the preferred size of a single Tab, assuming space is
115 // available. 119 // available.
116 static gfx::Size GetStandardSize(); 120 static gfx::Size GetStandardSize();
117 121
(...skipping 233 matching lines...) Expand 10 before | Expand all | Expand 10 after
351 static int font_height_; 355 static int font_height_;
352 356
353 // As the majority of the tabs are inactive, and painting tabs is slowish, 357 // As the majority of the tabs are inactive, and painting tabs is slowish,
354 // we cache a handful of the inactive tab backgrounds here. 358 // we cache a handful of the inactive tab backgrounds here.
355 static ImageCache* image_cache_; 359 static ImageCache* image_cache_;
356 360
357 DISALLOW_COPY_AND_ASSIGN(Tab); 361 DISALLOW_COPY_AND_ASSIGN(Tab);
358 }; 362 };
359 363
360 #endif // CHROME_BROWSER_UI_VIEWS_TABS_TAB_H_ 364 #endif // CHROME_BROWSER_UI_VIEWS_TABS_TAB_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698