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

Side by Side Diff: chrome/browser/instant/instant_page.h

Issue 12047107: Change the SearchBox API from using the start/end margins of the location bar to using the start ma… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Simplified LocationBarView::OnBoundsChanged Created 7 years, 9 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_INSTANT_INSTANT_PAGE_H_ 5 #ifndef CHROME_BROWSER_INSTANT_INSTANT_PAGE_H_
6 #define CHROME_BROWSER_INSTANT_INSTANT_PAGE_H_ 6 #define CHROME_BROWSER_INSTANT_INSTANT_PAGE_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after
124 124
125 // Tells the page that the user clicked on it. Nothing is being cancelled; the 125 // Tells the page that the user clicked on it. Nothing is being cancelled; the
126 // poor choice of name merely reflects the IPC of the same (poor) name. 126 // poor choice of name merely reflects the IPC of the same (poor) name.
127 void Cancel(const string16& text); 127 void Cancel(const string16& text);
128 128
129 // Tells the page the bounds of the omnibox dropdown (in screen coordinates). 129 // Tells the page the bounds of the omnibox dropdown (in screen coordinates).
130 // This is used by the page to offset the results to avoid them being covered 130 // This is used by the page to offset the results to avoid them being covered
131 // by the omnibox dropdown. 131 // by the omnibox dropdown.
132 void SetPopupBounds(const gfx::Rect& bounds); 132 void SetPopupBounds(const gfx::Rect& bounds);
133 133
134 // Tells the page the start and end margins of the omnibox (in screen 134 // Tells the page the start margin and width of the omnibox (in screen
135 // coordinates). This is used by the page to align text or assets properly 135 // coordinates). This is used by the page to align text or assets properly
136 // with the omnibox. 136 // with the omnibox.
137 void SetMarginSize(int start, int end); 137 void SetStartMarginAndWidth(int start, int width);
138 138
139 // Tells the page about the font information. 139 // Tells the page about the font information.
140 void InitializeFonts(); 140 void InitializeFonts();
141 141
142 // Tells the renderer to determine if the page supports the Instant API, which 142 // Tells the renderer to determine if the page supports the Instant API, which
143 // results in a call to InstantSupportDetermined() when the reply is received. 143 // results in a call to InstantSupportDetermined() when the reply is received.
144 void DetermineIfPageSupportsInstant(); 144 void DetermineIfPageSupportsInstant();
145 145
146 // Tells the page about the available autocomplete results. 146 // Tells the page about the available autocomplete results.
147 void SendAutocompleteResults( 147 void SendAutocompleteResults(
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
225 void OnUndoMostVisitedDeletion(const GURL& url); 225 void OnUndoMostVisitedDeletion(const GURL& url);
226 void OnUndoAllMostVisitedDeletions(); 226 void OnUndoAllMostVisitedDeletions();
227 227
228 Delegate* const delegate_; 228 Delegate* const delegate_;
229 bool supports_instant_; 229 bool supports_instant_;
230 230
231 DISALLOW_COPY_AND_ASSIGN(InstantPage); 231 DISALLOW_COPY_AND_ASSIGN(InstantPage);
232 }; 232 };
233 233
234 #endif // CHROME_BROWSER_INSTANT_INSTANT_PAGE_H_ 234 #endif // CHROME_BROWSER_INSTANT_INSTANT_PAGE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698