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

Unified Diff: chrome/browser/ui/browser_instant_controller.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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/resources/local_ntp/local_ntp.js ('k') | chrome/browser/ui/browser_instant_controller.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/browser_instant_controller.h
diff --git a/chrome/browser/ui/browser_instant_controller.h b/chrome/browser/ui/browser_instant_controller.h
index 0d99aaab1aa6c9256552044bdbcc1b7d1f82a4c1..8ddcb483fe8b25ff069011169bb534247fbec190 100644
--- a/chrome/browser/ui/browser_instant_controller.h
+++ b/chrome/browser/ui/browser_instant_controller.h
@@ -55,9 +55,8 @@ class BrowserInstantController : public SearchModelObserver {
// this BrowserInstantController.
InstantController* instant() { return &instant_; }
- // Invoked by |instant_| to give the omnibox focus, with the option of making
- // the caret invisible.
- void FocusOmnibox(bool caret_visibility);
+ // Invoked by |instant_| to change the omnibox focus.
+ void FocusOmnibox(OmniboxFocusState state);
// Invoked by |instant_| to get the currently active tab.
content::WebContents* GetActiveWebContents() const;
@@ -73,6 +72,11 @@ class BrowserInstantController : public SearchModelObserver {
content::PageTransition transition,
WindowOpenDisposition disposition);
+ // Invoked by |instant_| to paste the |text| (or clipboard content if text is
+ // empty) into the omnibox. It will set focus to the omnibox if the omnibox is
+ // not focused.
+ void PasteIntoOmnibox(const string16& text);
+
// Sets the stored omnibox bounds.
void SetOmniboxBounds(const gfx::Rect& bounds);
« no previous file with comments | « chrome/browser/resources/local_ntp/local_ntp.js ('k') | chrome/browser/ui/browser_instant_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698