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

Side by Side Diff: chrome/browser/ui/views/password_generation_bubble_view.h

Issue 13584010: views: Migrate the cases of "new .*NativeTextButton(" to LabelButton. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: back out the changes to one_click_signin_bubble_view.* Created 7 years, 8 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 | Annotate | Revision Log
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_PASSWORD_GENERATION_BUBBLE_VIEW_H_ 5 #ifndef CHROME_BROWSER_UI_VIEWS_PASSWORD_GENERATION_BUBBLE_VIEW_H_
6 #define CHROME_BROWSER_UI_VIEWS_PASSWORD_GENERATION_BUBBLE_VIEW_H_ 6 #define CHROME_BROWSER_UI_VIEWS_PASSWORD_GENERATION_BUBBLE_VIEW_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "components/autofill/common/password_generation_util.h" 9 #include "components/autofill/common/password_generation_util.h"
10 #include "content/public/common/password_form.h" 10 #include "content/public/common/password_form.h"
11 #include "ui/gfx/rect.h" 11 #include "ui/gfx/rect.h"
12 #include "ui/views/bubble/bubble_delegate.h" 12 #include "ui/views/bubble/bubble_delegate.h"
13 #include "ui/views/controls/button/button.h" 13 #include "ui/views/controls/button/button.h"
14 #include "ui/views/controls/textfield/textfield_controller.h" 14 #include "ui/views/controls/textfield/textfield_controller.h"
15 #include "ui/views/view.h" 15 #include "ui/views/view.h"
16 16
17 namespace autofill { 17 namespace autofill {
18 class PasswordGenerator; 18 class PasswordGenerator;
19 } 19 }
20 20
21 namespace content { 21 namespace content {
22 class PageNavigator; 22 class PageNavigator;
23 class RenderViewHost; 23 class RenderViewHost;
24 } 24 }
25 25
26 namespace views { 26 namespace views {
27 class ImageButton; 27 class ImageButton;
28 class Label; 28 class Label;
29 class TextButton; 29 class LabelButton;
30 } 30 }
31 31
32 class PasswordManager; 32 class PasswordManager;
33 33
34 // PasswordGenerationBubbleView is a bubble used to show possible generated 34 // PasswordGenerationBubbleView is a bubble used to show possible generated
35 // passwords to users. It is set in the page content, anchored at |anchor_rect|. 35 // passwords to users. It is set in the page content, anchored at |anchor_rect|.
36 // If the generated password is accepted by the user, the renderer associated 36 // If the generated password is accepted by the user, the renderer associated
37 // with |render_view_host| and the |password_manager| are informed. 37 // with |render_view_host| and the |password_manager| are informed.
38 class PasswordGenerationBubbleView : public views::BubbleDelegateView, 38 class PasswordGenerationBubbleView : public views::BubbleDelegateView,
39 public views::ButtonListener, 39 public views::ButtonListener,
(...skipping 27 matching lines...) Expand all
67 virtual void ContentsChanged(views::Textfield* sender, 67 virtual void ContentsChanged(views::Textfield* sender,
68 const string16& new_contents) OVERRIDE; 68 const string16& new_contents) OVERRIDE;
69 virtual bool HandleKeyEvent(views::Textfield* sender, 69 virtual bool HandleKeyEvent(views::Textfield* sender,
70 const ui::KeyEvent& key_event) OVERRIDE; 70 const ui::KeyEvent& key_event) OVERRIDE;
71 71
72 // views::WidgetDelegate 72 // views::WidgetDelegate
73 virtual views::View* GetInitiallyFocusedView() OVERRIDE; 73 virtual views::View* GetInitiallyFocusedView() OVERRIDE;
74 74
75 // Subviews 75 // Subviews
76 views::Label* title_label_; 76 views::Label* title_label_;
77 views::TextButton* accept_button_; 77 views::LabelButton* accept_button_;
78 views::Textfield* textfield_; 78 views::Textfield* textfield_;
79 views::ImageButton* regenerate_button_; 79 views::ImageButton* regenerate_button_;
80 views::View* textfield_wrapper_; 80 views::View* textfield_wrapper_;
81 81
82 // The form associated with the password field(s) that we are generated. 82 // The form associated with the password field(s) that we are generated.
83 content::PasswordForm form_; 83 content::PasswordForm form_;
84 84
85 // Location that the bubble points to 85 // Location that the bubble points to
86 gfx::Rect anchor_rect_; 86 gfx::Rect anchor_rect_;
87 87
(...skipping 13 matching lines...) Expand all
101 // Theme provider used to draw the regenerate button. 101 // Theme provider used to draw the regenerate button.
102 ui::ThemeProvider* theme_provider_; 102 ui::ThemeProvider* theme_provider_;
103 103
104 // Store stats on the users actions for logging. 104 // Store stats on the users actions for logging.
105 password_generation::PasswordGenerationActions actions_; 105 password_generation::PasswordGenerationActions actions_;
106 106
107 DISALLOW_COPY_AND_ASSIGN(PasswordGenerationBubbleView); 107 DISALLOW_COPY_AND_ASSIGN(PasswordGenerationBubbleView);
108 }; 108 };
109 109
110 #endif // CHROME_BROWSER_UI_VIEWS_PASSWORD_GENERATION_BUBBLE_VIEW_H_ 110 #endif // CHROME_BROWSER_UI_VIEWS_PASSWORD_GENERATION_BUBBLE_VIEW_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/outdated_upgrade_bubble_view.cc ('k') | chrome/browser/ui/views/password_generation_bubble_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698