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_PAINT_UTIL_H_ | |
6 #define CHROME_BROWSER_UI_VIEWS_TABS_TAB_PAINT_UTIL_H_ | |
7 | |
8 #include "base/basictypes.h" | |
9 | |
10 namespace gfx { | |
11 class ImageSkia; | |
12 } | |
13 namespace ui { | |
14 class ThemeProvider; | |
15 } | |
16 | |
17 // Utility class for tab related code. | |
18 class TabPaintUtil { | |
sky
2013/07/09 00:24:57
TabPaintUtils.
| |
19 public: | |
20 // Tiles |background_id| and |background_overlay_id| onto an image of size | |
21 // |dst_w|x|dst_h|. |relative_y_offset| is the relative y position of | |
22 // |background_id| relative to |background_overlay_id|. | |
23 // |src_x|, |src_y|, and |relative_y_offset| should be set so that | |
24 // |background_id| lines up with the frame image and that | |
25 // |background_overlay_id| lines up with the top of the tab. | |
26 static gfx::ImageSkia CreateTiledInactiveBackground( | |
27 ui::ThemeProvider* theme_provider, | |
28 int background_id, | |
29 int background_overlay_id, | |
30 int relative_y_offset, | |
31 int src_x, | |
32 int src_y, | |
33 int dst_w, | |
34 int dst_h); | |
35 | |
36 private: | |
37 DISALLOW_IMPLICIT_CONSTRUCTORS(TabPaintUtil); | |
38 }; | |
39 | |
40 #endif // CHROME_BROWSER_UI_VIEWS_TABS_TAB_UTIL_H_ | |
OLD | NEW |