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 <memory> | 9 #include <memory> |
10 #include <string> | 10 #include <string> |
(...skipping 222 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
233 | 233 |
234 // Paint with the normal tab style. If |clip| is non-empty, the tab border | 234 // Paint with the normal tab style. If |clip| is non-empty, the tab border |
235 // should be clipped against it. | 235 // should be clipped against it. |
236 void PaintTab(gfx::Canvas* canvas, const gfx::Path& clip); | 236 void PaintTab(gfx::Canvas* canvas, const gfx::Path& clip); |
237 | 237 |
238 // Paint with the "immersive mode" light-bar style. | 238 // Paint with the "immersive mode" light-bar style. |
239 void PaintImmersiveTab(gfx::Canvas* canvas); | 239 void PaintImmersiveTab(gfx::Canvas* canvas); |
240 | 240 |
241 // Paint various portions of the Tab. | 241 // Paint various portions of the Tab. |
242 void PaintInactiveTabBackground(gfx::Canvas* canvas, const gfx::Path& clip); | 242 void PaintInactiveTabBackground(gfx::Canvas* canvas, const gfx::Path& clip); |
243 void PaintTabBackgroundUsingFillId(gfx::Canvas* fill_canvas, | 243 void PaintTabBackgroundUsingFillId(gfx::Canvas* canvas, |
244 gfx::Canvas* stroke_canvas, | |
245 bool is_active, | 244 bool is_active, |
246 int fill_id, | 245 int fill_id, |
247 bool has_custom_image, | 246 bool has_custom_image, |
248 int y_offset); | 247 int y_offset); |
249 | 248 |
250 // Paints the pinned tab title changed indicator and |favicon_|. |favicon_| | 249 // Paints the pinned tab title changed indicator and |favicon_|. |favicon_| |
251 // may be null. |favicon_draw_bounds| is |favicon_bounds_| adjusted for rtl | 250 // may be null. |favicon_draw_bounds| is |favicon_bounds_| adjusted for rtl |
252 // and clipped to the bounds of the tab. | 251 // and clipped to the bounds of the tab. |
253 void PaintPinnedTabTitleChangedIndicatorAndIcon( | 252 void PaintPinnedTabTitleChangedIndicatorAndIcon( |
254 gfx::Canvas* canvas, | 253 gfx::Canvas* canvas, |
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
364 | 363 |
365 // The favicon for the tab. This might be the sad tab icon or a copy of | 364 // The favicon for the tab. This might be the sad tab icon or a copy of |
366 // data().favicon and may be modified for theming. It is created on demand | 365 // data().favicon and may be modified for theming. It is created on demand |
367 // and thus may be null. | 366 // and thus may be null. |
368 gfx::ImageSkia favicon_; | 367 gfx::ImageSkia favicon_; |
369 | 368 |
370 DISALLOW_COPY_AND_ASSIGN(Tab); | 369 DISALLOW_COPY_AND_ASSIGN(Tab); |
371 }; | 370 }; |
372 | 371 |
373 #endif // CHROME_BROWSER_UI_VIEWS_TABS_TAB_H_ | 372 #endif // CHROME_BROWSER_UI_VIEWS_TABS_TAB_H_ |
OLD | NEW |