| OLD | NEW |
| (Empty) | |
| 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. |
| 4 |
| 5 #ifndef CHROME_BROWSER_NTP_BACKGROUND_UTIL_H_ |
| 6 #define CHROME_BROWSER_NTP_BACKGROUND_UTIL_H_ |
| 7 |
| 8 class ThemeProvider; |
| 9 |
| 10 namespace gfx { |
| 11 class Canvas; |
| 12 class Rect; |
| 13 } |
| 14 |
| 15 class NtpBackgroundUtil { |
| 16 public: |
| 17 // Paints the NTP background on |canvas|. |area| is the area of the canvas |
| 18 // that gets painted and also serves as the origin of the image (for top- |
| 19 // aligned images). |tab_contents_height| is necessary for correctly painting |
| 20 // bottom-aligned images since then the origin is the bottom of the web page. |
| 21 static void PaintBackgroundDetachedMode( |
| 22 ThemeProvider* tp, gfx::Canvas* canvas, |
| 23 const gfx::Rect& area, int tab_contents_height); |
| 24 |
| 25 private: |
| 26 NtpBackgroundUtil() {} |
| 27 }; |
| 28 |
| 29 #endif // CHROME_BROWSER_NTP_BACKGROUND_UTIL_H_ |
| OLD | NEW |