summaryrefslogtreecommitdiffstats
path: root/webkit/glue/webkit_glue_gtk.cc
diff options
context:
space:
mode:
authorestade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2008-11-14 20:08:05 +0000
committerestade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2008-11-14 20:08:05 +0000
commita3f5e55a4fceab9f00698d65e0c84fc05718677b (patch)
treef33176e88b0d023a19a18259bea8b798f9ca4a4f /webkit/glue/webkit_glue_gtk.cc
parent5425c6863c0d8eebdf4b9b8f85b2b67d8248342c (diff)
downloadchromium_src-a3f5e55a4fceab9f00698d65e0c84fc05718677b.zip
chromium_src-a3f5e55a4fceab9f00698d65e0c84fc05718677b.tar.gz
chromium_src-a3f5e55a4fceab9f00698d65e0c84fc05718677b.tar.bz2
Basic GetScreenInfo implementation for gtk.
Review URL: http://codereview.chromium.org/10754 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@5499 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/glue/webkit_glue_gtk.cc')
-rw-r--r--webkit/glue/webkit_glue_gtk.cc23
1 files changed, 23 insertions, 0 deletions
diff --git a/webkit/glue/webkit_glue_gtk.cc b/webkit/glue/webkit_glue_gtk.cc
new file mode 100644
index 0000000..fc9c2fa
--- /dev/null
+++ b/webkit/glue/webkit_glue_gtk.cc
@@ -0,0 +1,23 @@
+// Copyright (c) 2008 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.
+
+#include "webkit/glue/webkit_glue.h"
+
+#include <gtk/gtk.h>
+
+namespace webkit_glue {
+
+// TODO: complete this function
+ScreenInfo GetScreenInfoHelper(gfx::ViewHandle window) {
+ GdkScreen* screen = gtk_widget_get_screen(GTK_WIDGET(window));
+
+ ScreenInfo results;
+ results.rect.SetRect(0, 0, gdk_screen_get_width(screen),
+ gdk_screen_get_height(screen));
+
+ return results;
+}
+
+} // namespace webkit_glue
+