Commit c3fdbdf7 authored by junmin.zhu@intel.com's avatar junmin.zhu@intel.com

Add frameless for ShellWindow on gtk.

BUG=130182
TEST=manually


Review URL: https://chromiumcodereview.appspot.com/10826145

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@150233 0039d316-1c4b-4281-b951-d872f2087c98
parent 1f9ba541
...@@ -30,6 +30,10 @@ ShellWindowGtk::ShellWindowGtk(Profile* profile, ...@@ -30,6 +30,10 @@ ShellWindowGtk::ShellWindowGtk(Profile* profile,
gtk_window_set_default_size( gtk_window_set_default_size(
window_, params.bounds.width(), params.bounds.height()); window_, params.bounds.width(), params.bounds.height());
// Hide titlebar when {frame: 'none'} specified on ShellWindow.
if (params.frame == ShellWindow::CreateParams::FRAME_NONE)
gtk_window_set_decorated(window_, false);
int min_width = params.minimum_size.width(); int min_width = params.minimum_size.width();
int min_height = params.minimum_size.height(); int min_height = params.minimum_size.height();
int max_width = params.maximum_size.width(); int max_width = params.maximum_size.width();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment