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

Side by Side Diff: chrome/browser/instant/instant_client.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: Added test 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 2012 The Chromium Authors. All rights reserved. 1 // Copyright 2012 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_CLIENT_H_ 5 #ifndef CHROME_BROWSER_INSTANT_INSTANT_CLIENT_H_
6 #define CHROME_BROWSER_INSTANT_INSTANT_CLIENT_H_ 6 #define CHROME_BROWSER_INSTANT_INSTANT_CLIENT_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
97 97
98 // Tells the page that the user clicked on it. Nothing is being cancelled; the 98 // Tells the page that the user clicked on it. Nothing is being cancelled; the
99 // poor choice of name merely reflects the IPC of the same (poor) name. 99 // poor choice of name merely reflects the IPC of the same (poor) name.
100 void Cancel(const string16& text); 100 void Cancel(const string16& text);
101 101
102 // Tells the page the bounds of the omnibox dropdown (in screen coordinates). 102 // Tells the page the bounds of the omnibox dropdown (in screen coordinates).
103 // This is used by the page to offset the results to avoid them being covered 103 // This is used by the page to offset the results to avoid them being covered
104 // by the omnibox dropdown. 104 // by the omnibox dropdown.
105 void SetPopupBounds(const gfx::Rect& bounds); 105 void SetPopupBounds(const gfx::Rect& bounds);
106 106
107 // Tells the page what size start and end margins to use. 107 // Tells the page the start-edge margin size and width to use.
108 void SetMarginSize(const int start, const int end); 108 void SetStartMarginAndWidth(int margin, int width);
109 109
110 // Tells the page about the font information. 110 // Tells the page about the font information.
111 void InitializeFonts(); 111 void InitializeFonts();
112 112
113 // Tells the renderer to determine if the page supports the Instant API, which 113 // Tells the renderer to determine if the page supports the Instant API, which
114 // results in a call to InstantSupportDetermined() when the reply is received. 114 // results in a call to InstantSupportDetermined() when the reply is received.
115 void DetermineIfPageSupportsInstant(); 115 void DetermineIfPageSupportsInstant();
116 116
117 // Tells the page about the available autocomplete results. 117 // Tells the page about the available autocomplete results.
118 void SendAutocompleteResults( 118 void SendAutocompleteResults(
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
166 void StopCapturingKeyStrokes(int page_id); 166 void StopCapturingKeyStrokes(int page_id);
167 void SearchBoxNavigate(int page_id, const GURL& url, 167 void SearchBoxNavigate(int page_id, const GURL& url,
168 content::PageTransition transition); 168 content::PageTransition transition);
169 169
170 Delegate* const delegate_; 170 Delegate* const delegate_;
171 171
172 DISALLOW_COPY_AND_ASSIGN(InstantClient); 172 DISALLOW_COPY_AND_ASSIGN(InstantClient);
173 }; 173 };
174 174
175 #endif // CHROME_BROWSER_INSTANT_INSTANT_CLIENT_H_ 175 #endif // CHROME_BROWSER_INSTANT_INSTANT_CLIENT_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/instant/instant_client.cc » ('j') | chrome/browser/instant/instant_extended_browsertest.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698