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