Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(266)

Side by Side Diff: chrome/browser/ui/views/tabs/tab_paint_util.h

Issue 18486007: Fix the misalignment on CrOS of the tab background images (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
(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 {
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_PAINT_UTIL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698