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

Unified Diff: ui/base/gtk/gtk_screen_utils.h

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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/content_browser.gypi ('k') | ui/base/gtk/gtk_screen_utils.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/base/gtk/gtk_screen_utils.h
diff --git a/ui/base/gtk/gtk_screen_utils.h b/ui/base/gtk/gtk_screen_utils.h
new file mode 100644
index 0000000000000000000000000000000000000000..8262eb49661db3aed51d1397815546c9093eb305
--- /dev/null
+++ b/ui/base/gtk/gtk_screen_utils.h
@@ -0,0 +1,26 @@
+// Copyright (c) 2011 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.
+
+#ifndef UI_BASE_GTK_GTK_SCREEN_UTILS_H_
+#define UI_BASE_GTK_GTK_SCREEN_UTILS_H_
+
+#include <gtk/gtk.h>
+
+#include "ui/base/ui_export.h"
+#include "ui/gfx/point.h"
+
+namespace ui {
+
+// Returns true if the screen is composited, false otherwise.
+UI_EXPORT bool IsScreenComposited();
+
+// Get the current location of the mouse cursor relative to the screen.
+UI_EXPORT gfx::Point ScreenPoint(GtkWidget* widget);
+
+// Get the current location of the mouse cursor relative to the widget.
+UI_EXPORT gfx::Point ClientPoint(GtkWidget* widget);
+
+} // namespace ui
+
+#endif // UI_BASE_GTK_GTK_SCREEN_UTILS_H_
« no previous file with comments | « content/content_browser.gypi ('k') | ui/base/gtk/gtk_screen_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698