Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_PAGE_H_ | 5 #ifndef CHROME_BROWSER_UI_SEARCH_INSTANT_PAGE_H_ |
| 6 #define CHROME_BROWSER_UI_SEARCH_INSTANT_PAGE_H_ | 6 #define CHROME_BROWSER_UI_SEARCH_INSTANT_PAGE_H_ |
| 7 | 7 |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| (...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 83 // Called when the page wants to navigate to |url|. Usually used by the | 83 // Called when the page wants to navigate to |url|. Usually used by the |
| 84 // page to navigate to privileged destinations (e.g. chrome:// URLs) or to | 84 // page to navigate to privileged destinations (e.g. chrome:// URLs) or to |
| 85 // navigate to URLs that are hidden from the page using Restricted IDs (rid | 85 // navigate to URLs that are hidden from the page using Restricted IDs (rid |
| 86 // in the API). | 86 // in the API). |
| 87 virtual void NavigateToURL(const content::WebContents* contents, | 87 virtual void NavigateToURL(const content::WebContents* contents, |
| 88 const GURL& url, | 88 const GURL& url, |
| 89 content::PageTransition transition, | 89 content::PageTransition transition, |
| 90 WindowOpenDisposition disposition, | 90 WindowOpenDisposition disposition, |
| 91 bool is_search_type) = 0; | 91 bool is_search_type) = 0; |
| 92 | 92 |
| 93 virtual void LogIframeHover(int pos) = 0; | |
|
beaudoin
2013/06/22 01:14:53
Please add a comment to indicate that this is used
annark1
2013/06/25 16:01:38
Done.
| |
| 94 | |
| 93 // Called when the SearchBox wants to delete a Most Visited item. | 95 // Called when the SearchBox wants to delete a Most Visited item. |
| 94 virtual void DeleteMostVisitedItem(const GURL& url) = 0; | 96 virtual void DeleteMostVisitedItem(const GURL& url) = 0; |
| 95 | 97 |
| 96 // Called when the SearchBox wants to undo a Most Visited deletion. | 98 // Called when the SearchBox wants to undo a Most Visited deletion. |
| 97 virtual void UndoMostVisitedDeletion(const GURL& url) = 0; | 99 virtual void UndoMostVisitedDeletion(const GURL& url) = 0; |
| 98 | 100 |
| 99 // Called when the SearchBox wants to undo all Most Visited deletions. | 101 // Called when the SearchBox wants to undo all Most Visited deletions. |
| 100 virtual void UndoAllMostVisitedDeletions() = 0; | 102 virtual void UndoAllMostVisitedDeletions() = 0; |
| 101 | 103 |
| 102 // Called when the page fails to load for whatever reason. | 104 // Called when the page fails to load for whatever reason. |
| (...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 262 const std::vector<InstantSuggestion>& suggestions); | 264 const std::vector<InstantSuggestion>& suggestions); |
| 263 void OnShowInstantOverlay(int page_id, | 265 void OnShowInstantOverlay(int page_id, |
| 264 int height, | 266 int height, |
| 265 InstantSizeUnits units); | 267 InstantSizeUnits units); |
| 266 void OnFocusOmnibox(int page_id, OmniboxFocusState state); | 268 void OnFocusOmnibox(int page_id, OmniboxFocusState state); |
| 267 void OnSearchBoxNavigate(int page_id, | 269 void OnSearchBoxNavigate(int page_id, |
| 268 const GURL& url, | 270 const GURL& url, |
| 269 content::PageTransition transition, | 271 content::PageTransition transition, |
| 270 WindowOpenDisposition disposition, | 272 WindowOpenDisposition disposition, |
| 271 bool is_search_type); | 273 bool is_search_type); |
| 274 void OnSearchBoxLogIframeHover(int page_id, int pos); | |
|
beaudoin
2013/06/22 01:14:53
Same here, not sure you need the pos.
annark1
2013/06/25 16:01:38
Done.
| |
| 272 void OnDeleteMostVisitedItem(int page_id, const GURL& url); | 275 void OnDeleteMostVisitedItem(int page_id, const GURL& url); |
| 273 void OnUndoMostVisitedDeletion(int page_id, const GURL& url); | 276 void OnUndoMostVisitedDeletion(int page_id, const GURL& url); |
| 274 void OnUndoAllMostVisitedDeletions(int page_id); | 277 void OnUndoAllMostVisitedDeletions(int page_id); |
| 275 | 278 |
| 276 void ClearContents(); | 279 void ClearContents(); |
| 277 | 280 |
| 278 Delegate* const delegate_; | 281 Delegate* const delegate_; |
| 279 const std::string instant_url_; | 282 const std::string instant_url_; |
| 280 | 283 |
| 281 DISALLOW_COPY_AND_ASSIGN(InstantPage); | 284 DISALLOW_COPY_AND_ASSIGN(InstantPage); |
| 282 }; | 285 }; |
| 283 | 286 |
| 284 #endif // CHROME_BROWSER_UI_SEARCH_INSTANT_PAGE_H_ | 287 #endif // CHROME_BROWSER_UI_SEARCH_INSTANT_PAGE_H_ |
| OLD | NEW |