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

Unified Diff: chrome/browser/instant/instant_loader.cc

Issue 11359198: Implement the Instant extended API startMargin, endMargin, and rtl properties and the onmarginchang… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 1 month 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/instant/instant_loader.cc
diff --git a/chrome/browser/instant/instant_loader.cc b/chrome/browser/instant/instant_loader.cc
index 4a474f7deca846bc56386e602e46218492b6a0c9..67f2a429ce81cf308bc95948cbe8529b8aab48e4 100644
--- a/chrome/browser/instant/instant_loader.cc
+++ b/chrome/browser/instant/instant_loader.cc
@@ -328,10 +328,18 @@ void InstantLoader::Update(const string16& user_text, bool verbatim) {
verbatim, user_text.size(), user_text.size()));
}
-void InstantLoader::SetOmniboxBounds(const gfx::Rect& bounds) {
+void InstantLoader::SetPopupBounds(const gfx::Rect& bounds) {
content::RenderViewHost* rvh =
preview_contents_->web_contents()->GetRenderViewHost();
- rvh->Send(new ChromeViewMsg_SearchBoxResize(rvh->GetRoutingID(), bounds));
+ rvh->Send(new ChromeViewMsg_SearchBoxPopupResize(rvh->GetRoutingID(),
+ bounds));
+}
+
+void InstantLoader::SetMarginSize(int start, int end) {
+ content::RenderViewHost* rvh =
+ preview_contents_->web_contents()->GetRenderViewHost();
+ rvh->Send(new ChromeViewMsg_SearchBoxMarginChange(rvh->GetRoutingID(),
+ start, end));
}
void InstantLoader::SendAutocompleteResults(

Powered by Google App Engine
This is Rietveld 408576698