Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(264)

Side by Side Diff: chrome/browser/ui/search/search_tab_helper_delegate.h

Issue 1908363002: Nuke chrome.embeddedeseach.newTabPage.navigateContentWindow (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_SEARCH_TAB_HELPER_DELEGATE_H_ 5 #ifndef CHROME_BROWSER_UI_SEARCH_SEARCH_TAB_HELPER_DELEGATE_H_
6 #define CHROME_BROWSER_UI_SEARCH_SEARCH_TAB_HELPER_DELEGATE_H_ 6 #define CHROME_BROWSER_UI_SEARCH_SEARCH_TAB_HELPER_DELEGATE_H_
7 7
8 #include <set> 8 #include <set>
9 #include <string> 9 #include <string>
10 10
11 #include "ui/base/window_open_disposition.h" 11 #include "ui/base/window_open_disposition.h"
12 12
13 namespace content { 13 namespace content {
14 class WebContents; 14 class WebContents;
15 } 15 }
16 16
17 class GURL; 17 class GURL;
18 class OmniboxView; 18 class OmniboxView;
19 19
20 // Objects implement this interface to get notified about changes in the 20 // Objects implement this interface to get notified about changes in the
21 // SearchTabHelper and to provide necessary functionality. 21 // SearchTabHelper and to provide necessary functionality.
22 class SearchTabHelperDelegate { 22 class SearchTabHelperDelegate {
23 public: 23 public:
24 // Navigates the page to |url| in response to a click event. Usually used
25 // by the page to navigate to privileged destinations (e.g. chrome:// URLs) or
26 // to navigate to URLs that are hidden from the page using Restricted IDs
27 // (rid in the API).
28 //
29 // TODO(kmadhusu): Handle search results page navigations to privileged
30 // destinations in a seperate function. This function should handle only the
31 // new tab page thumbnail click events.
32 virtual void NavigateOnThumbnailClick(const GURL& url,
33 WindowOpenDisposition disposition,
34 content::WebContents* source_contents);
35
36 // Invoked when the |web_contents| no longer supports Instant. 24 // Invoked when the |web_contents| no longer supports Instant.
37 virtual void OnWebContentsInstantSupportDisabled( 25 virtual void OnWebContentsInstantSupportDisabled(
38 const content::WebContents* web_contents); 26 const content::WebContents* web_contents);
39 27
40 // Returns the OmniboxView or NULL if not available. 28 // Returns the OmniboxView or NULL if not available.
41 virtual OmniboxView* GetOmniboxView(); 29 virtual OmniboxView* GetOmniboxView();
42 30
43 // Returns a set containing the canonical URLs of the currently open tabs. 31 // Returns a set containing the canonical URLs of the currently open tabs.
44 virtual std::set<std::string> GetOpenUrls(); 32 virtual std::set<std::string> GetOpenUrls();
45 33
46 protected: 34 protected:
47 virtual ~SearchTabHelperDelegate(); 35 virtual ~SearchTabHelperDelegate();
48 }; 36 };
49 37
50 #endif // CHROME_BROWSER_UI_SEARCH_SEARCH_TAB_HELPER_DELEGATE_H_ 38 #endif // CHROME_BROWSER_UI_SEARCH_SEARCH_TAB_HELPER_DELEGATE_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/search/search_tab_helper.cc ('k') | chrome/browser/ui/search/search_tab_helper_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698