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

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

Issue 10918289: Instant extended API: Make arrow up/down work. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Hackiness noted Created 8 years, 3 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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 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_LOADER_H_ 5 #ifndef CHROME_BROWSER_INSTANT_INSTANT_LOADER_H_
6 #define CHROME_BROWSER_INSTANT_INSTANT_LOADER_H_ 6 #define CHROME_BROWSER_INSTANT_INSTANT_LOADER_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 61
62 // Tells the preview page of the bounds of the omnibox dropdown (in screen 62 // Tells the preview page of the bounds of the omnibox dropdown (in screen
63 // coordinates). This is used by the page to offset the results to avoid them 63 // coordinates). This is used by the page to offset the results to avoid them
64 // being covered by the omnibox dropdown. 64 // being covered by the omnibox dropdown.
65 void SetOmniboxBounds(const gfx::Rect& bounds); 65 void SetOmniboxBounds(const gfx::Rect& bounds);
66 66
67 // Tells the preview page about the available autocomplete results. 67 // Tells the preview page about the available autocomplete results.
68 void SendAutocompleteResults( 68 void SendAutocompleteResults(
69 const std::vector<InstantAutocompleteResult>& results); 69 const std::vector<InstantAutocompleteResult>& results);
70 70
71 // Tells the preview page that the user pressed the up or down key. |count|
72 // is a repeat count, negative for moving up, positive for moving down.
73 void OnUpOrDownKeyPressed(int count);
74
71 // Releases the preview TabContents passing ownership to the caller. This 75 // Releases the preview TabContents passing ownership to the caller. This
72 // should be called when the preview is committed. Notifies the page but not 76 // should be called when the preview is committed. Notifies the page but not
73 // the delegate. |text| is the final omnibox text being committed. NOTE: The 77 // the delegate. |text| is the final omnibox text being committed. NOTE: The
74 // caller should destroy this loader object right after this method, since 78 // caller should destroy this loader object right after this method, since
75 // none of the other methods will work once the preview has been released. 79 // none of the other methods will work once the preview has been released.
76 TabContents* ReleasePreviewContents(InstantCommitType type, 80 TabContents* ReleasePreviewContents(InstantCommitType type,
77 const string16& text) WARN_UNUSED_RESULT; 81 const string16& text) WARN_UNUSED_RESULT;
78 82
79 // The preview TabContents. The loader retains ownership. This will be 83 // The preview TabContents. The loader retains ownership. This will be
80 // non-NULL until ReleasePreviewContents() is called. 84 // non-NULL until ReleasePreviewContents() is called.
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
129 // Used to get notifications about renderers coming and going. 133 // Used to get notifications about renderers coming and going.
130 content::NotificationRegistrar registrar_; 134 content::NotificationRegistrar registrar_;
131 135
132 // See comments on the getter above. 136 // See comments on the getter above.
133 scoped_refptr<history::HistoryAddPageArgs> last_navigation_; 137 scoped_refptr<history::HistoryAddPageArgs> last_navigation_;
134 138
135 DISALLOW_COPY_AND_ASSIGN(InstantLoader); 139 DISALLOW_COPY_AND_ASSIGN(InstantLoader);
136 }; 140 };
137 141
138 #endif // CHROME_BROWSER_INSTANT_INSTANT_LOADER_H_ 142 #endif // CHROME_BROWSER_INSTANT_INSTANT_LOADER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698