diff options
author | deanm@chromium.org <deanm@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-04-27 08:13:43 +0000 |
---|---|---|
committer | deanm@chromium.org <deanm@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-04-27 08:13:43 +0000 |
commit | aa90e58c7e88cbcae7e4a7667e047c320a3fc0aa (patch) | |
tree | b5941c6472ea95896937f83548d06941b48af26d /chrome/browser/autocomplete/autocomplete_edit_view_gtk.cc | |
parent | 1b24f85903fca15bb44122c43c2e0e4548d1e094 (diff) | |
download | chromium_src-aa90e58c7e88cbcae7e4a7667e047c320a3fc0aa.zip chromium_src-aa90e58c7e88cbcae7e4a7667e047c320a3fc0aa.tar.gz chromium_src-aa90e58c7e88cbcae7e4a7667e047c320a3fc0aa.tar.bz2 |
Use AutocompletePopupPositioner for the Linux Omnibox.
Now a few less magic numbers in exchange for a lot more plumbing.
BUG=10966
Review URL: http://codereview.chromium.org/92127
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@14592 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/autocomplete/autocomplete_edit_view_gtk.cc')
-rw-r--r-- | chrome/browser/autocomplete/autocomplete_edit_view_gtk.cc | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/chrome/browser/autocomplete/autocomplete_edit_view_gtk.cc b/chrome/browser/autocomplete/autocomplete_edit_view_gtk.cc index 6e8efed..93e60ef 100644 --- a/chrome/browser/autocomplete/autocomplete_edit_view_gtk.cc +++ b/chrome/browser/autocomplete/autocomplete_edit_view_gtk.cc @@ -35,7 +35,8 @@ AutocompleteEditViewGtk::AutocompleteEditViewGtk( AutocompleteEditController* controller, ToolbarModel* toolbar_model, Profile* profile, - CommandUpdater* command_updater) + CommandUpdater* command_updater, + AutocompletePopupPositioner* popup_positioner) : text_view_(NULL), tag_table_(NULL), text_buffer_(NULL), @@ -43,7 +44,8 @@ AutocompleteEditViewGtk::AutocompleteEditViewGtk( secure_scheme_tag_(NULL), insecure_scheme_tag_(NULL), model_(new AutocompleteEditModel(this, controller, profile)), - popup_view_(new AutocompletePopupViewGtk(this, model_.get(), profile)), + popup_view_(new AutocompletePopupViewGtk(this, model_.get(), profile, + popup_positioner)), controller_(controller), toolbar_model_(toolbar_model), command_updater_(command_updater), @@ -320,12 +322,6 @@ bool AutocompleteEditViewGtk::OnAfterPossibleChange() { return something_changed; } -void AutocompleteEditViewGtk::BottomLeftPosWidth(int* x, int* y, int* width) { - gdk_window_get_origin(text_view_->window, x, y); - *y += text_view_->allocation.height; - *width = text_view_->allocation.width; -} - void AutocompleteEditViewGtk::HandleBeginUserAction() { OnBeforePossibleChange(); } |