Add a minor text member to ui::MenuModel.
[chromium-blink-merge.git] / chrome / browser / ui / ntp_background_util.h
blobf23d4739937213720b1ac327a69dd8b8678148de
1 // Copyright (c) 2009 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.
5 #ifndef CHROME_BROWSER_UI_NTP_BACKGROUND_UTIL_H_
6 #define CHROME_BROWSER_UI_NTP_BACKGROUND_UTIL_H_
8 namespace gfx {
9 class Canvas;
10 class Rect;
13 namespace ui {
14 class ThemeProvider;
17 class NtpBackgroundUtil {
18 public:
19 // Paints the NTP background on |canvas|. |area| is the area of the canvas
20 // that gets painted and also serves as the origin of the image (for top-
21 // aligned images). |tab_contents_height| is necessary for correctly painting
22 // bottom-aligned images since then the origin is the bottom of the web page.
23 static void PaintBackgroundDetachedMode(
24 ui::ThemeProvider* tp, gfx::Canvas* canvas,
25 const gfx::Rect& area, int tab_contents_height);
27 private:
28 NtpBackgroundUtil() {}
31 #endif // CHROME_BROWSER_UI_NTP_BACKGROUND_UTIL_H_