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

Unified Diff: chrome/browser/ui/omnibox/chrome_omnibox_edit_controller.h

Issue 1485333006: Abstract callout to OmniboxEditController on updating input in progress (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years 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/omnibox/chrome_omnibox_edit_controller.h
diff --git a/chrome/browser/ui/omnibox/chrome_omnibox_edit_controller.h b/chrome/browser/ui/omnibox/chrome_omnibox_edit_controller.h
index 386b5e9f4909b14411001c7125e95c874312d542..7f897eeb242a320aaee0df9f490f9a2d66bdc09f 100644
--- a/chrome/browser/ui/omnibox/chrome_omnibox_edit_controller.h
+++ b/chrome/browser/ui/omnibox/chrome_omnibox_edit_controller.h
@@ -19,6 +19,10 @@ class ChromeOmniboxEditController : public OmniboxEditController {
// Returns the WebContents of the currently active tab.
virtual content::WebContents* GetWebContents() = 0;
+ // Called when the the controller should update itself without restoring any
+ // tab state.
+ virtual void UpdateWithoutTabRestore() = 0;
+
CommandUpdater* command_updater() { return command_updater_; }
const CommandUpdater* command_updater() const { return command_updater_; }
@@ -31,6 +35,7 @@ class ChromeOmniboxEditController : public OmniboxEditController {
void OnAutocompleteAccept(const GURL& destination_url,
WindowOpenDisposition disposition,
ui::PageTransition transition) override;
+ void SetInputInProgress(bool in_progress) override;
CommandUpdater* command_updater_;

Powered by Google App Engine
This is Rietveld 408576698