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

Side by Side 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, 8 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 // Copyright (c) 2008 The Chromium Authors. All rights reserved. Use of this
2 // source code is governed by a BSD-style license that can be found in the
3 // LICENSE file.
4
5 #include "webkit/glue/webkit_glue.h"
6
7 #include <gtk/gtk.h>
8
9 #include "webkit/glue/screen_info.h"
10
11 namespace webkit_glue {
12
13 ScreenInfo GetScreenInfoHelper(gfx::NativeView window) {
14 ScreenInfo results;
15 results.depth = 32;
16 results.depth_per_component = 8;
17 results.is_monochrome = false;
18
19 if (!window)
20 return results;
21
22 GdkScreen* screen = gtk_widget_get_screen(GTK_WIDGET(window));
23 results.rect.SetRect(0, 0, gdk_screen_get_width(screen),
24 gdk_screen_get_height(screen));
25 // I don't know of a way to query the "maximise" size of the window (e.g.
26 // screen size less sidebars etc) since this is something which only the
27 // window manager knows.
28 results.available_rect = results.rect;
29
30 return results;
31 }
32
33 } // namespace webkit_glue
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698