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

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: Adds optional text param to paste. Also adds drop behavior to fakebox. 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 197 matching lines...) Expand 10 before | Expand all | Expand 10 after
208 } 208 }
209 209
210 void InstantNTPPrerenderer::NavigateToURL(const content::WebContents* contents, 210 void InstantNTPPrerenderer::NavigateToURL(const content::WebContents* contents,
211 const GURL& url, 211 const GURL& url,
212 content::PageTransition transition, 212 content::PageTransition transition,
213 WindowOpenDisposition disposition, 213 WindowOpenDisposition disposition,
214 bool is_search_type) { 214 bool is_search_type) {
215 NOTREACHED(); 215 NOTREACHED();
216 } 216 }
217 217
218 void InstantNTPPrerenderer::PasteIntoOmnibox(
219 const content::WebContents* contents, const string16& text) {
samarth 2013/08/06 18:39:44 nit: comment out the unused variables like so cons
jfweitz 2013/08/09 02:37:41 Done.
220 NOTREACHED();
221 }
222
218 void InstantNTPPrerenderer::DeleteMostVisitedItem(const GURL& url) { 223 void InstantNTPPrerenderer::DeleteMostVisitedItem(const GURL& url) {
219 NOTREACHED(); 224 NOTREACHED();
220 } 225 }
221 226
222 void InstantNTPPrerenderer::UndoMostVisitedDeletion(const GURL& url) { 227 void InstantNTPPrerenderer::UndoMostVisitedDeletion(const GURL& url) {
223 NOTREACHED(); 228 NOTREACHED();
224 } 229 }
225 230
226 void InstantNTPPrerenderer::UndoAllMostVisitedDeletions() { 231 void InstantNTPPrerenderer::UndoAllMostVisitedDeletions() {
227 NOTREACHED(); 232 NOTREACHED();
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
283 return false; 288 return false;
284 289
285 if (PageIsCurrent()) 290 if (PageIsCurrent())
286 return false; 291 return false;
287 292
288 // The preloaded NTP does not support instant yet. If we're not in startup, 293 // The preloaded NTP does not support instant yet. If we're not in startup,
289 // always fall back to the local NTP. If we are in startup, use the local NTP 294 // always fall back to the local NTP. If we are in startup, use the local NTP
290 // (unless the finch flag to use the remote NTP is set). 295 // (unless the finch flag to use the remote NTP is set).
291 return !(InStartup() && chrome::ShouldPreferRemoteNTPOnStartup()); 296 return !(InStartup() && chrome::ShouldPreferRemoteNTPOnStartup());
292 } 297 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698