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

Unified Diff: chrome/browser/ntp_background_util.h

Issue 255086: GTK: Draw bottom-aligned ntp themes on floating bookmark bar.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: +comment Created 11 years, 2 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/gtk/bookmark_bar_gtk.cc ('k') | chrome/browser/ntp_background_util.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ntp_background_util.h
===================================================================
--- chrome/browser/ntp_background_util.h (revision 0)
+++ chrome/browser/ntp_background_util.h (revision 0)
@@ -0,0 +1,29 @@
+// 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.
+
+#ifndef CHROME_BROWSER_NTP_BACKGROUND_UTIL_H_
+#define CHROME_BROWSER_NTP_BACKGROUND_UTIL_H_
+
+class ThemeProvider;
+
+namespace gfx {
+class Canvas;
+class Rect;
+}
+
+class NtpBackgroundUtil {
+ public:
+ // 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(
+ ThemeProvider* tp, gfx::Canvas* canvas,
+ const gfx::Rect& area, int tab_contents_height);
+
+ private:
+ NtpBackgroundUtil() {}
+};
+
+#endif // CHROME_BROWSER_NTP_BACKGROUND_UTIL_H_
Property changes on: chrome/browser/ntp_background_util.h
___________________________________________________________________
Added: svn:eol-style
+ LF
« no previous file with comments | « chrome/browser/gtk/bookmark_bar_gtk.cc ('k') | chrome/browser/ntp_background_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698