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

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: Don't run test on Mac & Linux 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 bounds of the omnibox (in screen coordinates). This is
135 // coordinates). This is used by the page to align text or assets properly 135 // used by the page to align text or assets properly with the omnibox.
136 // with the omnibox. 136 void SetOmniboxBounds(const gfx::Rect& bounds);
137 void SetMarginSize(int start, int end);
138 137
139 // Tells the page about the font information. 138 // Tells the page about the font information.
140 void InitializeFonts(); 139 void InitializeFonts();
141 140
142 // Tells the renderer to determine if the page supports the Instant API, which 141 // 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. 142 // results in a call to InstantSupportDetermined() when the reply is received.
144 void DetermineIfPageSupportsInstant(); 143 void DetermineIfPageSupportsInstant();
145 144
146 // Tells the page about the available autocomplete results. 145 // Tells the page about the available autocomplete results.
147 void SendAutocompleteResults( 146 void SendAutocompleteResults(
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
225 void OnUndoMostVisitedDeletion(const GURL& url); 224 void OnUndoMostVisitedDeletion(const GURL& url);
226 void OnUndoAllMostVisitedDeletions(); 225 void OnUndoAllMostVisitedDeletions();
227 226
228 Delegate* const delegate_; 227 Delegate* const delegate_;
229 bool supports_instant_; 228 bool supports_instant_;
230 229
231 DISALLOW_COPY_AND_ASSIGN(InstantPage); 230 DISALLOW_COPY_AND_ASSIGN(InstantPage);
232 }; 231 };
233 232
234 #endif // CHROME_BROWSER_INSTANT_INSTANT_PAGE_H_ 233 #endif // CHROME_BROWSER_INSTANT_INSTANT_PAGE_H_
OLDNEW
« no previous file with comments | « chrome/browser/instant/instant_extended_browsertest.cc ('k') | chrome/browser/instant/instant_page.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698