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

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

Issue 2727233003: Uses child views in Autofill Popup so we can trigger (Closed)
Patch Set: Switches from size_t to int when we are not referring to size of an object. Created 3 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_VIEW_H_ 5 #ifndef CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_POPUP_VIEW_H_
6 #define CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_POPUP_VIEW_H_ 6 #define CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_POPUP_VIEW_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 9
10 #include "base/optional.h"
10 #include "base/strings/string16.h" 11 #include "base/strings/string16.h"
11 #include "chrome/browser/ui/autofill/autofill_popup_view_delegate.h" 12 #include "chrome/browser/ui/autofill/autofill_popup_view_delegate.h"
13 #include "ui/accessibility/ax_enums.h"
groby-ooo-7-16 2017/03/20 20:42:55 Why are ax_enums.h included?
csashi 2017/03/20 21:41:51 Done.
12 14
13 namespace autofill { 15 namespace autofill {
14 16
15 class AutofillPopupController; 17 class AutofillPopupController;
16 18
17 // The interface for creating and controlling a platform-dependent 19 // The interface for creating and controlling a platform-dependent
18 // AutofillPopupView. 20 // AutofillPopupView.
19 class AutofillPopupView { 21 class AutofillPopupView {
20 public: 22 public:
21 // Displays the Autofill popup and fills it in with data from the controller. 23 // Displays the Autofill popup and fills it in with data from the controller.
22 virtual void Show() = 0; 24 virtual void Show() = 0;
23 25
24 // Hides the popup from view. This will cause the popup to be deleted. 26 // Hides the popup from view. This will cause the popup to be deleted.
25 virtual void Hide() = 0; 27 virtual void Hide() = 0;
26 28
27 // Invalidates the given row and redraw it. 29 // If not null, invalidates the given rows and redraws them.
28 virtual void InvalidateRow(size_t row) = 0; 30 virtual void OnSelectedRowChanged(
groby-ooo-7-16 2017/03/20 20:42:55 Why does using child views necessitate an API chan
csashi 2017/03/20 21:41:51 Using child views does not necessitate an API chan
31 base::Optional<int> previous_row_selection,
32 base::Optional<int> current_row_selection) = 0;
29 33
30 // Refreshes the position of the popup. 34 // Refreshes the position and redraws popup when suggestions change.
31 virtual void UpdateBoundsAndRedrawPopup() = 0; 35 virtual void OnSuggestionsChanged() = 0;
32 36
33 // Factory function for creating the view. 37 // Factory function for creating the view.
34 static AutofillPopupView* Create(AutofillPopupController* controller); 38 static AutofillPopupView* Create(AutofillPopupController* controller);
35 39
36 protected: 40 protected:
37 virtual ~AutofillPopupView() {} 41 virtual ~AutofillPopupView() {}
38 }; 42 };
39 43
40 } // namespace autofill 44 } // namespace autofill
41 45
42 #endif // CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_POPUP_VIEW_H_ 46 #endif // CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_POPUP_VIEW_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698