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

Side by Side Diff: components/autofill/core/browser/autofill_popup_delegate.h

Issue 44543002: Enable touch for autofill popup view (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixed Gtk and Cocoa compile errors Created 7 years, 1 month 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_POPUP_DELEGATE_H_ 5 #ifndef COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_POPUP_DELEGATE_H_
6 #define COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_POPUP_DELEGATE_H_ 6 #define COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_POPUP_DELEGATE_H_
7 7
8 #include "base/strings/string16.h" 8 #include "base/strings/string16.h"
9 #include "content/public/browser/render_view_host.h" 9 #include "content/public/browser/render_view_host.h"
10 10
(...skipping 15 matching lines...) Expand all
26 // Called when the Autofill popup is hidden. |callback| must be unregistered 26 // Called when the Autofill popup is hidden. |callback| must be unregistered
27 // if it was registered in OnPopupShown. 27 // if it was registered in OnPopupShown.
28 virtual void OnPopupHidden( 28 virtual void OnPopupHidden(
29 content::RenderWidgetHost::KeyPressEventCallback* callback) = 0; 29 content::RenderWidgetHost::KeyPressEventCallback* callback) = 0;
30 30
31 // Called when the Autofill popup recieves a click outside of the popup view 31 // Called when the Autofill popup recieves a click outside of the popup view
32 // to determine if the event should be reposted to the native window manager. 32 // to determine if the event should be reposted to the native window manager.
33 virtual bool ShouldRepostEvent(const ui::MouseEvent& event) = 0; 33 virtual bool ShouldRepostEvent(const ui::MouseEvent& event) = 0;
34 34
35 // Called when the autofill suggestion indicated by |identifier| has been 35 // Called when the autofill suggestion indicated by |identifier| has been
36 // temporarily selected (e.g., hovered). 36 // preselected (e.g., hovered).
37 virtual void DidSelectSuggestion(int identifier) = 0; 37 virtual void DidPreselectSuggestion(int identifier) = 0;
38 38
39 // Inform the delegate that a row in the popup has been chosen. 39 // Inform the delegate that a row in the popup has been chosen.
40 virtual void DidAcceptSuggestion(const base::string16& value, 40 virtual void DidAcceptSuggestion(const base::string16& value,
41 int identifier) = 0; 41 int identifier) = 0;
42 42
43 // Delete the described suggestion. 43 // Delete the described suggestion.
44 virtual void RemoveSuggestion(const base::string16& value, 44 virtual void RemoveSuggestion(const base::string16& value,
45 int identifier) = 0; 45 int identifier) = 0;
46 46
47 // Informs the delegate that the Autofill previewed form should be cleared. 47 // Informs the delegate that the Autofill previewed form should be cleared.
48 virtual void ClearPreviewedForm() = 0; 48 virtual void ClearPreviewedForm() = 0;
49 }; 49 };
50 50
51 } // namespace autofill 51 } // namespace autofill
52 52
53 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_POPUP_DELEGATE_H_ 53 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_POPUP_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698