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 354 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
365 InstantSizeUnits units) OVERRIDE; | 365 InstantSizeUnits units) OVERRIDE; |
366 virtual void LogDropdownShown() OVERRIDE; | 366 virtual void LogDropdownShown() OVERRIDE; |
367 virtual void FocusOmnibox(const content::WebContents* contents, | 367 virtual void FocusOmnibox(const content::WebContents* contents, |
368 OmniboxFocusState state) OVERRIDE; | 368 OmniboxFocusState state) OVERRIDE; |
369 virtual void NavigateToURL( | 369 virtual void NavigateToURL( |
370 const content::WebContents* contents, | 370 const content::WebContents* contents, |
371 const GURL& url, | 371 const GURL& url, |
372 content::PageTransition transition, | 372 content::PageTransition transition, |
373 WindowOpenDisposition disposition, | 373 WindowOpenDisposition disposition, |
374 bool is_search_type) OVERRIDE; | 374 bool is_search_type) OVERRIDE; |
| 375 virtual void LogIframeHover(int pos) OVERRIDE; |
375 virtual void InstantPageLoadFailed(content::WebContents* contents) OVERRIDE; | 376 virtual void InstantPageLoadFailed(content::WebContents* contents) OVERRIDE; |
376 | 377 |
377 // Invoked by the InstantLoader when the Instant page wants to delete a | 378 // Invoked by the InstantLoader when the Instant page wants to delete a |
378 // Most Visited item. | 379 // Most Visited item. |
379 virtual void DeleteMostVisitedItem(const GURL& url) OVERRIDE; | 380 virtual void DeleteMostVisitedItem(const GURL& url) OVERRIDE; |
380 | 381 |
381 // Invoked by the InstantLoader when the Instant page wants to undo a | 382 // Invoked by the InstantLoader when the Instant page wants to undo a |
382 // Most Visited deletion. | 383 // Most Visited deletion. |
383 virtual void UndoMostVisitedDeletion(const GURL& url) OVERRIDE; | 384 virtual void UndoMostVisitedDeletion(const GURL& url) OVERRIDE; |
384 | 385 |
(...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
565 // MODE_SEARCH_SUGGESTIONS, except in those cases where this is false. | 566 // MODE_SEARCH_SUGGESTIONS, except in those cases where this is false. |
566 bool allow_overlay_to_show_search_suggestions_; | 567 bool allow_overlay_to_show_search_suggestions_; |
567 | 568 |
568 // List of events and their timestamps, useful in debugging Instant behaviour. | 569 // List of events and their timestamps, useful in debugging Instant behaviour. |
569 mutable std::list<std::pair<int64, std::string> > debug_events_; | 570 mutable std::list<std::pair<int64, std::string> > debug_events_; |
570 | 571 |
571 DISALLOW_COPY_AND_ASSIGN(InstantController); | 572 DISALLOW_COPY_AND_ASSIGN(InstantController); |
572 }; | 573 }; |
573 | 574 |
574 #endif // CHROME_BROWSER_UI_SEARCH_INSTANT_CONTROLLER_H_ | 575 #endif // CHROME_BROWSER_UI_SEARCH_INSTANT_CONTROLLER_H_ |
OLD | NEW |