Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(430)

Unified Diff: chrome/browser/autocomplete/autocomplete_edit.h

Issue 3417011: Makes match preview send the dimensions of the omnibox to the page. (Closed)
Patch Set: Fix unittest Created 10 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/browser/autocomplete/autocomplete_edit.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/autocomplete/autocomplete_edit.h
diff --git a/chrome/browser/autocomplete/autocomplete_edit.h b/chrome/browser/autocomplete/autocomplete_edit.h
index 14541111a49d2734e7160e662b860646472f230a..caca730cb0f1ee30d6adcf592b6dfd4e728125d7 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.
« no previous file with comments | « no previous file | chrome/browser/autocomplete/autocomplete_edit.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698