summaryrefslogtreecommitdiffstats
path: root/chrome/common
diff options
context:
space:
mode:
authorerg@google.com <erg@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-08-12 18:19:59 +0000
committererg@google.com <erg@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-08-12 18:19:59 +0000
commit7e342930e757290f6bd1ba80ed9e25853d2e3e75 (patch)
tree1316834dc00d905e796d6d905122cd96cfdf92b0 /chrome/common
parentd1d25e4d3c8fa47a78352813c061cc9f71f562ab (diff)
downloadchromium_src-7e342930e757290f6bd1ba80ed9e25853d2e3e75.zip
chromium_src-7e342930e757290f6bd1ba80ed9e25853d2e3e75.tar.gz
chromium_src-7e342930e757290f6bd1ba80ed9e25853d2e3e75.tar.bz2
GTK: Popup notification should have transparent rounded corners.
Also uses the new consistent border color in GTK theme mode. Review URL: http://codereview.chromium.org/165356 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@23189 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/common')
-rw-r--r--chrome/common/gtk_util.cc5
-rw-r--r--chrome/common/gtk_util.h4
2 files changed, 9 insertions, 0 deletions
diff --git a/chrome/common/gtk_util.cc b/chrome/common/gtk_util.cc
index c97a3a5..661517e 100644
--- a/chrome/common/gtk_util.cc
+++ b/chrome/common/gtk_util.cc
@@ -501,4 +501,9 @@ gfx::Point ClientPoint(GtkWidget* widget) {
return gfx::Point(x, y);
}
+GdkPoint MakeBidiGdkPoint(gint x, gint y, gint width, bool ltr) {
+ GdkPoint point = {ltr ? x : width - x, y};
+ return point;
+}
+
} // namespace gtk_util
diff --git a/chrome/common/gtk_util.h b/chrome/common/gtk_util.h
index 867dbc5..556e77f 100644
--- a/chrome/common/gtk_util.h
+++ b/chrome/common/gtk_util.h
@@ -156,6 +156,10 @@ gfx::Point ScreenPoint(GtkWidget* widget);
// Get the current location of the mouse cursor relative to the widget.
gfx::Point ClientPoint(GtkWidget* widget);
+// Reverses a point in RTL mode. Used in making vectors of GdkPoints for window
+// shapes.
+GdkPoint MakeBidiGdkPoint(gint x, gint y, gint width, bool ltr);
+
} // namespace gtk_util
#endif // CHROME_COMMON_GTK_UTIL_H_