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() {} |
}; |