OLD | NEW |
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 319 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
330 const content::WebContents* contents, | 330 const content::WebContents* contents, |
331 bool supports_instant) OVERRIDE; | 331 bool supports_instant) OVERRIDE; |
332 virtual void InstantPageRenderViewGone( | 332 virtual void InstantPageRenderViewGone( |
333 const content::WebContents* contents) OVERRIDE; | 333 const content::WebContents* contents) OVERRIDE; |
334 virtual void InstantPageAboutToNavigateMainFrame( | 334 virtual void InstantPageAboutToNavigateMainFrame( |
335 const content::WebContents* contents, | 335 const content::WebContents* contents, |
336 const GURL& url) OVERRIDE; | 336 const GURL& url) OVERRIDE; |
337 virtual void SetSuggestions( | 337 virtual void SetSuggestions( |
338 const content::WebContents* contents, | 338 const content::WebContents* contents, |
339 const std::vector<InstantSuggestion>& suggestions) OVERRIDE; | 339 const std::vector<InstantSuggestion>& suggestions) OVERRIDE; |
| 340 virtual void SetVoiceSearchSupported( |
| 341 const content::WebContents* contents, bool supported) OVERRIDE; |
340 virtual void ShowInstantOverlay( | 342 virtual void ShowInstantOverlay( |
341 const content::WebContents* contents, | 343 const content::WebContents* contents, |
342 int height, | 344 int height, |
343 InstantSizeUnits units) OVERRIDE; | 345 InstantSizeUnits units) OVERRIDE; |
344 virtual void LogDropdownShown() OVERRIDE; | 346 virtual void LogDropdownShown() OVERRIDE; |
345 virtual void FocusOmnibox(const content::WebContents* contents, | 347 virtual void FocusOmnibox(const content::WebContents* contents, |
346 OmniboxFocusState state) OVERRIDE; | 348 OmniboxFocusState state) OVERRIDE; |
347 virtual void NavigateToURL( | 349 virtual void NavigateToURL( |
348 const content::WebContents* contents, | 350 const content::WebContents* contents, |
349 const GURL& url, | 351 const GURL& url, |
(...skipping 193 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
543 // MODE_SEARCH_SUGGESTIONS, except in those cases where this is false. | 545 // MODE_SEARCH_SUGGESTIONS, except in those cases where this is false. |
544 bool allow_overlay_to_show_search_suggestions_; | 546 bool allow_overlay_to_show_search_suggestions_; |
545 | 547 |
546 // List of events and their timestamps, useful in debugging Instant behaviour. | 548 // List of events and their timestamps, useful in debugging Instant behaviour. |
547 mutable std::list<std::pair<int64, std::string> > debug_events_; | 549 mutable std::list<std::pair<int64, std::string> > debug_events_; |
548 | 550 |
549 DISALLOW_COPY_AND_ASSIGN(InstantController); | 551 DISALLOW_COPY_AND_ASSIGN(InstantController); |
550 }; | 552 }; |
551 | 553 |
552 #endif // CHROME_BROWSER_UI_SEARCH_INSTANT_CONTROLLER_H_ | 554 #endif // CHROME_BROWSER_UI_SEARCH_INSTANT_CONTROLLER_H_ |
OLD | NEW |