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

Unified Diff: chrome/browser/ui/search/instant_controller.h

Issue 21042013: Have SearchProvider look up the omnibox start margin directly. (Closed) Base URL: https://git.chromium.org/chromium/src.git@master
Patch Set: Respond to comments. Created 7 years, 4 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/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);

Powered by Google App Engine
This is Rietveld 408576698