| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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 CHROME_COMMON_GTK_UTIL_H_ | 5 #ifndef CHROME_COMMON_GTK_UTIL_H_ |
| 6 #define CHROME_COMMON_GTK_UTIL_H_ | 6 #define CHROME_COMMON_GTK_UTIL_H_ |
| 7 | 7 |
| 8 #include <gtk/gtk.h> | 8 #include <gtk/gtk.h> |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 117 // the original value is returned unchanged. | 117 // the original value is returned unchanged. |
| 118 int MirroredLeftPointForRect(GtkWidget* widget, const gfx::Rect& bounds); | 118 int MirroredLeftPointForRect(GtkWidget* widget, const gfx::Rect& bounds); |
| 119 | 119 |
| 120 // Returns the mirrored x value for the point |x| if the layout is RTL; | 120 // Returns the mirrored x value for the point |x| if the layout is RTL; |
| 121 // otherwise, the original value is returned unchanged. | 121 // otherwise, the original value is returned unchanged. |
| 122 int MirroredXCoordinate(GtkWidget* widget, int x); | 122 int MirroredXCoordinate(GtkWidget* widget, int x); |
| 123 | 123 |
| 124 // Returns true if the pointer is currently inside the widget. | 124 // Returns true if the pointer is currently inside the widget. |
| 125 bool WidgetContainsCursor(GtkWidget* widget); | 125 bool WidgetContainsCursor(GtkWidget* widget); |
| 126 | 126 |
| 127 // Sets the icon of |window| to the product icon (potentially used in window |
| 128 // border or alt-tab list). |
| 129 void SetWindowIcon(GtkWindow* window); |
| 130 |
| 127 } // namespace gtk_util | 131 } // namespace gtk_util |
| 128 | 132 |
| 129 #endif // CHROME_COMMON_GTK_UTIL_H_ | 133 #endif // CHROME_COMMON_GTK_UTIL_H_ |
| OLD | NEW |