summaryrefslogtreecommitdiffstats
path: root/chrome/common/gtk_util.h
diff options
context:
space:
mode:
authorerg@chromium.org <erg@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-02-10 18:58:54 +0000
committererg@chromium.org <erg@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-02-10 18:58:54 +0000
commitd8e7a54e37ed11d60f7d8dd8f5d5732cffe94b95 (patch)
tree8912ce2d6acc77fda0119d872283268390eeef15 /chrome/common/gtk_util.h
parent13044cdc2b1e8fb304af65a7913c083f52c623bc (diff)
downloadchromium_src-d8e7a54e37ed11d60f7d8dd8f5d5732cffe94b95.zip
chromium_src-d8e7a54e37ed11d60f7d8dd8f5d5732cffe94b95.tar.gz
chromium_src-d8e7a54e37ed11d60f7d8dd8f5d5732cffe94b95.tar.bz2
GTK: Implements the content settings window and the minor changes to the options dialog.
The "Exceptions" dialogs are still not implemented; they're the next step but this changelist is already getting pretty huge. BUG=35178 TEST=none Review URL: http://codereview.chromium.org/602005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@38642 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/common/gtk_util.h')
-rw-r--r--chrome/common/gtk_util.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/chrome/common/gtk_util.h b/chrome/common/gtk_util.h
index f1bc1b6..93533fd 100644
--- a/chrome/common/gtk_util.h
+++ b/chrome/common/gtk_util.h
@@ -94,6 +94,12 @@ void GetWidgetSizeFromCharacters(GtkWidget* widget, double width_chars,
void SetWindowSizeFromResources(GtkWindow* window,
int width_id, int height_id, bool resizable);
+// Places |window| approximately over center of |parent|, it also moves window
+// to parent's desktop. Use this only for non-modal dialogs, such as the
+// options window and content settings window; otherwise you should be using
+// transient_for.
+void CenterOverWindow(GtkWindow* window, GtkWindow* parent);
+
// Remove all children from this container.
void RemoveAllChildren(GtkWidget* container);