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

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

Issue 12302034: Always Close the Autofill UI through the same path (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Adding Tests Created 7 years, 10 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 popup should get hidden.
25 virtual void Hide() = 0;
26
24 // Called when the view is going down. 27 // Called when the view is going down.
25 virtual void ViewDestroyed() = 0; 28 virtual void ViewDestroyed() = 0;
Ilya Sherman 2013/02/22 00:29:04 Is this method still necessary? If so, I don't re
csharp 2013/02/22 15:41:31 Removed, all hiding/deleting is now done through t
Ilya Sherman 2013/02/23 00:02:36 So, the view is owned by its parent view. What ha
csharp 2013/02/25 20:29:29 The views aren't really owned by the parent, they
Ilya Sherman 2013/02/26 01:02:32 So, let's zoom in on the second Views case: Suppos
csharp 2013/02/26 18:33:31 That second view case doesn't actually happen anym
Ilya Sherman 2013/02/26 23:50:34 Ok.
csharp 2013/02/27 18:18:13 Done.
26 29
27 // Recalculates the height and width of the popup and triggers a redraw. 30 // Recalculates the height and width of the popup and triggers a redraw.
28 virtual void UpdateBoundsAndRedrawPopup() = 0; 31 virtual void UpdateBoundsAndRedrawPopup() = 0;
29 32
30 // The user has moved the mouse within the popup. 33 // The user has moved the mouse within the popup.
31 virtual void MouseHovered(int x, int y) = 0; 34 virtual void MouseHovered(int x, int y) = 0;
32 35
33 // The user clicked the mouse within the popup. 36 // The user clicked the mouse within the popup.
34 virtual void MouseClicked(int x, int y) = 0; 37 virtual void MouseClicked(int x, int y) = 0;
35 38
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
89 virtual int selected_line() const = 0; 92 virtual int selected_line() const = 0;
90 93
91 // Returns true if the delete icon of the selected line is currently hovered. 94 // Returns true if the delete icon of the selected line is currently hovered.
92 virtual bool delete_icon_hovered() const = 0; 95 virtual bool delete_icon_hovered() const = 0;
93 96
94 protected: 97 protected:
95 virtual ~AutofillPopupController() {} 98 virtual ~AutofillPopupController() {}
96 }; 99 };
97 100
98 #endif // CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_POPUP_CONTROLLER_H_ 101 #endif // CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_POPUP_CONTROLLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698