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

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

Issue 11833043: Instant Extended: Fallback to local preview if the remote instant page is not ready on user input. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@refactor
Patch Set: Removing LOG messages. Created 7 years, 11 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
OLDNEW
1 // Copyright 2012 The Chromium Authors. All rights reserved. 1 // Copyright 2012 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_CLIENT_H_ 5 #ifndef CHROME_BROWSER_INSTANT_INSTANT_CLIENT_H_
6 #define CHROME_BROWSER_INSTANT_INSTANT_CLIENT_H_ 6 #define CHROME_BROWSER_INSTANT_INSTANT_CLIENT_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
97 void Cancel(const string16& text); 97 void Cancel(const string16& text);
98 98
99 // Tells the page the bounds of the omnibox dropdown (in screen coordinates). 99 // Tells the page the bounds of the omnibox dropdown (in screen coordinates).
100 // This is used by the page to offset the results to avoid them being covered 100 // This is used by the page to offset the results to avoid them being covered
101 // by the omnibox dropdown. 101 // by the omnibox dropdown.
102 void SetPopupBounds(const gfx::Rect& bounds); 102 void SetPopupBounds(const gfx::Rect& bounds);
103 103
104 // Tells the page what size start and end margins to use. 104 // Tells the page what size start and end margins to use.
105 void SetMarginSize(const int start, const int end); 105 void SetMarginSize(const int start, const int end);
106 106
107 // Tells the page about the font information.
108 void InitializeFonts();
109
107 // Tells the renderer to determine if the page supports the Instant API, which 110 // Tells the renderer to determine if the page supports the Instant API, which
108 // results in a call to InstantSupportDetermined() when the reply is received. 111 // results in a call to InstantSupportDetermined() when the reply is received.
109 void DetermineIfPageSupportsInstant(); 112 void DetermineIfPageSupportsInstant();
110 113
111 // Tells the page about the available autocomplete results. 114 // Tells the page about the available autocomplete results.
112 void SendAutocompleteResults( 115 void SendAutocompleteResults(
113 const std::vector<InstantAutocompleteResult>& results); 116 const std::vector<InstantAutocompleteResult>& results);
114 117
115 // Tells the page that the user pressed Up or Down in the omnibox. |count| is 118 // Tells the page that the user pressed Up or Down in the omnibox. |count| is
116 // a repeat count, negative for moving up, positive for moving down. 119 // a repeat count, negative for moving up, positive for moving down.
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
158 void StopCapturingKeyStrokes(int page_id); 161 void StopCapturingKeyStrokes(int page_id);
159 void SearchBoxNavigate(int page_id, const GURL& url, 162 void SearchBoxNavigate(int page_id, const GURL& url,
160 content::PageTransition transition); 163 content::PageTransition transition);
161 164
162 Delegate* const delegate_; 165 Delegate* const delegate_;
163 166
164 DISALLOW_COPY_AND_ASSIGN(InstantClient); 167 DISALLOW_COPY_AND_ASSIGN(InstantClient);
165 }; 168 };
166 169
167 #endif // CHROME_BROWSER_INSTANT_INSTANT_CLIENT_H_ 170 #endif // CHROME_BROWSER_INSTANT_INSTANT_CLIENT_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/instant/instant_client.cc » ('j') | chrome/browser/instant/instant_loader.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698