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

Unified Diff: chrome/browser/tab_contents/match_preview_delegate.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
Index: chrome/browser/tab_contents/match_preview_delegate.h
diff --git a/chrome/browser/tab_contents/match_preview_delegate.h b/chrome/browser/tab_contents/match_preview_delegate.h
index 9d12cf8ff6e4687058f2e81e0e6af9d31a38415c..5839198bc13f899856b0e1f2ddc37c0ed2b84652 100644
--- a/chrome/browser/tab_contents/match_preview_delegate.h
+++ b/chrome/browser/tab_contents/match_preview_delegate.h
@@ -8,6 +8,10 @@
#include "base/string16.h"
+namespace gfx {
+class Rect;
+}
+
// MatchPreview's delegate. Normally the Browser implements this. See
// MatchPreview for details.
class MatchPreviewDelegate {
@@ -25,6 +29,10 @@ class MatchPreviewDelegate {
// Invoked when the suggested text is to change to |text|.
virtual void SetSuggestedText(const string16& text) = 0;
+ // Returns the bounds the match preview will be placed in, in screen
+ // coordinates.
+ virtual gfx::Rect GetMatchPreviewBounds() = 0;
+
protected:
virtual ~MatchPreviewDelegate() {}
};
« no previous file with comments | « chrome/browser/tab_contents/match_preview.cc ('k') | chrome/browser/views/autocomplete/autocomplete_popup_contents_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698