| Index: chrome/browser/ui/omnibox/omnibox_edit_model.h
|
| diff --git a/chrome/browser/ui/omnibox/omnibox_edit_model.h b/chrome/browser/ui/omnibox/omnibox_edit_model.h
|
| index e9535bb01571096b5e69e067eded0def5905fdc5..274fca10bbde9428e33f70ff4b23efad38a723aa 100644
|
| --- a/chrome/browser/ui/omnibox/omnibox_edit_model.h
|
| +++ b/chrome/browser/ui/omnibox/omnibox_edit_model.h
|
| @@ -275,6 +275,11 @@ class OmniboxEditModel {
|
| // Called when the view is losing focus. Resets some state.
|
| void OnKillFocus();
|
|
|
| + // Returns whether the omnibox will handle a press of the escape key. The
|
| + // caller can use this to decide whether the browser should process escape as
|
| + // "stop current page load".
|
| + bool WillHandleEscapeKey() const;
|
| +
|
| // Called when the user presses the escape key. Decides what, if anything, to
|
| // revert about any current edits. Returns whether the key was handled.
|
| bool OnEscapeKeyPressed();
|
|
|