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

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

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: Focus handled in browser_instant_controller 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 #include "chrome/browser/ui/search/instant_ntp_prerenderer.h" 5 #include "chrome/browser/ui/search/instant_ntp_prerenderer.h"
6 6
7 #include "base/basictypes.h" 7 #include "base/basictypes.h"
8 #include "base/bind.h" 8 #include "base/bind.h"
9 #include "base/message_loop/message_loop.h" 9 #include "base/message_loop/message_loop.h"
10 #include "base/prefs/pref_service.h" 10 #include "base/prefs/pref_service.h"
(...skipping 205 matching lines...) Expand 10 before | Expand all | Expand 10 after
216 } 216 }
217 217
218 void InstantNTPPrerenderer::NavigateToURL(const content::WebContents* contents, 218 void InstantNTPPrerenderer::NavigateToURL(const content::WebContents* contents,
219 const GURL& url, 219 const GURL& url,
220 content::PageTransition transition, 220 content::PageTransition transition,
221 WindowOpenDisposition disposition, 221 WindowOpenDisposition disposition,
222 bool is_search_type) { 222 bool is_search_type) {
223 NOTREACHED(); 223 NOTREACHED();
224 } 224 }
225 225
226 void InstantNTPPrerenderer::PasteIntoOmnibox(
227 const content::WebContents* contents) {
228 NOTREACHED();
229 }
230
226 void InstantNTPPrerenderer::DeleteMostVisitedItem(const GURL& url) { 231 void InstantNTPPrerenderer::DeleteMostVisitedItem(const GURL& url) {
227 NOTREACHED(); 232 NOTREACHED();
228 } 233 }
229 234
230 void InstantNTPPrerenderer::UndoMostVisitedDeletion(const GURL& url) { 235 void InstantNTPPrerenderer::UndoMostVisitedDeletion(const GURL& url) {
231 NOTREACHED(); 236 NOTREACHED();
232 } 237 }
233 238
234 void InstantNTPPrerenderer::UndoAllMostVisitedDeletions() { 239 void InstantNTPPrerenderer::UndoAllMostVisitedDeletions() {
235 NOTREACHED(); 240 NOTREACHED();
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
294 return false; 299 return false;
295 300
296 if (PageIsCurrent()) 301 if (PageIsCurrent())
297 return false; 302 return false;
298 303
299 // The preloaded NTP does not support instant yet. If we're not in startup, 304 // The preloaded NTP does not support instant yet. If we're not in startup,
300 // always fall back to the local NTP. If we are in startup, use the local NTP 305 // always fall back to the local NTP. If we are in startup, use the local NTP
301 // (unless the finch flag to use the remote NTP is set). 306 // (unless the finch flag to use the remote NTP is set).
302 return !(InStartup() && chrome::ShouldPreferRemoteNTPOnStartup()); 307 return !(InStartup() && chrome::ShouldPreferRemoteNTPOnStartup());
303 } 308 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698