blob: f23d4739937213720b1ac327a69dd8b8678148de [file] [log] [blame]
// Copyright (c) 2009 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
namespace gfx {
class Canvas;
class Rect;
namespace ui {
class ThemeProvider;
class NtpBackgroundUtil {
// Paints the NTP background on |canvas|. |area| is the area of the canvas
// that gets painted and also serves as the origin of the image (for top-
// aligned images). |tab_contents_height| is necessary for correctly painting
// bottom-aligned images since then the origin is the bottom of the web page.
static void PaintBackgroundDetachedMode(
ui::ThemeProvider* tp, gfx::Canvas* canvas,
const gfx::Rect& area, int tab_contents_height);
NtpBackgroundUtil() {}