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

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: Sync Created 7 years, 10 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 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
114 114
115 // Tells the page that the user clicked on it. Nothing is being cancelled; the 115 // Tells the page that the user clicked on it. Nothing is being cancelled; the
116 // poor choice of name merely reflects the IPC of the same (poor) name. 116 // poor choice of name merely reflects the IPC of the same (poor) name.
117 void Cancel(const string16& text); 117 void Cancel(const string16& text);
118 118
119 // Tells the page the bounds of the omnibox dropdown (in screen coordinates). 119 // Tells the page the bounds of the omnibox dropdown (in screen coordinates).
120 // This is used by the page to offset the results to avoid them being covered 120 // This is used by the page to offset the results to avoid them being covered
121 // by the omnibox dropdown. 121 // by the omnibox dropdown.
122 void SetPopupBounds(const gfx::Rect& bounds); 122 void SetPopupBounds(const gfx::Rect& bounds);
123 123
124 // Tells the page the start and end margins of the omnibox (in screen 124 // Tells the page the start margin and width of the omnibox (in screen
125 // coordinates). This is used by the page to align text or assets properly 125 // coordinates). This is used by the page to align text or assets properly
126 // with the omnibox. 126 // with the omnibox.
127 void SetMarginSize(int start, int end); 127 void SetStartMarginAndWidth(int start, int width);
128 128
129 // Tells the page about the font information. 129 // Tells the page about the font information.
130 void InitializeFonts(); 130 void InitializeFonts();
131 131
132 // Tells the renderer to determine if the page supports the Instant API, which 132 // Tells the renderer to determine if the page supports the Instant API, which
133 // results in a call to InstantSupportDetermined() when the reply is received. 133 // results in a call to InstantSupportDetermined() when the reply is received.
134 void DetermineIfPageSupportsInstant(); 134 void DetermineIfPageSupportsInstant();
135 135
136 // Tells the page about the available autocomplete results. 136 // Tells the page about the available autocomplete results.
137 void SendAutocompleteResults( 137 void SendAutocompleteResults(
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
207 void OnSearchBoxNavigate(int page_id, const GURL& url, 207 void OnSearchBoxNavigate(int page_id, const GURL& url,
208 content::PageTransition transition); 208 content::PageTransition transition);
209 209
210 Delegate* const delegate_; 210 Delegate* const delegate_;
211 bool supports_instant_; 211 bool supports_instant_;
212 212
213 DISALLOW_COPY_AND_ASSIGN(InstantPage); 213 DISALLOW_COPY_AND_ASSIGN(InstantPage);
214 }; 214 };
215 215
216 #endif // CHROME_BROWSER_INSTANT_INSTANT_PAGE_H_ 216 #endif // CHROME_BROWSER_INSTANT_INSTANT_PAGE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698