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

Side by Side Diff: chrome/browser/instant/instant_page.h

Issue 11896113: Add chrome-search: access from Instant overlay (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address Charlie's comments. 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_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 121 matching lines...) Expand 10 before | Expand all | Expand 10 after
132 void SetPopupBounds(const gfx::Rect& bounds); 132 void SetPopupBounds(const gfx::Rect& bounds);
133 133
134 // Tells the page the start and end margins of the omnibox (in screen 134 // Tells the page the start and end margins of the omnibox (in screen
135 // coordinates). This is used by the page to align text or assets properly 135 // coordinates). This is used by the page to align text or assets properly
136 // with the omnibox. 136 // with the omnibox.
137 void SetMarginSize(int start, int end); 137 void SetMarginSize(int start, int end);
138 138
139 // Tells the page about the font information. 139 // Tells the page about the font information.
140 void InitializeFonts(); 140 void InitializeFonts();
141 141
142 // Grant browser-side RenderViewHost bindings and renderer-side chrome-search:
143 // access rights for select origins.
144 void GrantAccessFromOrigin(const GURL& origin_url);
145
142 // Tells the renderer to determine if the page supports the Instant API, which 146 // Tells the renderer to determine if the page supports the Instant API, which
143 // results in a call to InstantSupportDetermined() when the reply is received. 147 // results in a call to InstantSupportDetermined() when the reply is received.
144 void DetermineIfPageSupportsInstant(); 148 void DetermineIfPageSupportsInstant();
145 149
146 // Tells the page about the available autocomplete results. 150 // Tells the page about the available autocomplete results.
147 void SendAutocompleteResults( 151 void SendAutocompleteResults(
148 const std::vector<InstantAutocompleteResult>& results); 152 const std::vector<InstantAutocompleteResult>& results);
149 153
150 // Tells the page that the user pressed Up or Down in the omnibox. |count| is 154 // Tells the page that the user pressed Up or Down in the omnibox. |count| is
151 // a repeat count, negative for moving up, positive for moving down. 155 // a repeat count, negative for moving up, positive for moving down.
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
225 void OnUndoMostVisitedDeletion(const GURL& url); 229 void OnUndoMostVisitedDeletion(const GURL& url);
226 void OnUndoAllMostVisitedDeletions(); 230 void OnUndoAllMostVisitedDeletions();
227 231
228 Delegate* const delegate_; 232 Delegate* const delegate_;
229 bool supports_instant_; 233 bool supports_instant_;
230 234
231 DISALLOW_COPY_AND_ASSIGN(InstantPage); 235 DISALLOW_COPY_AND_ASSIGN(InstantPage);
232 }; 236 };
233 237
234 #endif // CHROME_BROWSER_INSTANT_INSTANT_PAGE_H_ 238 #endif // CHROME_BROWSER_INSTANT_INSTANT_PAGE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698