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

Side by Side Diff: ui/base/gtk/gtk_screen_util.h

Issue 231733005: Delete the GTK+ port of Chrome. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remerge to ToT Created 6 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) 2012 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 #ifndef UI_BASE_GTK_GTK_SCREEN_UTILS_H_
6 #define UI_BASE_GTK_GTK_SCREEN_UTILS_H_
7
8 #include <gtk/gtk.h>
9
10 #include "ui/base/ui_base_export.h"
11 #include "ui/gfx/point.h"
12 #include "ui/gfx/rect.h"
13 #include "ui/gfx/vector2d.h"
14
15 namespace ui {
16
17 // Returns true if the screen is composited, false otherwise.
18 UI_BASE_EXPORT bool IsScreenComposited();
19
20 // Get the current location of the mouse cursor relative to the screen.
21 UI_BASE_EXPORT gfx::Point ScreenPoint(GtkWidget* widget);
22
23 // Get the current location of the mouse cursor relative to the widget.
24 UI_BASE_EXPORT gfx::Point ClientPoint(GtkWidget* widget);
25
26 // Gets the offset of a gtk widget from the origin in screen coordinates.
27 UI_BASE_EXPORT gfx::Vector2d GetWidgetScreenOffset(GtkWidget* widget);
28
29 // Returns the bounds of the specified widget in screen coordinates.
30 UI_BASE_EXPORT gfx::Rect GetWidgetScreenBounds(GtkWidget* widget);
31
32 } // namespace ui
33
34 #endif // UI_BASE_GTK_GTK_SCREEN_UTILS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698