Index: chrome/browser/ui/search/instant_controller.h |
diff --git a/chrome/browser/ui/search/instant_controller.h b/chrome/browser/ui/search/instant_controller.h |
index e117a3a908034bbe58820fd82675b84df443c114..ac97e71ff0b00f85509933a8420f797aaa7c2f07 100644 |
--- a/chrome/browser/ui/search/instant_controller.h |
+++ b/chrome/browser/ui/search/instant_controller.h |
@@ -33,6 +33,10 @@ namespace content { |
class WebContents; |
} |
+namespace gfx { |
+class Rect; |
+} |
+ |
// Macro used for logging debug events. |message| should be a std::string. |
#define LOG_INSTANT_DEBUG_EVENT(controller, message) \ |
controller->LogDebugEvent(message) |
@@ -93,6 +97,11 @@ class InstantController : public InstantPage::Delegate { |
return debug_events_; |
} |
+ // Gets the stored start-edge margin and width of the omnibox. |
+ gfx::Rect omnibox_bounds() { |
Peter Kasting
2013/08/09 21:03:46
Nit: Function const
jeremycho
2013/08/09 23:55:09
Done.
|
+ return omnibox_bounds_; |
+ } |
+ |
// Used by BrowserInstantController to notify InstantController about the |
// instant support change event for the active web contents. |
void InstantSupportChanged(InstantSupportState instant_support); |