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

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

Issue 9390038: Move automation/ui_controls to ui/ui_controls (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: win_aura fix, sync Created 8 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « ui/aura/ui_controls_x11.cc ('k') | ui/base/gtk/gtk_screen_util.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef UI_BASE_GTK_GTK_SCREEN_UTILS_H_ 5 #ifndef UI_BASE_GTK_GTK_SCREEN_UTILS_H_
6 #define UI_BASE_GTK_GTK_SCREEN_UTILS_H_ 6 #define UI_BASE_GTK_GTK_SCREEN_UTILS_H_
7 7
8 #include <gtk/gtk.h> 8 #include <gtk/gtk.h>
9 9
10 #include "ui/base/ui_export.h" 10 #include "ui/base/ui_export.h"
11 #include "ui/gfx/point.h" 11 #include "ui/gfx/point.h"
12 #include "ui/gfx/rect.h"
12 13
13 namespace ui { 14 namespace ui {
14 15
15 // Returns true if the screen is composited, false otherwise. 16 // Returns true if the screen is composited, false otherwise.
16 UI_EXPORT bool IsScreenComposited(); 17 UI_EXPORT bool IsScreenComposited();
17 18
18 // Get the current location of the mouse cursor relative to the screen. 19 // Get the current location of the mouse cursor relative to the screen.
19 UI_EXPORT gfx::Point ScreenPoint(GtkWidget* widget); 20 UI_EXPORT gfx::Point ScreenPoint(GtkWidget* widget);
20 21
21 // Get the current location of the mouse cursor relative to the widget. 22 // Get the current location of the mouse cursor relative to the widget.
22 UI_EXPORT gfx::Point ClientPoint(GtkWidget* widget); 23 UI_EXPORT gfx::Point ClientPoint(GtkWidget* widget);
23 24
25 // Gets the position of a gtk widget in screen coordinates.
26 UI_EXPORT gfx::Point GetWidgetScreenPosition(GtkWidget* widget);
27
28 // Returns the bounds of the specified widget in screen coordinates.
29 UI_EXPORT gfx::Rect GetWidgetScreenBounds(GtkWidget* widget);
30
24 } // namespace ui 31 } // namespace ui
25 32
26 #endif // UI_BASE_GTK_GTK_SCREEN_UTILS_H_ 33 #endif // UI_BASE_GTK_GTK_SCREEN_UTILS_H_
OLDNEW
« no previous file with comments | « ui/aura/ui_controls_x11.cc ('k') | ui/base/gtk/gtk_screen_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698