| 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 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 96 // to the frame image. | 96 // to the frame image. |
| 97 void set_background_offset(const gfx::Point& offset) { | 97 void set_background_offset(const gfx::Point& offset) { |
| 98 background_offset_ = offset; | 98 background_offset_ = offset; |
| 99 } | 99 } |
| 100 | 100 |
| 101 // Recomputes the dominant color of the favicon, used in immersive mode. | 101 // Recomputes the dominant color of the favicon, used in immersive mode. |
| 102 // TODO(jamescook): Remove this if UX agrees that we don't want colors in the | 102 // TODO(jamescook): Remove this if UX agrees that we don't want colors in the |
| 103 // immersive mode light bar. crbug.com/166929 | 103 // immersive mode light bar. crbug.com/166929 |
| 104 void UpdateIconDominantColor(); | 104 void UpdateIconDominantColor(); |
| 105 | 105 |
| 106 views::GlowHoverController* hover_controller() { |
| 107 return &hover_controller_; |
| 108 } |
| 109 |
| 106 // Returns the minimum possible size of a single unselected Tab. | 110 // Returns the minimum possible size of a single unselected Tab. |
| 107 static gfx::Size GetMinimumUnselectedSize(); | 111 static gfx::Size GetMinimumUnselectedSize(); |
| 108 // Returns the minimum possible size of a selected Tab. Selected tabs must | 112 // Returns the minimum possible size of a selected Tab. Selected tabs must |
| 109 // always show a close button and have a larger minimum size than unselected | 113 // always show a close button and have a larger minimum size than unselected |
| 110 // tabs. | 114 // tabs. |
| 111 static gfx::Size GetMinimumSelectedSize(); | 115 static gfx::Size GetMinimumSelectedSize(); |
| 112 // Returns the preferred size of a single Tab, assuming space is | 116 // Returns the preferred size of a single Tab, assuming space is |
| 113 // available. | 117 // available. |
| 114 static gfx::Size GetStandardSize(); | 118 static gfx::Size GetStandardSize(); |
| 115 | 119 |
| (...skipping 227 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 343 static int font_height_; | 347 static int font_height_; |
| 344 | 348 |
| 345 // As the majority of the tabs are inactive, and painting tabs is slowish, | 349 // As the majority of the tabs are inactive, and painting tabs is slowish, |
| 346 // we cache a handful of the inactive tab backgrounds here. | 350 // we cache a handful of the inactive tab backgrounds here. |
| 347 static ImageCache* image_cache_; | 351 static ImageCache* image_cache_; |
| 348 | 352 |
| 349 DISALLOW_COPY_AND_ASSIGN(Tab); | 353 DISALLOW_COPY_AND_ASSIGN(Tab); |
| 350 }; | 354 }; |
| 351 | 355 |
| 352 #endif // CHROME_BROWSER_UI_VIEWS_TABS_TAB_H_ | 356 #endif // CHROME_BROWSER_UI_VIEWS_TABS_TAB_H_ |
| OLD | NEW |