Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef CHROME_BROWSER_UI_VIEWS_TABS_TAB_UTIL_H_ | |
| 6 #define CHROME_BROWSER_UI_VIEWS_TABS_TAB_UTIL_H_ | |
| 7 | |
| 8 namespace gfx { | |
| 9 class ImageSkia; | |
| 10 } | |
| 11 namespace ui { | |
| 12 class ThemeProvider; | |
| 13 } | |
| 14 | |
| 15 // Utility class for tab related code. | |
| 16 class TabUtil { | |
|
sky
2013/07/08 14:43:21
This name is too generic and encourages making thi
| |
| 17 public: | |
| 18 // Tiles |background_id| and |background_overlay_id| onto an image of size | |
| 19 // |dst_w|x|dst_h|. |relative_y_offset| is the relative y position of | |
| 20 // |background_id| relative to |background_overlay_id|. | |
| 21 // |src_x|, |src_y|, and |relative_y_offset| should be set so that | |
| 22 // |background_id| lines up with the frame image and that | |
| 23 // |background_overlay_id| lines up with the top of the tab. | |
| 24 static gfx::ImageSkia CreateTiledInactiveBackground( | |
| 25 ui::ThemeProvider* theme_provider, | |
| 26 int background_id, | |
| 27 int background_overlay_id, | |
| 28 int relative_y_offset, | |
| 29 int src_x, | |
| 30 int src_y, | |
| 31 int dst_w, | |
| 32 int dst_h); | |
| 33 }; | |
|
sky
2013/07/08 14:43:21
private: DISALLOW_IMPLICIT_CONSTRUCTORS, or create
| |
| 34 | |
| 35 #endif // CHROME_BROWSER_UI_VIEWS_TABS_TAB_UTIL_H_ | |
| OLD | NEW |