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

Side by Side Diff: chrome/browser/ui/search/instant_page.h

Issue 12621008: chrome-search: should not be display-isolated (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 9 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 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 122 matching lines...) Expand 10 before | Expand all | Expand 10 after
133 // by the omnibox dropdown. 133 // by the omnibox dropdown.
134 void SetPopupBounds(const gfx::Rect& bounds); 134 void SetPopupBounds(const gfx::Rect& bounds);
135 135
136 // Tells the page the bounds of the omnibox (in screen coordinates). This is 136 // Tells the page the bounds of the omnibox (in screen coordinates). This is
137 // used by the page to align text or assets properly with the omnibox. 137 // used by the page to align text or assets properly with the omnibox.
138 void SetOmniboxBounds(const gfx::Rect& bounds); 138 void SetOmniboxBounds(const gfx::Rect& bounds);
139 139
140 // Tells the page about the font information. 140 // Tells the page about the font information.
141 void InitializeFonts(); 141 void InitializeFonts();
142 142
143 // Grant renderer-side chrome-search: access rights for select origins.
144 void GrantChromeSearchAccessFromOrigin(const GURL& origin_url);
145
146 // Tells the renderer to determine if the page supports the Instant API, which 143 // Tells the renderer to determine if the page supports the Instant API, which
147 // results in a call to InstantSupportDetermined() when the reply is received. 144 // results in a call to InstantSupportDetermined() when the reply is received.
148 void DetermineIfPageSupportsInstant(); 145 void DetermineIfPageSupportsInstant();
149 146
150 // Tells the page about the available autocomplete results. 147 // Tells the page about the available autocomplete results.
151 void SendAutocompleteResults( 148 void SendAutocompleteResults(
152 const std::vector<InstantAutocompleteResult>& results); 149 const std::vector<InstantAutocompleteResult>& results);
153 150
154 // Tells the page that the user pressed Up or Down in the omnibox. |count| is 151 // Tells the page that the user pressed Up or Down in the omnibox. |count| is
155 // a repeat count, negative for moving up, positive for moving down. 152 // a repeat count, negative for moving up, positive for moving down.
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
230 void OnUndoMostVisitedDeletion(uint64 most_visited_item_id); 227 void OnUndoMostVisitedDeletion(uint64 most_visited_item_id);
231 void OnUndoAllMostVisitedDeletions(); 228 void OnUndoAllMostVisitedDeletions();
232 229
233 Delegate* const delegate_; 230 Delegate* const delegate_;
234 bool supports_instant_; 231 bool supports_instant_;
235 232
236 DISALLOW_COPY_AND_ASSIGN(InstantPage); 233 DISALLOW_COPY_AND_ASSIGN(InstantPage);
237 }; 234 };
238 235
239 #endif // CHROME_BROWSER_UI_SEARCH_INSTANT_PAGE_H_ 236 #endif // CHROME_BROWSER_UI_SEARCH_INSTANT_PAGE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698