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

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

Issue 2477463003: Replace ui::AXViewState with AXNodeData and AXActionData (Closed)
Patch Set: Fix test Created 4 years, 1 month 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 "base/macros.h" 8 #include "base/macros.h"
9 #include "chrome/browser/ui/autofill/password_generation_popup_view.h" 9 #include "chrome/browser/ui/autofill/password_generation_popup_view.h"
10 #include "chrome/browser/ui/views/autofill/autofill_popup_base_view.h" 10 #include "chrome/browser/ui/views/autofill/autofill_popup_base_view.h"
(...skipping 30 matching lines...) Expand all
41 class PasswordBox; 41 class PasswordBox;
42 42
43 ~PasswordGenerationPopupViewViews() override; 43 ~PasswordGenerationPopupViewViews() override;
44 44
45 // Helper function to create |password_view_|. 45 // Helper function to create |password_view_|.
46 void CreatePasswordView(); 46 void CreatePasswordView();
47 47
48 // views:Views implementation. 48 // views:Views implementation.
49 void Layout() override; 49 void Layout() override;
50 void OnPaint(gfx::Canvas* canvas) override; 50 void OnPaint(gfx::Canvas* canvas) override;
51 void GetAccessibleState(ui::AXViewState* state) override; 51 void GetAccessibleNodeData(ui::AXNodeData* node_data) override;
52 52
53 // views::StyledLabelListener implementation 53 // views::StyledLabelListener implementation
54 void StyledLabelLinkClicked(views::StyledLabel* label, 54 void StyledLabelLinkClicked(views::StyledLabel* label,
55 const gfx::Range& range, 55 const gfx::Range& range,
56 int event_flags) override; 56 int event_flags) override;
57 57
58 // Sub views. Used to change bounds when updating. Weak references. 58 // Sub views. Used to change bounds when updating. Weak references.
59 PasswordBox* password_view_; 59 PasswordBox* password_view_;
60 views::StyledLabel* help_label_; 60 views::StyledLabel* help_label_;
61 61
62 // Fonts to use. 62 // Fonts to use.
63 gfx::FontList font_list_; 63 gfx::FontList font_list_;
64 64
65 // Size of the divider between the password and the help text. 65 // Size of the divider between the password and the help text.
66 gfx::Rect divider_bounds_; 66 gfx::Rect divider_bounds_;
67 67
68 // Controller for this view. Weak reference. 68 // Controller for this view. Weak reference.
69 PasswordGenerationPopupController* controller_; 69 PasswordGenerationPopupController* controller_;
70 70
71 DISALLOW_COPY_AND_ASSIGN(PasswordGenerationPopupViewViews); 71 DISALLOW_COPY_AND_ASSIGN(PasswordGenerationPopupViewViews);
72 }; 72 };
73 73
74 } // namespace autofill 74 } // namespace autofill
75 75
76 #endif // CHROME_BROWSER_UI_VIEWS_AUTOFILL_PASSWORD_GENERATION_POPUP_VIEW_VIEWS _H_ 76 #endif // CHROME_BROWSER_UI_VIEWS_AUTOFILL_PASSWORD_GENERATION_POPUP_VIEW_VIEWS _H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698