summaryrefslogtreecommitdiffstats
path: root/chrome/common/gtk_util.h
diff options
context:
space:
mode:
authorbeng@google.com <beng@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-05-14 23:16:21 +0000
committerbeng@google.com <beng@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-05-14 23:16:21 +0000
commite5a99ff3bd91f5493e7916b9dca6b29429ce0f43 (patch)
treecc12f65483a8c95dcea331605cc84af3a7c18da6 /chrome/common/gtk_util.h
parent63e9985f427227c977c96d1105de6e251dfd7554 (diff)
downloadchromium_src-e5a99ff3bd91f5493e7916b9dca6b29429ce0f43.zip
chromium_src-e5a99ff3bd91f5493e7916b9dca6b29429ce0f43.tar.gz
chromium_src-e5a99ff3bd91f5493e7916b9dca6b29429ce0f43.tar.bz2
Move bitmap conversion function from chrome/common/gtk_utils.h into app/gfx/gtk_utils.h
http://crbug.com/11387 Review URL: http://codereview.chromium.org/115382 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@16122 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/common/gtk_util.h')
-rw-r--r--chrome/common/gtk_util.h12
1 files changed, 3 insertions, 9 deletions
diff --git a/chrome/common/gtk_util.h b/chrome/common/gtk_util.h
index ff3dc5c..9a94182 100644
--- a/chrome/common/gtk_util.h
+++ b/chrome/common/gtk_util.h
@@ -9,9 +9,7 @@
#include "webkit/glue/window_open_disposition.h"
-typedef struct _GdkPixbuf GdkPixbuf;
typedef struct _GtkWidget GtkWidget;
-class SkBitmap;
namespace event_utils {
@@ -22,13 +20,9 @@ WindowOpenDisposition DispositionFromEventFlags(guint state);
} // namespace event_utils
-namespace gfx {
+namespace gtk_util {
-// Convert and copy a SkBitmap to a GdkPixbuf. NOTE: this uses BGRAToRGBA, so
-// it is an expensive operation.
-GdkPixbuf* GdkPixbufFromSkBitmap(const SkBitmap* bitmap);
-
-// Create a GtkBin with |child| as its child widget. This bin will paint a
+ // Create a GtkBin with |child| as its child widget. This bin will paint a
// border of color |color| with the sizes specified in pixels.
GtkWidget* CreateGtkBorderBin(GtkWidget* child, const GdkColor* color,
int top, int bottom, int left, int right);
@@ -36,6 +30,6 @@ GtkWidget* CreateGtkBorderBin(GtkWidget* child, const GdkColor* color,
// Remove all children from this container.
void RemoveAllChildren(GtkWidget* container);
-} // namespace gfx
+} // namespace gtk_util
#endif // CHROME_COMMON_GTK_UTIL_H_