| OLD | NEW |
| 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 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 120 | 120 |
| 121 // Tells the page that the user clicked on it. Nothing is being cancelled; the | 121 // Tells the page that the user clicked on it. Nothing is being cancelled; the |
| 122 // poor choice of name merely reflects the IPC of the same (poor) name. | 122 // poor choice of name merely reflects the IPC of the same (poor) name. |
| 123 void Cancel(const string16& text); | 123 void Cancel(const string16& text); |
| 124 | 124 |
| 125 // Tells the page the bounds of the omnibox dropdown (in screen coordinates). | 125 // Tells the page the bounds of the omnibox dropdown (in screen coordinates). |
| 126 // This is used by the page to offset the results to avoid them being covered | 126 // This is used by the page to offset the results to avoid them being covered |
| 127 // by the omnibox dropdown. | 127 // by the omnibox dropdown. |
| 128 void SetPopupBounds(const gfx::Rect& bounds); | 128 void SetPopupBounds(const gfx::Rect& bounds); |
| 129 | 129 |
| 130 // Tells the page the start and end margins of the omnibox (in screen | 130 // Tells the page the start margin and width of the omnibox (in screen |
| 131 // coordinates). This is used by the page to align text or assets properly | 131 // coordinates). This is used by the page to align text or assets properly |
| 132 // with the omnibox. | 132 // with the omnibox. |
| 133 void SetMarginSize(int start, int end); | 133 void SetStartMarginAndWidth(int start, int width); |
| 134 | 134 |
| 135 // Tells the page about the font information. | 135 // Tells the page about the font information. |
| 136 void InitializeFonts(); | 136 void InitializeFonts(); |
| 137 | 137 |
| 138 // Tells the renderer to determine if the page supports the Instant API, which | 138 // Tells the renderer to determine if the page supports the Instant API, which |
| 139 // results in a call to InstantSupportDetermined() when the reply is received. | 139 // results in a call to InstantSupportDetermined() when the reply is received. |
| 140 void DetermineIfPageSupportsInstant(); | 140 void DetermineIfPageSupportsInstant(); |
| 141 | 141 |
| 142 // Tells the page about the available autocomplete results. | 142 // Tells the page about the available autocomplete results. |
| 143 void SendAutocompleteResults( | 143 void SendAutocompleteResults( |
| (...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 214 void OnSearchBoxNavigate(int page_id, const GURL& url, | 214 void OnSearchBoxNavigate(int page_id, const GURL& url, |
| 215 content::PageTransition transition); | 215 content::PageTransition transition); |
| 216 | 216 |
| 217 Delegate* const delegate_; | 217 Delegate* const delegate_; |
| 218 bool supports_instant_; | 218 bool supports_instant_; |
| 219 | 219 |
| 220 DISALLOW_COPY_AND_ASSIGN(InstantPage); | 220 DISALLOW_COPY_AND_ASSIGN(InstantPage); |
| 221 }; | 221 }; |
| 222 | 222 |
| 223 #endif // CHROME_BROWSER_INSTANT_INSTANT_PAGE_H_ | 223 #endif // CHROME_BROWSER_INSTANT_INSTANT_PAGE_H_ |
| OLD | NEW |