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

Side by Side Diff: chrome/browser/ui/autofill/autofill_popup_controller.h

Issue 44543002: Enable touch for autofill popup view (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Back to "selection" nomenclature 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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_POPUP_CONTROLLER_H_ 5 #ifndef CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_POPUP_CONTROLLER_H_
6 #define CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_POPUP_CONTROLLER_H_ 6 #define CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_POPUP_CONTROLLER_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
(...skipping 18 matching lines...) Expand all
29 public: 29 public:
30 // Called when the popup should get hidden. 30 // Called when the popup should get hidden.
31 virtual void Hide() = 0; 31 virtual void Hide() = 0;
32 32
33 // Called whent the popup view was destroyed. 33 // Called whent the popup view was destroyed.
34 virtual void ViewDestroyed() = 0; 34 virtual void ViewDestroyed() = 0;
35 35
36 // Recalculates the height and width of the popup and triggers a redraw. 36 // Recalculates the height and width of the popup and triggers a redraw.
37 virtual void UpdateBoundsAndRedrawPopup() = 0; 37 virtual void UpdateBoundsAndRedrawPopup() = 0;
38 38
39 // The user has moved the mouse within the popup. 39 // The line at (x, y) is selected (e.g., mouse hovered).
Ilya Sherman 2013/11/05 18:39:45 nit: "is" -> "was"; or better yet, something like
mohsen 2013/11/05 19:52:36 Done.
40 virtual void MouseHovered(int x, int y) = 0; 40 virtual void LineSelectedAtPoint(int x, int y) = 0;
41 41
42 // The user clicked the mouse within the popup. 42 // The line at (x, y) is accepted (e.g., mouse clicked).
43 virtual void MouseClicked(int x, int y) = 0; 43 virtual void LineAcceptedAtPoint(int x, int y) = 0;
44 44
45 // The user has moved the mouse outside of the popup. 45 // The selection is cleared (e.g., mouse exited popup).
46 virtual void MouseExitedPopup() = 0; 46 virtual void SelectionCleared() = 0;
47 47
48 // Whether |event| should be reposted to the native window management. 48 // Whether |event| should be reposted to the native window management.
49 virtual bool ShouldRepostEvent(const ui::MouseEvent& event) = 0; 49 virtual bool ShouldRepostEvent(const ui::MouseEvent& event) = 0;
50 50
51 // Accepts the suggestion at |index|. 51 // Accepts the suggestion at |index|.
52 virtual void AcceptSuggestion(size_t index) = 0; 52 virtual void AcceptSuggestion(size_t index) = 0;
53 53
54 // Gets the resource value for the given resource, returning -1 if the 54 // Gets the resource value for the given resource, returning -1 if the
55 // resource isn't recognized. 55 // resource isn't recognized.
56 virtual int GetIconResourceID(const string16& resource_name) = 0; 56 virtual int GetIconResourceID(const string16& resource_name) = 0;
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
110 // Whether the view should be hidden on outside mouse presses. 110 // Whether the view should be hidden on outside mouse presses.
111 virtual bool hide_on_outside_click() const = 0; 111 virtual bool hide_on_outside_click() const = 0;
112 112
113 protected: 113 protected:
114 virtual ~AutofillPopupController() {} 114 virtual ~AutofillPopupController() {}
115 }; 115 };
116 116
117 } // namespace autofill 117 } // namespace autofill
118 118
119 #endif // CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_POPUP_CONTROLLER_H_ 119 #endif // CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_POPUP_CONTROLLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698