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

Unified Diff: chrome/browser/autocomplete/autocomplete_popup_model.cc

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
Index: chrome/browser/autocomplete/autocomplete_popup_model.cc
diff --git a/chrome/browser/autocomplete/autocomplete_popup_model.cc b/chrome/browser/autocomplete/autocomplete_popup_model.cc
index 74cbb1f73a93738530803fb8a91434516c8ddf6e..7456ccd8eef152f91ff7b745ac82451f0734ffe5 100644
--- a/chrome/browser/autocomplete/autocomplete_popup_model.cc
+++ b/chrome/browser/autocomplete/autocomplete_popup_model.cc
@@ -14,6 +14,7 @@
#include "chrome/browser/search_engines/template_url.h"
#include "chrome/browser/search_engines/template_url_model.h"
#include "chrome/common/notification_service.h"
+#include "gfx/rect.h"
///////////////////////////////////////////////////////////////////////////////
// AutocompletePopupModel
@@ -291,6 +292,12 @@ void AutocompletePopupModel::Observe(NotificationType type,
SetHoveredLine(kNoMatch);
view_->UpdatePopupAppearance();
+
+#if defined(TOOLKIT_VIEWS)
+ edit_model_->PopupBoundsChangedTo(view_->GetTargetBounds());
+#else
+ // TODO: port
+#endif
}
const SkBitmap* AutocompletePopupModel::GetSpecialIconForMatch(
« no previous file with comments | « chrome/browser/autocomplete/autocomplete_edit_unittest.cc ('k') | chrome/browser/autocomplete/autocomplete_popup_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698