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

Side by Side Diff: ui/base/gtk/gtk_screen_utils.cc

Issue 8196001: content: Split web_drag_dest_gtk.cc into chrome/ and content/ parts. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix viewgtk compile Created 9 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « ui/base/gtk/gtk_screen_utils.h ('k') | ui/ui.gyp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "ui/base/gtk/gtk_screen_utils.h"
6
7 namespace ui {
8
9 bool IsScreenComposited() {
10 GdkScreen* screen = gdk_screen_get_default();
11 return gdk_screen_is_composited(screen) == TRUE;
12 }
13
14 gfx::Point ScreenPoint(GtkWidget* widget) {
15 int x, y;
16 gdk_display_get_pointer(gtk_widget_get_display(widget), NULL, &x, &y,
17 NULL);
18 return gfx::Point(x, y);
19 }
20
21 gfx::Point ClientPoint(GtkWidget* widget) {
22 int x, y;
23 gtk_widget_get_pointer(widget, &x, &y);
24 return gfx::Point(x, y);
25 }
26
27 } // namespace ui
OLDNEW
« no previous file with comments | « ui/base/gtk/gtk_screen_utils.h ('k') | ui/ui.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698