diff options
author | estade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-10-26 00:11:45 +0000 |
---|---|---|
committer | estade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-10-26 00:11:45 +0000 |
commit | cb592c2a727cb7e9609a4b5dccf4e719ab120088 (patch) | |
tree | 634df95c265416d3b7c13012d76addcae7c49350 /chrome/browser/autocomplete | |
parent | b6d26b3107989c5300ffbf3a2e2f56d60bf6906e (diff) | |
download | chromium_src-cb592c2a727cb7e9609a4b5dccf4e719ab120088.zip chromium_src-cb592c2a727cb7e9609a4b5dccf4e719ab120088.tar.gz chromium_src-cb592c2a727cb7e9609a4b5dccf4e719ab120088.tar.bz2 |
[linux] instant search/browsing first cut
Implements the tab contents switching stuff (but not the suggestion text bit).
BUG=58937
TEST=manual (must be enabled in about:flags)
Review URL: http://codereview.chromium.org/4049002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@63815 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/autocomplete')
-rw-r--r-- | chrome/browser/autocomplete/autocomplete_popup_view_gtk.cc | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/chrome/browser/autocomplete/autocomplete_popup_view_gtk.cc b/chrome/browser/autocomplete/autocomplete_popup_view_gtk.cc index aaf7e05..3d3d4e8 100644 --- a/chrome/browser/autocomplete/autocomplete_popup_view_gtk.cc +++ b/chrome/browser/autocomplete/autocomplete_popup_view_gtk.cc @@ -356,9 +356,20 @@ void AutocompletePopupViewGtk::UpdatePopupAppearance() { } gfx::Rect AutocompletePopupViewGtk::GetTargetBounds() { - return gfx::Rect(); -} + if (!GTK_WIDGET_REALIZED(window_)) + return gfx::Rect(); + + gfx::Rect retval = gtk_util::GetWidgetScreenBounds(window_); + // The widget bounds don't update synchronously so may be out of sync with + // our last size request. + GtkRequisition req; + gtk_widget_size_request(window_, &req); + retval.set_width(req.width); + retval.set_height(req.height); + + return retval; +} void AutocompletePopupViewGtk::PaintUpdatesNow() { // Paint our queued invalidations now, synchronously. |