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