diff options
author | sky@chromium.org <sky@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-09-22 03:32:47 +0000 |
---|---|---|
committer | sky@chromium.org <sky@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-09-22 03:32:47 +0000 |
commit | 46fe8e9ecede8772df308ae083fec770998d1ecc (patch) | |
tree | 81d030fd53d613f49f24e286fe4c933eac06f587 /chrome/browser/autocomplete/autocomplete_edit.h | |
parent | 5746640f419fe2b493ed4e97aa473e96f73c8d73 (diff) | |
download | chromium_src-46fe8e9ecede8772df308ae083fec770998d1ecc.zip chromium_src-46fe8e9ecede8772df308ae083fec770998d1ecc.tar.gz chromium_src-46fe8e9ecede8772df308ae083fec770998d1ecc.tar.bz2 |
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
Diffstat (limited to 'chrome/browser/autocomplete/autocomplete_edit.h')
-rw-r--r-- | chrome/browser/autocomplete/autocomplete_edit.h | 10 |
1 files changed, 10 insertions, 0 deletions
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. |