Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 225 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 236 | 236 |
| 237 // Returns whether the Tab should display a favicon. | 237 // Returns whether the Tab should display a favicon. |
| 238 bool ShouldShowIcon() const; | 238 bool ShouldShowIcon() const; |
| 239 | 239 |
| 240 // Returns whether the Tab should display the media indicator. | 240 // Returns whether the Tab should display the media indicator. |
| 241 bool ShouldShowMediaIndicator() const; | 241 bool ShouldShowMediaIndicator() const; |
| 242 | 242 |
| 243 // Returns whether the Tab should display a close button. | 243 // Returns whether the Tab should display a close button. |
| 244 bool ShouldShowCloseBox() const; | 244 bool ShouldShowCloseBox() const; |
| 245 | 245 |
| 246 // Returns true on Windows if the Glass styling is being used. | |
| 247 // This implies that the tab strip overlaps a native window frame. | |
| 248 bool UsingWindowsGlass(const views::Widget* widget) const; | |
|
sky
2014/02/03 21:53:03
How about naming this ShouldUseGlassImages()? Also
Matt Giuca
2014/02/05 23:25:31
I think this is different to the other methods abo
sky
2014/02/06 00:36:14
Consider if we wanted to use this code on some oth
Matt Giuca
2014/02/07 09:13:11
Well it's sort of moot now.
I've had to do a big
| |
| 249 | |
| 246 // Gets the throb value for the tab. When a tab is not selected the | 250 // Gets the throb value for the tab. When a tab is not selected the |
| 247 // active background is drawn at |GetThrobValue()|%. This is used for hover, | 251 // active background is drawn at |GetThrobValue()|%. This is used for hover, |
| 248 // mini tab title change and pulsing. | 252 // mini tab title change and pulsing. |
| 249 double GetThrobValue(); | 253 double GetThrobValue(); |
| 250 | 254 |
| 251 // Set the temporary offset for the favicon. This is used during the crash | 255 // Set the temporary offset for the favicon. This is used during the crash |
| 252 // animation. | 256 // animation. |
| 253 void SetFaviconHidingOffset(int offset); | 257 void SetFaviconHidingOffset(int offset); |
| 254 | 258 |
| 255 void DisplayCrashedFavicon(); | 259 void DisplayCrashedFavicon(); |
| (...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 381 static int font_height_; | 385 static int font_height_; |
| 382 | 386 |
| 383 // As the majority of the tabs are inactive, and painting tabs is slowish, | 387 // As the majority of the tabs are inactive, and painting tabs is slowish, |
| 384 // we cache a handful of the inactive tab backgrounds here. | 388 // we cache a handful of the inactive tab backgrounds here. |
| 385 static ImageCache* image_cache_; | 389 static ImageCache* image_cache_; |
| 386 | 390 |
| 387 DISALLOW_COPY_AND_ASSIGN(Tab); | 391 DISALLOW_COPY_AND_ASSIGN(Tab); |
| 388 }; | 392 }; |
| 389 | 393 |
| 390 #endif // CHROME_BROWSER_UI_VIEWS_TABS_TAB_H_ | 394 #endif // CHROME_BROWSER_UI_VIEWS_TABS_TAB_H_ |
| OLD | NEW |