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

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

Issue 12556002: Always Close the Autofill UI through the same path (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Disable Test On Linux Created 7 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 unified diff | Download patch
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"
11 #include "base/string16.h" 11 #include "base/string16.h"
12 #include "ui/gfx/native_widget_types.h" 12 #include "ui/gfx/native_widget_types.h"
13 13
14 namespace gfx { 14 namespace gfx {
15 class Font; 15 class Font;
16 class Point; 16 class Point;
17 class Rect; 17 class Rect;
18 class RectF; 18 class RectF;
19 } 19 }
20 20
21 // This interface provides data to an AutofillPopupView. 21 // This interface provides data to an AutofillPopupView.
22 class AutofillPopupController { 22 class AutofillPopupController {
23 public: 23 public:
24 // Called when the view is going down. 24 // Called when the popup should get hidden.
25 virtual void ViewDestroyed() = 0; 25 virtual void Hide() = 0;
26 26
27 // Recalculates the height and width of the popup and triggers a redraw. 27 // Recalculates the height and width of the popup and triggers a redraw.
28 virtual void UpdateBoundsAndRedrawPopup() = 0; 28 virtual void UpdateBoundsAndRedrawPopup() = 0;
29 29
30 // The user has moved the mouse within the popup. 30 // The user has moved the mouse within the popup.
31 virtual void MouseHovered(int x, int y) = 0; 31 virtual void MouseHovered(int x, int y) = 0;
32 32
33 // The user clicked the mouse within the popup. 33 // The user clicked the mouse within the popup.
34 virtual void MouseClicked(int x, int y) = 0; 34 virtual void MouseClicked(int x, int y) = 0;
35 35
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
86 86
87 // Returns the index of the selected line. A line is "selected" when it is 87 // Returns the index of the selected line. A line is "selected" when it is
88 // hovered or has keyboard focus. 88 // hovered or has keyboard focus.
89 virtual int selected_line() const = 0; 89 virtual int selected_line() const = 0;
90 90
91 protected: 91 protected:
92 virtual ~AutofillPopupController() {} 92 virtual ~AutofillPopupController() {}
93 }; 93 };
94 94
95 #endif // CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_POPUP_CONTROLLER_H_ 95 #endif // CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_POPUP_CONTROLLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698