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

Unified Diff: chrome/browser/autofill/autofill_popup_view.h

Issue 9432029: GTK Keyboard Support for New Autofill (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 8 years, 9 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/autofill/autofill_popup_unittest.cc ('k') | chrome/browser/autofill/autofill_popup_view.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/autofill/autofill_popup_view.h
diff --git a/chrome/browser/autofill/autofill_popup_view.h b/chrome/browser/autofill/autofill_popup_view.h
index 1ca890871d350d846787c2da28aa1f1c505318ef..6bf1321409d2ee4db3f7320302072efd739a38a6 100644
--- a/chrome/browser/autofill/autofill_popup_view.h
+++ b/chrome/browser/autofill/autofill_popup_view.h
@@ -75,6 +75,18 @@ class AutofillPopupView : public content::NotificationObserver {
// Change which line is currently selected by the user.
void SetSelectedLine(int selected_line);
+ // Increase the selected line by 1, properly handling wrapping.
+ void SelectNextLine();
+
+ // Decrease the selected line by 1, properly handling wrapping.
+ void SelectPreviousLine();
+
+ // The user has choosen the selected line.
+ bool AcceptSelectedLine();
+
+ // The user has removed a suggestion.
+ bool RemoveSelectedLine();
+
private:
// content::NotificationObserver method override.
virtual void Observe(int type,
@@ -100,7 +112,7 @@ class AutofillPopupView : public content::NotificationObserver {
int separator_index_;
// The line that is currently selected by the user.
- // -1 indicates that no line is currently selected.
+ // |kNoSelection| indicates that no line is currently selected.
int selected_line_;
};
« no previous file with comments | « chrome/browser/autofill/autofill_popup_unittest.cc ('k') | chrome/browser/autofill/autofill_popup_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698