OLD | NEW |
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 Loading... |
97 void Cancel(const string16& text); | 97 void Cancel(const string16& text); |
98 | 98 |
99 // Tells the page the bounds of the omnibox dropdown (in screen coordinates). | 99 // Tells the page the bounds of the omnibox dropdown (in screen coordinates). |
100 // This is used by the page to offset the results to avoid them being covered | 100 // This is used by the page to offset the results to avoid them being covered |
101 // by the omnibox dropdown. | 101 // by the omnibox dropdown. |
102 void SetPopupBounds(const gfx::Rect& bounds); | 102 void SetPopupBounds(const gfx::Rect& bounds); |
103 | 103 |
104 // Tells the page what size start and end margins to use. | 104 // Tells the page what size start and end margins to use. |
105 void SetMarginSize(const int start, const int end); | 105 void SetMarginSize(const int start, const int end); |
106 | 106 |
| 107 // Tells the page about the font information. |
| 108 void InitializeFonts(); |
| 109 |
107 // Tells the renderer to determine if the page supports the Instant API, which | 110 // Tells the renderer to determine if the page supports the Instant API, which |
108 // results in a call to InstantSupportDetermined() when the reply is received. | 111 // results in a call to InstantSupportDetermined() when the reply is received. |
109 void DetermineIfPageSupportsInstant(); | 112 void DetermineIfPageSupportsInstant(); |
110 | 113 |
111 // Tells the page about the available autocomplete results. | 114 // Tells the page about the available autocomplete results. |
112 void SendAutocompleteResults( | 115 void SendAutocompleteResults( |
113 const std::vector<InstantAutocompleteResult>& results); | 116 const std::vector<InstantAutocompleteResult>& results); |
114 | 117 |
115 // Tells the page that the user pressed Up or Down in the omnibox. |count| is | 118 // Tells the page that the user pressed Up or Down in the omnibox. |count| is |
116 // a repeat count, negative for moving up, positive for moving down. | 119 // a repeat count, negative for moving up, positive for moving down. |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
158 void StopCapturingKeyStrokes(int page_id); | 161 void StopCapturingKeyStrokes(int page_id); |
159 void SearchBoxNavigate(int page_id, const GURL& url, | 162 void SearchBoxNavigate(int page_id, const GURL& url, |
160 content::PageTransition transition); | 163 content::PageTransition transition); |
161 | 164 |
162 Delegate* const delegate_; | 165 Delegate* const delegate_; |
163 | 166 |
164 DISALLOW_COPY_AND_ASSIGN(InstantClient); | 167 DISALLOW_COPY_AND_ASSIGN(InstantClient); |
165 }; | 168 }; |
166 | 169 |
167 #endif // CHROME_BROWSER_INSTANT_INSTANT_CLIENT_H_ | 170 #endif // CHROME_BROWSER_INSTANT_INSTANT_CLIENT_H_ |
OLD | NEW |