| 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 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 134 // by the omnibox dropdown. | 134 // by the omnibox dropdown. |
| 135 void SetPopupBounds(const gfx::Rect& bounds); | 135 void SetPopupBounds(const gfx::Rect& bounds); |
| 136 | 136 |
| 137 // Tells the page the bounds of the omnibox (in screen coordinates). This is | 137 // Tells the page the bounds of the omnibox (in screen coordinates). This is |
| 138 // used by the page to align text or assets properly with the omnibox. | 138 // used by the page to align text or assets properly with the omnibox. |
| 139 void SetOmniboxBounds(const gfx::Rect& bounds); | 139 void SetOmniboxBounds(const gfx::Rect& bounds); |
| 140 | 140 |
| 141 // Tells the page about the font information. | 141 // Tells the page about the font information. |
| 142 void InitializeFonts(); | 142 void InitializeFonts(); |
| 143 | 143 |
| 144 // Grant renderer-side chrome-search: access rights for select origins. |
| 145 void GrantChromeSearchAccessFromOrigin(const GURL& origin_url); |
| 146 |
| 144 // Tells the renderer to determine if the page supports the Instant API, which | 147 // Tells the renderer to determine if the page supports the Instant API, which |
| 145 // results in a call to InstantSupportDetermined() when the reply is received. | 148 // results in a call to InstantSupportDetermined() when the reply is received. |
| 146 void DetermineIfPageSupportsInstant(); | 149 void DetermineIfPageSupportsInstant(); |
| 147 | 150 |
| 148 // Tells the page about the available autocomplete results. | 151 // Tells the page about the available autocomplete results. |
| 149 void SendAutocompleteResults( | 152 void SendAutocompleteResults( |
| 150 const std::vector<InstantAutocompleteResult>& results); | 153 const std::vector<InstantAutocompleteResult>& results); |
| 151 | 154 |
| 152 // Tells the page that the user pressed Up or Down in the omnibox. |count| is | 155 // Tells the page that the user pressed Up or Down in the omnibox. |count| is |
| 153 // a repeat count, negative for moving up, positive for moving down. | 156 // a repeat count, negative for moving up, positive for moving down. |
| (...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 229 void OnUndoMostVisitedDeletion(const GURL& url); | 232 void OnUndoMostVisitedDeletion(const GURL& url); |
| 230 void OnUndoAllMostVisitedDeletions(); | 233 void OnUndoAllMostVisitedDeletions(); |
| 231 | 234 |
| 232 Delegate* const delegate_; | 235 Delegate* const delegate_; |
| 233 bool supports_instant_; | 236 bool supports_instant_; |
| 234 | 237 |
| 235 DISALLOW_COPY_AND_ASSIGN(InstantPage); | 238 DISALLOW_COPY_AND_ASSIGN(InstantPage); |
| 236 }; | 239 }; |
| 237 | 240 |
| 238 #endif // CHROME_BROWSER_INSTANT_INSTANT_PAGE_H_ | 241 #endif // CHROME_BROWSER_INSTANT_INSTANT_PAGE_H_ |
| OLD | NEW |