summaryrefslogtreecommitdiffstats
path: root/chrome/browser/autocomplete/autocomplete_edit_view_gtk.h
diff options
context:
space:
mode:
authordeanm@chromium.org <deanm@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-04-27 08:13:43 +0000
committerdeanm@chromium.org <deanm@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-04-27 08:13:43 +0000
commitaa90e58c7e88cbcae7e4a7667e047c320a3fc0aa (patch)
treeb5941c6472ea95896937f83548d06941b48af26d /chrome/browser/autocomplete/autocomplete_edit_view_gtk.h
parent1b24f85903fca15bb44122c43c2e0e4548d1e094 (diff)
downloadchromium_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.h')
-rw-r--r--chrome/browser/autocomplete/autocomplete_edit_view_gtk.h8
1 files changed, 3 insertions, 5 deletions
diff --git a/chrome/browser/autocomplete/autocomplete_edit_view_gtk.h b/chrome/browser/autocomplete/autocomplete_edit_view_gtk.h
index 7ee00dd..33af52d 100644
--- a/chrome/browser/autocomplete/autocomplete_edit_view_gtk.h
+++ b/chrome/browser/autocomplete/autocomplete_edit_view_gtk.h
@@ -18,6 +18,7 @@
class AutocompleteEditController;
class AutocompleteEditModel;
+class AutocompletePopupPositioner;
class AutocompletePopupViewGtk;
class CommandUpdater;
class Profile;
@@ -29,7 +30,8 @@ class AutocompleteEditViewGtk : public AutocompleteEditView {
AutocompleteEditViewGtk(AutocompleteEditController* controller,
ToolbarModel* toolbar_model,
Profile* profile,
- CommandUpdater* command_updater);
+ CommandUpdater* command_updater,
+ AutocompletePopupPositioner* popup_positioner);
~AutocompleteEditViewGtk();
// Initialize, create the underlying widgets, etc.
@@ -82,10 +84,6 @@ class AutocompleteEditViewGtk : public AutocompleteEditView {
virtual void OnBeforePossibleChange();
virtual bool OnAfterPossibleChange();
- // Return the position (root coordinates) of the bottom left corner and width
- // of the location input box. Used by the popup view to position itself.
- void BottomLeftPosWidth(int* x, int* y, int* width);
-
private:
// Modeled like the Windows CHARRANGE. Represent a pair of cursor position
// offsets. Since GtkTextIters are invalid after the buffer is changed, we