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

Unified Diff: chrome/browser/autocomplete/autocomplete_edit_view_mac.h

Issue 180009: [Mac] Handle backspacing out of keyword search. (Closed)
Patch Set: Consistent initializer per Rohit. Created 11 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 | « no previous file | chrome/browser/autocomplete/autocomplete_edit_view_mac.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/autocomplete/autocomplete_edit_view_mac.h
diff --git a/chrome/browser/autocomplete/autocomplete_edit_view_mac.h b/chrome/browser/autocomplete/autocomplete_edit_view_mac.h
index 0c0cb2bdc8caa9996fcc4c67762861a8daac2b83..e3c63722885926e6daca711f44d09e953c8b2495 100644
--- a/chrome/browser/autocomplete/autocomplete_edit_view_mac.h
+++ b/chrome/browser/autocomplete/autocomplete_edit_view_mac.h
@@ -116,6 +116,12 @@ class AutocompleteEditViewMac : public AutocompleteEditView {
// if so. Returns true if the tab should be eaten.
bool OnTabPressed();
+ // Called when the user hits backspace in |field_|. Checks whether
+ // keyword search is being terminated. Returns true if the
+ // backspace should be intercepted (not forwarded on to the standard
+ // machinery).
+ bool OnBackspacePressed();
+
void AcceptInput(WindowOpenDisposition disposition, bool for_drop);
// Helper for LocationBarViewMac. Selects all in |field_|.
« no previous file with comments | « no previous file | chrome/browser/autocomplete/autocomplete_edit_view_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698