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

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: Focus handled in browser_instant_controller Created 7 years, 5 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
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..bae450065f9f2986a9e303fa3bf995761d9a0bd7 100644
--- a/chrome/browser/ui/browser_instant_controller.h
+++ b/chrome/browser/ui/browser_instant_controller.h
@@ -55,9 +55,9 @@ 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(const content::WebContents* contents,
+ OmniboxFocusState state);
// Invoked by |instant_| to get the currently active tab.
content::WebContents* GetActiveWebContents() const;
@@ -73,6 +73,10 @@ class BrowserInstantController : public SearchModelObserver {
content::PageTransition transition,
WindowOpenDisposition disposition);
+ // Invoked by |instant_| to paste the clipboard content into the omnibox.
+ // It will set focus to the omnibox if the omnibox is not focused.
+ void PasteIntoOmnibox();
+
// Sets the stored omnibox bounds.
void SetOmniboxBounds(const gfx::Rect& bounds);

Powered by Google App Engine
This is Rietveld 408576698