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

Side by Side Diff: chrome/browser/ui/search/instant_controller.h

Issue 17391005: Remove Instant hooks from SearchProvider. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Still more rebasing. 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 unified diff | Download patch | Annotate | Revision Log
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_UI_SEARCH_INSTANT_CONTROLLER_H_ 5 #ifndef CHROME_BROWSER_UI_SEARCH_INSTANT_CONTROLLER_H_
6 #define CHROME_BROWSER_UI_SEARCH_INSTANT_CONTROLLER_H_ 6 #define CHROME_BROWSER_UI_SEARCH_INSTANT_CONTROLLER_H_
7 7
8 #include <list> 8 #include <list>
9 #include <string> 9 #include <string>
10 #include <utility> 10 #include <utility>
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
103 const string16& user_text, 103 const string16& user_text,
104 const string16& full_text, 104 const string16& full_text,
105 size_t selection_start, 105 size_t selection_start,
106 size_t selection_end, 106 size_t selection_end,
107 bool verbatim, 107 bool verbatim,
108 bool user_input_in_progress, 108 bool user_input_in_progress,
109 bool omnibox_popup_is_open, 109 bool omnibox_popup_is_open,
110 bool escape_pressed, 110 bool escape_pressed,
111 bool is_keyword_search); 111 bool is_keyword_search);
112 112
113 // Returns whether the Instant page currently being used will fetch its own
114 // completions. True for extended mode, unless using a local Instant page.
115 bool WillFetchCompletions() const;
116
117 // Releases and returns the NTP WebContents. May be NULL. Loads a new 113 // Releases and returns the NTP WebContents. May be NULL. Loads a new
118 // WebContents for the NTP. 114 // WebContents for the NTP.
119 scoped_ptr<content::WebContents> ReleaseNTPContents() WARN_UNUSED_RESULT; 115 scoped_ptr<content::WebContents> ReleaseNTPContents() WARN_UNUSED_RESULT;
120 116
121 // Sets the bounds of the omnibox popup, in screen coordinates. 117 // Sets the bounds of the omnibox popup, in screen coordinates.
122 void SetPopupBounds(const gfx::Rect& bounds); 118 void SetPopupBounds(const gfx::Rect& bounds);
123 119
124 // Sets the stored start-edge margin and width of the omnibox. 120 // Sets the stored start-edge margin and width of the omnibox.
125 void SetOmniboxBounds(const gfx::Rect& bounds); 121 void SetOmniboxBounds(const gfx::Rect& bounds);
126 122
(...skipping 412 matching lines...) Expand 10 before | Expand all | Expand 10 after
539 // MODE_SEARCH_SUGGESTIONS, except in those cases where this is false. 535 // MODE_SEARCH_SUGGESTIONS, except in those cases where this is false.
540 bool allow_overlay_to_show_search_suggestions_; 536 bool allow_overlay_to_show_search_suggestions_;
541 537
542 // List of events and their timestamps, useful in debugging Instant behaviour. 538 // List of events and their timestamps, useful in debugging Instant behaviour.
543 mutable std::list<std::pair<int64, std::string> > debug_events_; 539 mutable std::list<std::pair<int64, std::string> > debug_events_;
544 540
545 DISALLOW_COPY_AND_ASSIGN(InstantController); 541 DISALLOW_COPY_AND_ASSIGN(InstantController);
546 }; 542 };
547 543
548 #endif // CHROME_BROWSER_UI_SEARCH_INSTANT_CONTROLLER_H_ 544 #endif // CHROME_BROWSER_UI_SEARCH_INSTANT_CONTROLLER_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/omnibox/omnibox_edit_model.cc ('k') | chrome/browser/ui/search/instant_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698