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

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: 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 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
99 const string16& user_text, 99 const string16& user_text,
100 const string16& full_text, 100 const string16& full_text,
101 size_t selection_start, 101 size_t selection_start,
102 size_t selection_end, 102 size_t selection_end,
103 bool verbatim, 103 bool verbatim,
104 bool user_input_in_progress, 104 bool user_input_in_progress,
105 bool omnibox_popup_is_open, 105 bool omnibox_popup_is_open,
106 bool escape_pressed, 106 bool escape_pressed,
107 bool is_keyword_search); 107 bool is_keyword_search);
108 108
109 // Returns whether the Instant page currently being used will fetch its own
110 // completions. True for extended mode, unless using a local Instant page.
111 bool WillFetchCompletions() const;
112
113 // Releases and returns the NTP WebContents. May be NULL. Loads a new 109 // Releases and returns the NTP WebContents. May be NULL. Loads a new
114 // WebContents for the NTP. 110 // WebContents for the NTP.
115 scoped_ptr<content::WebContents> ReleaseNTPContents() WARN_UNUSED_RESULT; 111 scoped_ptr<content::WebContents> ReleaseNTPContents() WARN_UNUSED_RESULT;
116 112
117 // Sets the bounds of the omnibox popup, in screen coordinates. 113 // Sets the bounds of the omnibox popup, in screen coordinates.
118 void SetPopupBounds(const gfx::Rect& bounds); 114 void SetPopupBounds(const gfx::Rect& bounds);
119 115
120 // Sets the stored start-edge margin and width of the omnibox. 116 // Sets the stored start-edge margin and width of the omnibox.
121 void SetOmniboxBounds(const gfx::Rect& bounds); 117 void SetOmniboxBounds(const gfx::Rect& bounds);
122 118
(...skipping 420 matching lines...) Expand 10 before | Expand all | Expand 10 after
543 // MODE_SEARCH_SUGGESTIONS, except in those cases where this is false. 539 // MODE_SEARCH_SUGGESTIONS, except in those cases where this is false.
544 bool allow_overlay_to_show_search_suggestions_; 540 bool allow_overlay_to_show_search_suggestions_;
545 541
546 // List of events and their timestamps, useful in debugging Instant behaviour. 542 // List of events and their timestamps, useful in debugging Instant behaviour.
547 mutable std::list<std::pair<int64, std::string> > debug_events_; 543 mutable std::list<std::pair<int64, std::string> > debug_events_;
548 544
549 DISALLOW_COPY_AND_ASSIGN(InstantController); 545 DISALLOW_COPY_AND_ASSIGN(InstantController);
550 }; 546 };
551 547
552 #endif // CHROME_BROWSER_UI_SEARCH_INSTANT_CONTROLLER_H_ 548 #endif // CHROME_BROWSER_UI_SEARCH_INSTANT_CONTROLLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698