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

Unified Diff: webkit/glue/webkit_glue_gtk.cc

Issue 58008: Replace webkit/glue/screen_info.h with WebKit/chromium/public/WebScreenInfo.h... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 11 years, 9 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
Index: webkit/glue/webkit_glue_gtk.cc
===================================================================
--- webkit/glue/webkit_glue_gtk.cc (revision 12916)
+++ webkit/glue/webkit_glue_gtk.cc (working copy)
@@ -1,33 +0,0 @@
-// 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>
-
-#include "webkit/glue/screen_info.h"
-
-namespace webkit_glue {
-
-ScreenInfo GetScreenInfoHelper(gfx::NativeView window) {
- ScreenInfo results;
- results.depth = 32;
- results.depth_per_component = 8;
- results.is_monochrome = false;
-
- if (!window)
- return results;
-
- GdkScreen* screen = gtk_widget_get_screen(GTK_WIDGET(window));
- results.rect.SetRect(0, 0, gdk_screen_get_width(screen),
- gdk_screen_get_height(screen));
- // I don't know of a way to query the "maximise" size of the window (e.g.
- // screen size less sidebars etc) since this is something which only the
- // window manager knows.
- results.available_rect = results.rect;
-
- return results;
-}
-
-} // namespace webkit_glue

Powered by Google App Engine
This is Rietveld 408576698