diff options
author | oshima@chromium.org <oshima@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-11-11 00:40:46 +0000 |
---|---|---|
committer | oshima@chromium.org <oshima@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-11-11 00:40:46 +0000 |
commit | 58b42f2299482ea0deaf88f649804cbb6be8bc6a (patch) | |
tree | a97328ab7a10823c3b8372adfd667303f289a5e8 /views/widget/widget_gtk.cc | |
parent | d0f898d13ed166a7adf71bbb163a3ec651bdb338 (diff) | |
download | chromium_src-58b42f2299482ea0deaf88f649804cbb6be8bc6a.zip chromium_src-58b42f2299482ea0deaf88f649804cbb6be8bc6a.tar.gz chromium_src-58b42f2299482ea0deaf88f649804cbb6be8bc6a.tar.bz2 |
Adding a couple of missing parts for extensios on linux/views.
* Creating RenderWidgetHostView for gtk
* Fix assertion failure in BrowserBubble
* Don't change the window size if the size is empty, which causes gtk assertion error.
With this change, most of extension tests in browser passes except for toolstrip.
Given that toolstrip is obsolete, may be we should just remove it from test.
BUG=None
TEST=Run browesr_tests. All tests for extension must pass except for ExtensionApiTest.Toolstrip
Review URL: http://codereview.chromium.org/390006
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@31622 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'views/widget/widget_gtk.cc')
-rw-r--r-- | views/widget/widget_gtk.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/views/widget/widget_gtk.cc b/views/widget/widget_gtk.cc index 7d63a453..8762e14 100644 --- a/views/widget/widget_gtk.cc +++ b/views/widget/widget_gtk.cc @@ -403,7 +403,9 @@ void WidgetGtk::SetBounds(const gfx::Rect& bounds) { GtkWindow* gtk_window = GTK_WINDOW(widget_); // TODO: this may need to set an initial size if not showing. // TODO: need to constrain based on screen size. - gtk_window_resize(gtk_window, bounds.width(), bounds.height()); + if (!bounds.IsEmpty()) { + gtk_window_resize(gtk_window, bounds.width(), bounds.height()); + } gtk_window_move(gtk_window, bounds.x(), bounds.y()); } } @@ -1294,4 +1296,3 @@ Widget* Widget::GetWidgetFromNativeWindow(gfx::NativeWindow native_window) { } } // namespace views - |