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

Side by Side Diff: chrome/browser/ui/views/tabs/tab_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_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 {
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 };
34
35 #endif // CHROME_BROWSER_UI_VIEWS_TABS_TAB_UTIL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698