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

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: Yet another rebase 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
« no previous file with comments | « chrome/browser/instant/instant_io_context.cc ('k') | chrome/browser/instant/instant_page.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 123 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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_
OLDNEW
« no previous file with comments | « chrome/browser/instant/instant_io_context.cc ('k') | chrome/browser/instant/instant_page.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698