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

Unified Diff: chrome/browser/ui/search/instant_ipc_sender.h

Issue 18223002: InstantExtended: Remove overlay control code. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Call renamed method. Created 7 years, 6 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/search/instant_ipc_sender.h
diff --git a/chrome/browser/ui/search/instant_ipc_sender.h b/chrome/browser/ui/search/instant_ipc_sender.h
index 3da734d7b5ca8a1b1f25d020b41a5cbfd784bdc6..8319f2cd5002e6538756491e8991df6e459cd478 100644
--- a/chrome/browser/ui/search/instant_ipc_sender.h
+++ b/chrome/browser/ui/search/instant_ipc_sender.h
@@ -31,29 +31,9 @@ class InstantIPCSender : public content::WebContentsObserver {
// Sets |web_contents| as the receiver of IPCs.
void SetContents(content::WebContents* web_contents);
- // Tells the page that the user typed |text| into the omnibox. If |verbatim|
- // is false, the page predicts the query the user means to type and fetches
- // results for the prediction. If |verbatim| is true, |text| is taken as the
- // exact query (no prediction is made). |selection_start| and |selection_end|
- // mark the inline autocompleted portion (i.e., blue highlighted text). The
- // omnibox caret (cursor) is at |selection_end|.
- virtual void Update(const string16& text,
- size_t selection_start,
- size_t selection_end,
- bool verbatim) {}
-
// Tells the page that the user pressed Enter in the omnibox.
virtual void Submit(const string16& text) {}
- // Tells the page that the user clicked on it. Nothing is being cancelled; the
- // poor choice of name merely reflects the IPC of the same (poor) name.
- virtual void Cancel(const string16& text) {}
-
- // Tells the page the bounds of the omnibox dropdown (in screen coordinates).
- // This is used by the page to offset the results to avoid them being covered
- // by the omnibox dropdown.
- virtual void SetPopupBounds(const gfx::Rect& bounds) {}
-
// Tells the page the bounds of the omnibox (in screen coordinates). This is
// used by the page to align text or assets properly with the omnibox.
virtual void SetOmniboxBounds(const gfx::Rect& bounds) {}
@@ -65,32 +45,10 @@ class InstantIPCSender : public content::WebContentsObserver {
// Tells the page information it needs to display promos.
virtual void SetPromoInformation(bool is_app_launcher_enabled) {}
- // Tells the page about the available autocomplete results.
- virtual void SendAutocompleteResults(
- const std::vector<InstantAutocompleteResult>& results) {}
-
- // Tells the page that the user pressed Up or Down in the omnibox. |count| is
- // a repeat count, negative for moving up, positive for moving down.
- virtual void UpOrDownKeyPressed(int count) {}
-
- // Tells the page that the user pressed Esc key in the omnibox.
- virtual void EscKeyPressed() {}
-
- // Tells the page that the user pressed Esc in the omnibox after having
- // arrowed down in the suggestions. The page should reset the selection to
- // the first suggestion. Arguments are the same as those for Update().
- virtual void CancelSelection(const string16& user_text,
- size_t selection_start,
- size_t selection_end,
- bool verbatim) {}
-
// Tells the page about the current theme background.
virtual void SendThemeBackgroundInfo(
const ThemeBackgroundInfo& theme_info) {}
- // Tells the page whether it is allowed to display Instant results.
- virtual void SetDisplayInstantResults(bool display_instant_results) {}
-
// Tells the page that the omnibox focus has changed.
virtual void FocusChanged(OmniboxFocusState state,
OmniboxFocusChangeReason reason) {}
« no previous file with comments | « chrome/browser/ui/search/instant_extended_manual_interactive_uitest.cc ('k') | chrome/browser/ui/search/instant_ipc_sender.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698