From 46fe8e9ecede8772df308ae083fec770998d1ecc Mon Sep 17 00:00:00 2001 From: "sky@chromium.org" <sky@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> Date: Wed, 22 Sep 2010 03:32:47 +0000 Subject: Makes match preview send the dimensions of the omnibox to the page. BUG=54833 TEST=none Review URL: http://codereview.chromium.org/3417011 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@60153 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome/browser/autocomplete/autocomplete_edit.h | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'chrome/browser/autocomplete/autocomplete_edit.h') diff --git a/chrome/browser/autocomplete/autocomplete_edit.h b/chrome/browser/autocomplete/autocomplete_edit.h index 1454111..caca730 100644 --- a/chrome/browser/autocomplete/autocomplete_edit.h +++ b/chrome/browser/autocomplete/autocomplete_edit.h @@ -22,6 +22,10 @@ class AutocompleteEditController; class AutocompleteEditModel; class AutocompleteEditView; +namespace gfx { +class Rect; +} + // TODO(pkasting): The names and contents of the classes in // this file are temporary. I am in hack-and-slash mode right now. // http://code.google.com/p/chromium/issues/detail?id=6772 @@ -40,6 +44,9 @@ class AutocompleteEditController { // Sent prior to OnAutoCompleteAccept and before the model has been reverted. virtual void OnAutocompleteWillAccept() = 0; + + // Invoked when the popup is going to change its bounds to |bounds|. + virtual void OnPopupBoundsChanged(const gfx::Rect& bounds) = 0; #else // TODO: port. #endif @@ -308,6 +315,9 @@ class AutocompleteEditModel : public NotificationObserver { bool just_deleted_text, bool at_end_of_edit); + // Invoked when the popup is going to change its bounds to |bounds|. + void PopupBoundsChangedTo(const gfx::Rect& bounds); + private: enum PasteState { NONE, // Most recent edit was not a paste that replaced all text. -- cgit v1.1