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

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

Issue 20501002: Adds paste function to searchbox api and handles paste event on fakebox (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Nits Created 7 years, 4 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 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_NTP_PRERENDERER_H_ 5 #ifndef CHROME_BROWSER_UI_SEARCH_INSTANT_NTP_PRERENDERER_H_
6 #define CHROME_BROWSER_UI_SEARCH_INSTANT_NTP_PRERENDERER_H_ 6 #define CHROME_BROWSER_UI_SEARCH_INSTANT_NTP_PRERENDERER_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after
123 virtual void InstantPageAboutToNavigateMainFrame( 123 virtual void InstantPageAboutToNavigateMainFrame(
124 const content::WebContents* contents, 124 const content::WebContents* contents,
125 const GURL& url) OVERRIDE; 125 const GURL& url) OVERRIDE;
126 virtual void FocusOmnibox(const content::WebContents* contents, 126 virtual void FocusOmnibox(const content::WebContents* contents,
127 OmniboxFocusState state) OVERRIDE; 127 OmniboxFocusState state) OVERRIDE;
128 virtual void NavigateToURL(const content::WebContents* contents, 128 virtual void NavigateToURL(const content::WebContents* contents,
129 const GURL& url, 129 const GURL& url,
130 content::PageTransition transition, 130 content::PageTransition transition,
131 WindowOpenDisposition disposition, 131 WindowOpenDisposition disposition,
132 bool is_search_type) OVERRIDE; 132 bool is_search_type) OVERRIDE;
133 virtual void PasteIntoOmnibox(const content::WebContents* contents,
134 const string16& text) OVERRIDE;
133 virtual void DeleteMostVisitedItem(const GURL& url) OVERRIDE; 135 virtual void DeleteMostVisitedItem(const GURL& url) OVERRIDE;
134 virtual void UndoMostVisitedDeletion(const GURL& url) OVERRIDE; 136 virtual void UndoMostVisitedDeletion(const GURL& url) OVERRIDE;
135 virtual void UndoAllMostVisitedDeletions() OVERRIDE; 137 virtual void UndoAllMostVisitedDeletions() OVERRIDE;
136 virtual void InstantPageLoadFailed(content::WebContents* contents) OVERRIDE; 138 virtual void InstantPageLoadFailed(content::WebContents* contents) OVERRIDE;
137 139
138 // Called when the default search provider changes. Resets InstantNTP. 140 // Called when the default search provider changes. Resets InstantNTP.
139 void OnDefaultSearchProviderChanged(const std::string& pref_name); 141 void OnDefaultSearchProviderChanged(const std::string& pref_name);
140 142
141 // Recreates |ntp_| using |instant_url|. 143 // Recreates |ntp_| using |instant_url|.
142 void ResetNTP(const std::string& instant_url); 144 void ResetNTP(const std::string& instant_url);
(...skipping 13 matching lines...) Expand all
156 158
157 // Preloaded InstantNTP. 159 // Preloaded InstantNTP.
158 scoped_ptr<InstantNTP> ntp_; 160 scoped_ptr<InstantNTP> ntp_;
159 161
160 PrefChangeRegistrar profile_pref_registrar_; 162 PrefChangeRegistrar profile_pref_registrar_;
161 163
162 DISALLOW_COPY_AND_ASSIGN(InstantNTPPrerenderer); 164 DISALLOW_COPY_AND_ASSIGN(InstantNTPPrerenderer);
163 }; 165 };
164 166
165 #endif // CHROME_BROWSER_UI_SEARCH_INSTANT_NTP_PRERENDERER_H_ 167 #endif // CHROME_BROWSER_UI_SEARCH_INSTANT_NTP_PRERENDERER_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/search/instant_controller.cc ('k') | chrome/browser/ui/search/instant_ntp_prerenderer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698