| 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 140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 151 const content::WebContents* contents, | 151 const content::WebContents* contents, |
| 152 const GURL& url) OVERRIDE; | 152 const GURL& url) OVERRIDE; |
| 153 virtual void FocusOmnibox(const content::WebContents* contents, | 153 virtual void FocusOmnibox(const content::WebContents* contents, |
| 154 OmniboxFocusState state) OVERRIDE; | 154 OmniboxFocusState state) OVERRIDE; |
| 155 virtual void NavigateToURL( | 155 virtual void NavigateToURL( |
| 156 const content::WebContents* contents, | 156 const content::WebContents* contents, |
| 157 const GURL& url, | 157 const GURL& url, |
| 158 content::PageTransition transition, | 158 content::PageTransition transition, |
| 159 WindowOpenDisposition disposition, | 159 WindowOpenDisposition disposition, |
| 160 bool is_search_type) OVERRIDE; | 160 bool is_search_type) OVERRIDE; |
| 161 virtual void PasteIntoOmnibox(const content::WebContents* contents) OVERRIDE; |
| 161 virtual void InstantPageLoadFailed(content::WebContents* contents) OVERRIDE; | 162 virtual void InstantPageLoadFailed(content::WebContents* contents) OVERRIDE; |
| 162 | 163 |
| 163 // Invoked by the InstantLoader when the Instant page wants to delete a | 164 // Invoked by the InstantLoader when the Instant page wants to delete a |
| 164 // Most Visited item. | 165 // Most Visited item. |
| 165 virtual void DeleteMostVisitedItem(const GURL& url) OVERRIDE; | 166 virtual void DeleteMostVisitedItem(const GURL& url) OVERRIDE; |
| 166 | 167 |
| 167 // Invoked by the InstantLoader when the Instant page wants to undo a | 168 // Invoked by the InstantLoader when the Instant page wants to undo a |
| 168 // Most Visited deletion. | 169 // Most Visited deletion. |
| 169 virtual void UndoMostVisitedDeletion(const GURL& url) OVERRIDE; | 170 virtual void UndoMostVisitedDeletion(const GURL& url) OVERRIDE; |
| 170 | 171 |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 218 // its suggestions with the omnibox. | 219 // its suggestions with the omnibox. |
| 219 gfx::Rect omnibox_bounds_; | 220 gfx::Rect omnibox_bounds_; |
| 220 | 221 |
| 221 // List of events and their timestamps, useful in debugging Instant behaviour. | 222 // List of events and their timestamps, useful in debugging Instant behaviour. |
| 222 mutable std::list<std::pair<int64, std::string> > debug_events_; | 223 mutable std::list<std::pair<int64, std::string> > debug_events_; |
| 223 | 224 |
| 224 DISALLOW_COPY_AND_ASSIGN(InstantController); | 225 DISALLOW_COPY_AND_ASSIGN(InstantController); |
| 225 }; | 226 }; |
| 226 | 227 |
| 227 #endif // CHROME_BROWSER_UI_SEARCH_INSTANT_CONTROLLER_H_ | 228 #endif // CHROME_BROWSER_UI_SEARCH_INSTANT_CONTROLLER_H_ |
| OLD | NEW |