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

Side by Side Diff: chrome/browser/ui/views/autofill/autofill_popup_view_views.h

Issue 870833002: [android] Autofill popup behavior fixes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Update expectations of old test and add a new test. Created 5 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_VIEWS_AUTOFILL_AUTOFILL_POPUP_VIEW_VIEWS_H_ 5 #ifndef CHROME_BROWSER_UI_VIEWS_AUTOFILL_AUTOFILL_POPUP_VIEW_VIEWS_H_
6 #define CHROME_BROWSER_UI_VIEWS_AUTOFILL_AUTOFILL_POPUP_VIEW_VIEWS_H_ 6 #define CHROME_BROWSER_UI_VIEWS_AUTOFILL_AUTOFILL_POPUP_VIEW_VIEWS_H_
7 7
8 #include "chrome/browser/ui/autofill/autofill_popup_view.h" 8 #include "chrome/browser/ui/autofill/autofill_popup_view.h"
9 #include "chrome/browser/ui/views/autofill/autofill_popup_base_view.h" 9 #include "chrome/browser/ui/views/autofill/autofill_popup_base_view.h"
10 10
11 class AutofillPopupController; 11 class AutofillPopupController;
12 12
13 namespace autofill { 13 namespace autofill {
14 14
15 // Views toolkit implementation for AutofillPopupView. 15 // Views toolkit implementation for AutofillPopupView.
16 class AutofillPopupViewViews : public AutofillPopupBaseView, 16 class AutofillPopupViewViews : public AutofillPopupBaseView,
17 public AutofillPopupView { 17 public AutofillPopupView {
18 public: 18 public:
19 // The observing widget should be the top level widget for the native
20 // view, which we need to listen to for several signals that indicate the
21 // popup should be closed.
22 AutofillPopupViewViews(AutofillPopupController* controller, 19 AutofillPopupViewViews(AutofillPopupController* controller,
23 views::Widget* observing_widget); 20 views::FocusManager* focus_manager);
24 21
25 private: 22 private:
26 ~AutofillPopupViewViews() override; 23 ~AutofillPopupViewViews() override;
27 24
28 // AutofillPopupView implementation. 25 // AutofillPopupView implementation.
29 void Show() override; 26 void Show() override;
30 void Hide() override; 27 void Hide() override;
31 void InvalidateRow(size_t row) override; 28 void InvalidateRow(size_t row) override;
32 void UpdateBoundsAndRedrawPopup() override; 29 void UpdateBoundsAndRedrawPopup() override;
33 30
34 // views::Views implementation 31 // views::Views implementation
35 void OnPaint(gfx::Canvas* canvas) override; 32 void OnPaint(gfx::Canvas* canvas) override;
36 33
37 // Draw the given autofill entry in |entry_rect|. 34 // Draw the given autofill entry in |entry_rect|.
38 void DrawAutofillEntry(gfx::Canvas* canvas, 35 void DrawAutofillEntry(gfx::Canvas* canvas,
39 int index, 36 int index,
40 const gfx::Rect& entry_rect); 37 const gfx::Rect& entry_rect);
41 38
42 AutofillPopupController* controller_; // Weak reference. 39 AutofillPopupController* controller_; // Weak reference.
43 40
44 DISALLOW_COPY_AND_ASSIGN(AutofillPopupViewViews); 41 DISALLOW_COPY_AND_ASSIGN(AutofillPopupViewViews);
45 }; 42 };
46 43
47 } // namespace autofill 44 } // namespace autofill
48 45
49 #endif // CHROME_BROWSER_UI_VIEWS_AUTOFILL_AUTOFILL_POPUP_VIEW_VIEWS_H_ 46 #endif // CHROME_BROWSER_UI_VIEWS_AUTOFILL_AUTOFILL_POPUP_VIEW_VIEWS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698