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

Side by Side Diff: chrome/browser/ui/views/autofill/password_generation_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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_PASSWORD_GENERATION_POPUP_VIEW_VIEWS_H_ 5 #ifndef CHROME_BROWSER_UI_VIEWS_AUTOFILL_PASSWORD_GENERATION_POPUP_VIEW_VIEWS_H_
6 #define CHROME_BROWSER_UI_VIEWS_AUTOFILL_PASSWORD_GENERATION_POPUP_VIEW_VIEWS_H_ 6 #define CHROME_BROWSER_UI_VIEWS_AUTOFILL_PASSWORD_GENERATION_POPUP_VIEW_VIEWS_H_
7 7
8 #include "chrome/browser/ui/autofill/password_generation_popup_view.h" 8 #include "chrome/browser/ui/autofill/password_generation_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 #include "ui/gfx/font_list.h" 10 #include "ui/gfx/font_list.h"
11 #include "ui/views/controls/styled_label_listener.h" 11 #include "ui/views/controls/styled_label_listener.h"
12 12
13 namespace views { 13 namespace views {
14 class StyledLabel; 14 class StyledLabel;
15 class View; 15 class View;
16 } 16 }
17 17
18 namespace autofill { 18 namespace autofill {
19 19
20 class PasswordGenerationPopupController; 20 class PasswordGenerationPopupController;
21 21
22 class PasswordGenerationPopupViewViews : public AutofillPopupBaseView, 22 class PasswordGenerationPopupViewViews : public AutofillPopupBaseView,
23 public PasswordGenerationPopupView, 23 public PasswordGenerationPopupView,
24 public views::StyledLabelListener { 24 public views::StyledLabelListener {
25 public: 25 public:
26 PasswordGenerationPopupViewViews( 26 PasswordGenerationPopupViewViews(
27 PasswordGenerationPopupController* controller, 27 PasswordGenerationPopupController* controller,
28 views::Widget* observing_widget); 28 views::FocusManager* focus_manager);
29 29
30 // PasswordGenerationPopupView implementation 30 // PasswordGenerationPopupView implementation
31 void Show() override; 31 void Show() override;
32 void Hide() override; 32 void Hide() override;
33 gfx::Size GetPreferredSizeOfPasswordView() override; 33 gfx::Size GetPreferredSizeOfPasswordView() override;
34 void UpdateBoundsAndRedrawPopup() override; 34 void UpdateBoundsAndRedrawPopup() override;
35 void PasswordSelectionUpdated() override; 35 void PasswordSelectionUpdated() override;
36 bool IsPointInPasswordBounds(const gfx::Point& point) override; 36 bool IsPointInPasswordBounds(const gfx::Point& point) override;
37 37
38 private: 38 private:
(...skipping 26 matching lines...) Expand all
65 65
66 // Controller for this view. Weak reference. 66 // Controller for this view. Weak reference.
67 PasswordGenerationPopupController* controller_; 67 PasswordGenerationPopupController* controller_;
68 68
69 DISALLOW_COPY_AND_ASSIGN(PasswordGenerationPopupViewViews); 69 DISALLOW_COPY_AND_ASSIGN(PasswordGenerationPopupViewViews);
70 }; 70 };
71 71
72 } // namespace autofill 72 } // namespace autofill
73 73
74 #endif // CHROME_BROWSER_UI_VIEWS_AUTOFILL_PASSWORD_GENERATION_POPUP_VIEW_VIEWS _H_ 74 #endif // CHROME_BROWSER_UI_VIEWS_AUTOFILL_PASSWORD_GENERATION_POPUP_VIEW_VIEWS _H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698