summaryrefslogtreecommitdiffstats
path: root/ui/base/x/x11_util.h
diff options
context:
space:
mode:
authortony@chromium.org <tony@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-08-23 05:49:00 +0000
committertony@chromium.org <tony@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-08-23 05:49:00 +0000
commit8ea1f219c6b8ab4352a8501cdf0ef99217a662cd (patch)
tree02de98b258412fa58982a435ed2a28949164b0fb /ui/base/x/x11_util.h
parent6d5309b1ff19d0d94473dd37f30cd332e88cbddf (diff)
downloadchromium_src-8ea1f219c6b8ab4352a8501cdf0ef99217a662cd.zip
chromium_src-8ea1f219c6b8ab4352a8501cdf0ef99217a662cd.tar.gz
chromium_src-8ea1f219c6b8ab4352a8501cdf0ef99217a662cd.tar.bz2
Only set _GTK_HIDE_TITLEBAR_WHEN_MAXIMIZED if the custom frame is enabled.
Otherwise, we hide the titlebar when maximized when the user explicitly wanted it. BUG=137447 Review URL: https://chromiumcodereview.appspot.com/10875013 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@152952 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ui/base/x/x11_util.h')
-rw-r--r--ui/base/x/x11_util.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/ui/base/x/x11_util.h b/ui/base/x/x11_util.h
index b73c3f0..c8b4e25 100644
--- a/ui/base/x/x11_util.h
+++ b/ui/base/x/x11_util.h
@@ -120,8 +120,14 @@ UI_EXPORT GtkWindow* GetGtkWindowFromX11Window(XID xid);
UI_EXPORT void* GetVisualFromGtkWidget(GtkWidget* widget);
#endif // defined(TOOLKIT_GTK)
+enum HideTitlebarWhenMaximized {
+ SHOW_TITLEBAR_WHEN_MAXIMIZED = 0,
+ HIDE_TITLEBAR_WHEN_MAXIMIZED = 1,
+};
// Sets _GTK_HIDE_TITLEBAR_WHEN_MAXIMIZED on |window|.
-UI_EXPORT void SetHideTitlebarWhenMaximizedProperty(XID window);
+UI_EXPORT void SetHideTitlebarWhenMaximizedProperty(
+ XID window,
+ HideTitlebarWhenMaximized property);
// Return the number of bits-per-pixel for a pixmap of the given depth
UI_EXPORT int BitsPerPixelForPixmapDepth(Display* display, int depth);