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

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: 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 #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 113 matching lines...) Expand 10 before | Expand all | Expand 10 after
124 virtual void InstantPageAboutToNavigateMainFrame( 124 virtual void InstantPageAboutToNavigateMainFrame(
125 const content::WebContents* contents, 125 const content::WebContents* contents,
126 const GURL& url) OVERRIDE; 126 const GURL& url) OVERRIDE;
127 virtual void FocusOmnibox(const content::WebContents* contents, 127 virtual void FocusOmnibox(const content::WebContents* contents,
128 OmniboxFocusState state) OVERRIDE; 128 OmniboxFocusState state) OVERRIDE;
129 virtual void NavigateToURL(const content::WebContents* contents, 129 virtual void NavigateToURL(const content::WebContents* contents,
130 const GURL& url, 130 const GURL& url,
131 content::PageTransition transition, 131 content::PageTransition transition,
132 WindowOpenDisposition disposition, 132 WindowOpenDisposition disposition,
133 bool is_search_type) OVERRIDE; 133 bool is_search_type) OVERRIDE;
134 virtual void PasteIntoOmnibox(const content::WebContents* contents) OVERRIDE;
134 virtual void DeleteMostVisitedItem(const GURL& url) OVERRIDE; 135 virtual void DeleteMostVisitedItem(const GURL& url) OVERRIDE;
135 virtual void UndoMostVisitedDeletion(const GURL& url) OVERRIDE; 136 virtual void UndoMostVisitedDeletion(const GURL& url) OVERRIDE;
136 virtual void UndoAllMostVisitedDeletions() OVERRIDE; 137 virtual void UndoAllMostVisitedDeletions() OVERRIDE;
137 virtual void InstantPageLoadFailed(content::WebContents* contents) OVERRIDE; 138 virtual void InstantPageLoadFailed(content::WebContents* contents) OVERRIDE;
138 139
139 // Called when the default search provider changes. Resets InstantNTP. 140 // Called when the default search provider changes. Resets InstantNTP.
140 void OnDefaultSearchProviderChanged(const std::string& pref_name); 141 void OnDefaultSearchProviderChanged(const std::string& pref_name);
141 142
142 // Recreates |ntp_| using |instant_url|. 143 // Recreates |ntp_| using |instant_url|.
143 void ResetNTP(const std::string& instant_url); 144 void ResetNTP(const std::string& instant_url);
(...skipping 16 matching lines...) Expand all
160 161
161 // Preloaded InstantNTP. 162 // Preloaded InstantNTP.
162 scoped_ptr<InstantNTP> ntp_; 163 scoped_ptr<InstantNTP> ntp_;
163 164
164 PrefChangeRegistrar profile_pref_registrar_; 165 PrefChangeRegistrar profile_pref_registrar_;
165 166
166 DISALLOW_COPY_AND_ASSIGN(InstantNTPPrerenderer); 167 DISALLOW_COPY_AND_ASSIGN(InstantNTPPrerenderer);
167 }; 168 };
168 169
169 #endif // CHROME_BROWSER_UI_SEARCH_INSTANT_NTP_PRERENDERER_H_ 170 #endif // CHROME_BROWSER_UI_SEARCH_INSTANT_NTP_PRERENDERER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698